← Back to Pull requests

Enable snapshot tests again #7201

Open
unknown opened this pull request with 216 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 08, 2026 10:42 UTC
Author

Task/Issue URL: https://app.asana.com/1/137249556945/project/1214200115953388/task/1216991493996411?focus=true
Tech Design URL:
CC:

Description


Snapshot tests were paused for everyone by hardcoding SKIP_SNAPSHOT_TESTS=1 in the app schemes. This sets it to 0 in iOS Browser, macOS Browser, macOS Browser App Store and macOS Unit Tests so snapshots run locally and in CI again. Pausing a platform stays a one-line scheme change to 1; the SnapshotTestingSupport README is updated to match.

Testing Steps


1. Check the iOS and macOS PR checks on this PR → snapshot suites compare images instead of skipping (no [SnapshotSkipMode] Skipping lines in the test logs).
2. Locally, run a snapshot test from the iOS Browser scheme on an iOS 27.0 simulator → it passes against the existing references.
3. Locally, run a snapshot test from the macOS Browser scheme on macOS 27 → it passes against the existing references.

Impact


None: test configuration only, no app code changes.

What could go wrong?


  • A CI runner without the iOS 27.0 simulator falls back to 26.5 and every iOS snapshot fails the OS check → visible as red CI on this PR; flip the iOS schemes back to 1 if it happens.

  • macOS snapshots differ between the general-purpose and m4pro runners → visible as red CI on this PR; flip the macOS schemes back to 1 while references are fixed.
  • ---
    ###### Internal references:
    Definition of Done | Engineering Expectations | Tech Design Template

    🤖 Generated with Claude Code

    Diff: 216 lines (+162 / -54) across 2 files Reviewer: claude[bot] Review duration: 4m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.37) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 216 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 76% · Reviewer familiarity: 35%
    40%
    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.322
    Real PR Conversation Timeline
    1 comments
    "Review active on #7201"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.8% 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: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    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: 40.8% · Lower = rushed or shallow review
    40.8%
    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.7% · Safe to merge
    21.7%