Repository navigation
fix(ios): recover partial Watch runtime deletion during screenshots - #179148
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 scans orphaned Watch runtimes and retries targeted deletion once after Apple’s specific partial MobileAsset deletion error. Example: watchOS 27.0 runtime deletion reports SimDiskImageError code 30 after eight iPhone and iPad screenshots.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs an observed screenshot automation failure, resolves the earlier complete-output finding, and has no remaining actionable correctness or security finding. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Fastlane screenshot lanes consume simulator inventory and built apps, repair unavailable Watch runtimes in CI, and produce screenshots and capture evidence. flowchart TD
A[Screenshot lane] --> B[Watch simulator admission]
B --> C[Existing runtime repair]
C --> D[Targeted image deletion]
D --> E[Scan and resolve after specific failure]
E --> D
C --> F[Download and verify mounted runtime]
F --> G[Watch screenshot capture]
Technical reviewBest possible solution: Land the bounded recovery in the existing Fastlane repair owner while preserving targeted deletion, mounted-runtime verification, and terminal capture failures. Do we have a high-confidence way to reproduce the issue? Current-main source propagates the reported deletion failure before replacement download, and the author reports a base-red/head-green screenshot-lane regression; no target code was executed during this review. Is this the best way to solve the issue? The smallest complete fix extends the existing repair owner with one specifically gated scan and deletion retry, without adding a parallel provisioning path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d38e97ae952. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +16, Tests +69, Docs +6. Total +91 across 3 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
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 HistoryReview history (1 earlier review cycle)
Reviewed October 21, 2026, 3:07 AM ET / 07:07 UTC (Revision 2). |
|
Fixed the complete-output finding in The regression now covers a diagnostic longer than Fastlane's exception recap and runs against the actual pinned Fastlane 2.241.0 shell handler through @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…penclaw#179148) * fix(ios): recover partial Watch runtime deletion during screenshots * fix(ios): inspect complete Watch runtime deletion output
Related: #178891
What Problem This Solves
iOS release screenshot capture stops before Watch capture when Apple removes a runtime registration but fails to reclaim its backing MobileAsset, as observed in run 39521844120.
User Impact
CI can complete the existing Watch runtime repair after this specific partial-deletion error. Local runtime installation remains operator-managed, and failed screenshot tests are never retried.
Why This Change Was Made
Apple's diagnostic explicitly instructs callers to scan and mount orphaned runtimes, then delete the runtime again. The existing repair now follows that sequence once, only for the observed SimDiskImageError code 30 and MobileAsset message. It classifies Fastlane's complete command output through
error_callback, preserving the signature when the exception recap is truncated or omitted. It re-resolves the selected Watch runtime's image identifier after scanning, preserves the ambiguous-image guard, and then continues the existing download and mounted-runtime verification. Scan failures, unrelated errors, and a second deletion failure stop the lane.The change stays in the existing repair owner: no new helper, retry framework, or configuration. Net changes are +16 production lines, +69 test lines in the existing lane fixture, and +6 documentation lines. The fixture supports the pinned Fastlane shell handler to cover its output contract.
Evidence
git diff --checkpassed. Independent P0–P2 review found no actionable issues.eca29864f38aaf22430ad966dd7093ab74fa759f: all eight iPhone/iPad tests passed once, Watch capture completed, and the complete screenshot set passed reduction.runtime path not found). Targeted deletion, download, mounted-runtime verification, and subsequent Watch capture succeeded. The partial-deletion error did not occur in this run; its recovery branch is proven by the red-to-green regression, not by a claim that the hosted run triggered it. The underlying intermittent runtime-availability failure is not fixed by this PR.No build upload or release publication was performed.