← Back to Pull requests

Improve Xcode selection diagnostics #644

Open
unknown opened this pull request with 154 lines diff across 1 files
View on GitHub
unknown unknown commented on Sep 17, 2026 14:43 UTC
Author

An attempt to (greatly) increase the legibility of the currently inscrutible error message developers receive when the configured Xcode is not available locally or remotely.

Bazel couldn’t match the selected Xcode to this project’s supported versions:
  27.0 (build 27A266a)

Supported versions:
  26.5 (build 17F42)
  27.2 (build 27B5019j)

Detected locally:
  26.5 (build 17F42)
  27.0 (build 27A266a)
  27.2 (build 27B5019j)

Install a supported Xcode version and select it with xcode-select.

Validation

  • bazel test //test:xcode_config_test on Bazel 8.7.0, 9.0.0, 9.0.1, and 9.2.0: all 51 tests pass on each release, including unsupported, unknown, ambiguous, duplicate, and empty inventories, plus custom and empty hints.

  • Verified the failure against a consuming project's configuration and checked the fallback when discovery fails.
  • A few examples:

    <img width="1028" height="298" alt="CleanShot 2026-09-17 at 13 32 56@2x" src="https://github.com/user-attachments/assets/17020745-7c5a-46e6-9d65-dcab9ae90770" />

    <img width="1026" height="536" alt="CleanShot 2026-09-17 at 13 33 21@2x" src="https://github.com/user-attachments/assets/065e5eb8-246f-4009-b698-efd88c376aef" />

    Diff: 154 lines (+115 / -39) across 1 files Reviewer: aaronsky Review duration: 22226m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.33) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 154 lines diff across 1 files
    0.33
    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%
    46%
    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.302
    Real PR Conversation Timeline
    1 comments
    "Review active on #644"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.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: 33.2% (LOW) · Higher = larger blast radius
    33.2%
    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: 46.7% · Lower = rushed or shallow review
    46.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: 17.7% · Safe to merge
    17.7%