Repository navigation
fix(ios): recover screenshots with deleting Watch runtimes - #189135
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: needs maintainer review before merge. What this changesThis PR excludes Watch runtime registrations marked Deleting from the existing screenshot-repair deletion choice. Example: CoreSimulator lists watchOS 27.0 / 24R362 with one Ready registration and one Deleting registration, both unmounted.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses an observed current-main screenshot failure with a focused repair and no identified introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared Fastlane screenshot lifecycle selects a Watch runtime, repairs unavailable CI runtimes once, and then creates the simulator for Watch capture and cleanup. flowchart TD
A[Screenshot lane] --> B[Watch runtime selection]
B --> C[Existing CI runtime repair]
C --> D[Exclude Deleting registrations]
D --> E[Check remaining image ambiguity]
E --> F[Targeted replacement and mounted validation]
F --> G[Watch creation capture and cleanup]
Technical reviewBest possible solution: Keep the filter in the existing repair owner while preserving targeted deletion, ambiguity rejection, and mounted-runtime validation. Do we have a high-confidence way to reproduce the issue? The reported inventory deterministically reaches main's duplicate-image guard, and the added lane scenario exercises that input; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair for the demonstrated rejection: exclude registrations already being deleted while retaining one authoritative repair path and the guard against multiple remaining candidates. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6370e0199985. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +15, Docs +4, Other +2. Total +23 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 2:47 AM ET / 06:47 UTC. |
Related: #189040
What Problem This Solves
Fixes CI screenshot capture stopping before Apple Watch when CoreSimulator lists a
Deletingregistration beside the selected Watch runtime's remaining image.User Impact
CI can continue its existing one-time Watch runtime repair for this state. Multiple remaining images still stop repair before deletion; local runtime installation and screenshot retry behavior stay unchanged.
Why This Change Was Made
Log the full matching runtime inventory, then exclude registrations already marked
Deletingfrom the deletion choice. Keep the existing targeted deletion, partial MobileAsset recovery, download, and mounted-runtime validation.Evidence
ReadyandDeletingstates, both unmounted.Readynegative control. The first case fails on the base with the exact duplicate-image error; all 15 release-gate tests pass with the fix (2.23s wall time, 1.04s Vitest duration). Fixtures exercise lane recovery and nine-image completion with simulated Apple I/O; they do not prove native CoreSimulator repair.git diff --check: passed. The 15-line test allocation is only for these two regression scenarios; the shared baseline is unchanged.d76745dfc5381ab395cef5703d18c49443696692through the final local patch, P0–P2: scoped-clean. Local ClawSweeper remains unavailable from the campaign's verified structured-result incompatibility; hosted ClawSweeper reviewed exact head4197431d31f09e99749176532d60d0f7d651b720with no actionable findings. Its proof note is addressed by the completed hosted run and the explicit native-condition limitation below.4197431d31f09e99749176532d60d0f7d651b720: all nine PNGs inspected; eight iPhone/iPad tests passed on first attempts; one simulator active at a time; Watch captured successfully. Qualification and upload were skipped. The native run repaired an unavailable watchOS runtime with one unmountedReadyimage, downloaded it, and verified a mounted replacement. The exactReady+Deletinginventory is covered by the regression fixture; it did not recur in this native run.Investigated CI failure
CI run 41177105468, screenshot job 124467192332 passed all eight iPhone/iPad tests. An available Watch runtime resolved and simulator creation succeeded without entering runtime repair. During Watch boot,
simctl bootstatus -bexited but the simulator wasShutdown; the existing guard stopped capture. Diagnostics record 23.69s in bootstatus, zero active simulators afterward, and no collected crash facts. The task-owned simulator was deleted successfully.pnpm test:ci-failed 189135classified the job as unknown because main had no comparable job result. Source/log investigation attributes this failure outside the change: the modified repair function was never called, while the boot guard and boot lifecycle are unchanged from the base. The pre-existingboot-endedlane regression continues protecting this behavior. No boot retry or assertion change was added, and CI was not rerun for a green result. This remains a separate Watch boot reliability issue; the passing release-workflow run does not fix or explain it.