fix(test): make the iOS simulator smoke lane's red/green signal meaningful (#2491)

Merged
TH
2mo ago
+495-12

Summary

Repairs two ruling defects that made the iOS simulator smoke lane's signal unreliable (attribution in #2491).

  • Addresses the assertion side of #3328 — the snapshotQuality assertion in assertSimulatorSnapshotTreeDepthFrontier demanded an absence the product never promised. The product contract is a disclosure: the AX-bridge path publishes no verdict (the bridge has no quality model); the XCTest runner always stamps its strategy. A healthy tree verdict on the circuit-disabled fallback is legitimate acquisition, not a quality regression. Replaced with assertSimulatorSnapshotAcquisition, keyed on the typed verdict and reason code (rejects sparse; rejects recovered unless pre-selected deferred/requested-backend), never on the warning text. Both recorded CI payloads (runs 37459193672, 37145696803) replay through the new assertion and pass.
  • Retry policy decision for the infra-flaked wait class (observed 5x on main: wait_runner_restart_exhausted, wait_capture_stalled, wait_readiness_exhausted): a shared harness seam (reattemptInfrastructureMiss) re-issues one failed live step, enabled by the iOS lane via a typed predicate on error.retriable === true AND a transport/observation wait reason. Hard failures stay red: wait_target_absent, wait_deadline_exceeded, wrong asserted values, runner crashes, non-wait failures. Parallel-run replays already had --retries 2; the E2E step had no layer. Field confirmation of the conjunction's narrowness on this PR's own lane: run 37843633972 hit wait_deadline_exceeded (24/25 readable polls) on the webview cold-start step and the harness declined to re-issue it, exactly the readable-miss case the set excludes; recorded in #3337.

Test/harness only — no production lines changed.

Validation

Head ffd575ae7:

  • pnpm check:quick — clean (lint + typecheck).
  • pnpm test:integration:node — 147 tests, 135 pass, 0 fail, 12 skipped.
  • node --test on the three touched test files — 28 pass, 0 fail.
  • pnpm check:affected --run — all runnable checks passed.
  • Regression proofs: old runtime fails both new re-issue tests; old frontier assertion rejects the new acquisition test.

Unresolved risks: no live lane rerun performed (test-only change; CI re-runs the lane on this PR). Retried misses currently share one runner/session, so a runner-dead miss may re-fail — bounded at one re-issue; per-scenario fresh-runner teardown is the lane rewrite follow-up. Untracked new-signature failures observed during attribution (MAIN_THREAD_TIMEOUT on alert dismiss in 37660079219; gesture-replay timeout_cleanup_pending in 36115336398) need issue triage outside this scope.