← Back to Pull requests

Expose `.xctestrun` files to test pre-actions #3105

Open
unknown opened this pull request with 121 lines diff across 1 files
View on GitHub
unknown unknown commented on Oct 19, 2026 18:01 UTC
Author

Pre-actions currently run before the .xctestrun file is generated, so they cannot adjust the prepared test configuration before xcodebuild launches.

Run the pre-action after generating the file and pass its path in TEST_XCTESTRUN_FILE. The hook can then update environment variables, arguments, or other XCTest settings. It still receives SIMULATOR_UDID and runs once on either execution path; TEST_XCTESTRUN_FILE is only supplied when using xcodebuild.

Validation:

  • buildifier formatting and lint checks passed.

  • Runner regression tests passed in a consuming workspace with this checkout supplied through --override_module=rules_apple=.... They exercise edits to the generated test environment and arguments, verify the hook runs once with the simulator ID, and cover direct xctest execution. Simulator and Xcode commands are stubbed in these tests.

  • Regenerated API documentation with bazel run //doc:update; bazel test //doc:check_ios passed.
  • Diff: 121 lines (+90 / -31) across 1 files Reviewer: aaronsky Review duration: 60987m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 121 lines diff across 1 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.287
    Real PR Conversation Timeline
    1 comments
    "Review active on #3105"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.7% (MEDIUM) · Higher = larger blast radius
    38.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.7% · Lower = rushed or shallow review
    44.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 21.4% · Safe to merge
    21.4%