Repository navigation
fix(ios): isolate release screenshot simulators - #160347
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 7:25 AM ET / 11:25 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch captures iOS Store screenshots on fresh simulators, adds optional diagnostics and a screenshot-only workflow operation, and moves screenshot jobs to larger runners. Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open. Hosted captures support the screenshot repair, but the previously reported scheduling defect remains at the reviewed head: screenshot-only runs occupy the release and reconciliation queue. Priority: P2 Review scores
Verification
How this fits togetherThe iOS screenshot lane takes a simulator build and selected device models and produces Store images and capture evidence. The release workflow also handles uploads and reconciliation, with workflow concurrency controlling when those operations can run. flowchart TD
A[Selected workflow operation] --> B[Workflow concurrency group]
B --> C{Operation}
C -->|Screenshots| D[Screenshot capture lane]
C -->|Release or reconcile| E[Store release work]
D --> F[Fresh simulators in sequence]
F --> G[Images and diagnostics]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +177, Docs +36, Config +65, Other +183. Total +461 across 13 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Give screenshot-only validation its own concurrency group while release and reconciliation continue sharing their existing group; retain the proven sequential simulator cleanup and separate diagnostics artifact. Do we have a high-confidence way to reproduce the issue? Yes. The introduced screenshot operation and unchanged workflow-wide concurrency group establish the scheduling conflict from source; this review did not dispatch competing Actions runs. Is this the best way to solve the issue? No, not yet. Hosted captures support the simulator repair, but the new validation operation needs separate scheduling before this is a safe release workflow change. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against dd3fb2bd9cf2. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Addressed the diagnostic ledger finding by writing optional diagnostics to The idle-simulator precondition is an intentional maintainer decision for this repair. Local and hosted capture must enforce the same one-active-simulator invariant. An unrelated running simulator is left untouched, and the error explains that it must be shut down when no longer in use before capture proceeds. Allowing another active simulator would reintroduce the resource contention this work is intended to prevent. This requirement is documented in the local screenshot instructions and PR body. |
* fix(ios): isolate release screenshot simulators * fix(ios): select screenshot build architecture with build settings * test(ios): make crash diagnostic fixture timestamps deterministic * fix(ios): keep screenshot diagnostics separate from release evidence * fix(ios): align CI screenshots with release runner setup * test(ci): count larger hosted Xcode screenshot runners
What Problem This Solves
Fixes iOS Store Release screenshot failures during the transition from iPhone to iPad, where the previous simulator remained active and the release job had less runner capacity than qualification.
User Impact
Release screenshots use one fresh simulator at a time. Store Release and CI screenshot jobs use the same
xcode-27-xlargerunner label as qualification. A secretless screenshot-only workflow operation can validate a selected branch without archiving or uploading a build.Why This Change Was Made
The screenshot lane builds once for the host simulator architecture, then creates, boots, captures, shuts down, and deletes each owned iPhone, iPad, and Watch simulator in order. Local and hosted capture intentionally require idle simulators to enforce the same one-active-simulator rule; already active, unrelated simulators remain untouched. Cleanup preserves the original capture failure and attempts deletion even if shutdown fails.
Screenshot jobs use stock simulators. CI screenshot shards retain their runner-group routing, two-device matrix, assertions, and deadlines. Optional diagnostics record bounded resource samples, phase timing, simulator counts, fixed startup classifications, and filtered crash facts in a separate
screenshot-diagnostics.json; the capture ledger and collector contract remain unchanged. Raw crash reports and process arguments are excluded. Diagnostics are enabled for screenshot-only runs and CI screenshot shards, and remain off for normal releases.Evidence
071d8ef9de61643524c754089c98868770518d6d: 36401027361 in 16m1s and 36402965674 in 15m3s. Each produced eight first-attempt iOS captures plus Watch; all nine images were visually inspected. Diagnostics confirmed one active simulator at every boot, zero after deletion, and no startup failure classifications. Subsequent changes separate diagnostic output and align CI configuration; stock capture behavior is unchanged.git diff --checkpassed. Independent reviews found no actionable issues. The local changed-file check stopped at an inheritedui-otherinventory limit of 721/720 introduced by the base commit; this branch changes none of those inputs, and GitHub treats the limit as advisory.CI findings and remaining uncertainty
Earlier CI identified two repaired test-fixture issues: a synthetic crash report used nondeterministic clock/file timestamps, and the independent hosted-runner inventory omitted
xcode-27-xlarge. Both failures reproduced locally; their existing assertions now pass with explicit fixture timestamps and the missing hosted label.The earlier smaller/SimSlim iPad job stalled in the post-edit keyboard visibility query after typing and clearing text had succeeded. Its spindump showed the app alive and the runner waiting in
XCUIElement.exists, on 3 CPUs/7 GB versus 5 CPUs/14 GiB in the successful xlarge runs. CI screenshot shards now match the proven stock/xlarge setup. This does not establish whether resource pressure or simulator reconfiguration caused the original query stall.Attempt 1 of the current CI run failed the Control UI rename-composition test's final rendered-title poll, after the patch request and subsequent list request succeeded. The exact tested merge
3422c4f8b90301fe92b0da1a9b907ba25511cea1and its main parentda51d9edccb311174d9ae7faaeea208e7fd7d7c9have identical UI, source, scripts, dependency, and test-harness inputs; workflow changes affect only iOS screenshots. All five cases passed locally in their original order against that exact main parent (28.48s), using the supported E2E owner. This macOS single-file replay does not explain or fix the Linux shard failure. Attempt 2 completed both native screenshot shards and the combined evidence collector successfully, but repeated the title-poll failure in the modern and legacy Escape cases (365 passed, 2 failed). The UI defect remains unresolved and independently unrelated to this iOS change. No further rerun is planned to seek a green result.