Repository navigation
fix(ci): avoid duplicate iOS screenshot builds - #173596
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 replaces two iOS screenshot jobs with one build and a combined evidence artifact. Example: Full validation captures four iPhone images, four iPad images, and one Watch image.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it removes verified duplicate build work, has maintainer-approved direction, and has no definite introduced correctness finding. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherNative CI builds candidate sources and captures screenshots; workflow-owned tooling validates their coverage, digests, and provenance before publishing release evidence and satisfying the aggregate gate. flowchart LR
A[Preflight] --> B[Combined native capture]
B --> C[Evidence collector]
C --> D[Artifact download]
D --> E[Strict reducer]
E --> F[Release evidence]
F --> G[CI gate]
Technical reviewBest possible solution: Keep one capture owner and the strict reducer, with serial native capture as the documented tradeoff. Do we have a high-confidence way to reproduce the issue? Current main runs two matrix jobs through the same clean-build Fastlane lane, establishing the duplicate preparation directly from source. Is this the best way to solve the issue? Reusing the existing combined lane is a focused solution that avoids build-product caching or cross-job transfer while retaining strict evidence ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c5a6724c2655. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +90, Docs 0, Config -2, Other +42. Total +130 across 10 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 HistoryReviewed October 16, 2026, 12:06 AM ET / 04:06 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits) fix(ui): remove stale Lit cleanup from model catalog tests refactor(tests): consolidate iMessage discovery checks (#173624) fix(auto-reply): retire older collect cancellation after admission fix(memory): avoid rebuilding initially empty indexes after restart (#173622) fix(test): preserve subprocess runtime identity (#173446) perf(sessions): batch transcript index reconciliation (#173620) fix(gateway): share GitHub options preparation during reconnects (#173589) perf(control-ui): open the composer model picker without list-wide work (#173275) fix: finish compile-cache cleanup after short CLI commands exit (#173603) refactor(ui): finish native shell rendering (#171554) fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154) refactor: centralize agent memory host typing (#173619) fix: camera fallback picker opens away from the attachment button (#173618) refactor: deduplicate existing CI runner routing with YAML anchors (#172670) fix(ai): preserve multiline Google replies and report malformed streams (#173612) refactor(tests): remove duplicate speech policy test (#173606) refactor(ui): simplify page rendering and derivations (#173608) fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615) fix(update): wait for native Gateway ownership before restarting (#173588) test(sessions): admit schema probe fixture writes behind maintenance ...
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(ci): share the iOS screenshot build * fix(ci): preserve the screenshot artifact container on download * merge: integrate main for iOS screenshot workflow conflicts * style(ci): format the combined screenshot evidence changes * docs(ci): name the combined screenshot capture * fix(ios): expose screenshot simulator creation errors * Merge main at a11e38b to include the UI test cleanup fix * commit 'a11e38b8bb1eb58aaf392a0eab458dbb47aad30f': (23 commits) fix(ui): remove stale Lit cleanup from model catalog tests refactor(tests): consolidate iMessage discovery checks (openclaw#173624) fix(auto-reply): retire older collect cancellation after admission fix(memory): avoid rebuilding initially empty indexes after restart (openclaw#173622) fix(test): preserve subprocess runtime identity (openclaw#173446) perf(sessions): batch transcript index reconciliation (openclaw#173620) fix(gateway): share GitHub options preparation during reconnects (openclaw#173589) perf(control-ui): open the composer model picker without list-wide work (openclaw#173275) fix: finish compile-cache cleanup after short CLI commands exit (openclaw#173603) refactor(ui): finish native shell rendering (openclaw#171554) fix: preserve standalone CLI profiles and settle Doctor shutdown (openclaw#173154) refactor: centralize agent memory host typing (openclaw#173619) fix: camera fallback picker opens away from the attachment button (openclaw#173618) refactor: deduplicate existing CI runner routing with YAML anchors (openclaw#172670) fix(ai): preserve multiline Google replies and report malformed streams (openclaw#173612) refactor(tests): remove duplicate speech policy test (openclaw#173606) refactor(ui): simplify page rendering and derivations (openclaw#173608) fix(release): Linux channel promotion fails after a withdrawn Windows companion (openclaw#173615) fix(update): wait for native Gateway ownership before restarting (openclaw#173588) test(sessions): admit schema probe fixture writes behind maintenance ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The iPhone and iPad screenshot jobs repeat the same simulator build and native toolchain setup.
User Impact
CI keeps all nine release screenshots and their XCTest evidence while using one native capture job. The existing combined lane captures device families serially, so native wall time may increase even as duplicated build work disappears. This PR makes no measured speedup or cost-reduction claim: inspected historical two-job captures have different native source or locked dependencies and are not a compatible comparison.
Why This Change Was Made
Use the existing Fastlane lane that builds the simulator target once, captures four iPhone and four iPad scenarios, then reuses the Watch app dependency for its capture. The evidence collector accounts for every image, result bundle, and capture ledger entry before publishing three family manifests in one artifact. The reducer preserves exact source/toolchain provenance, digest checks, complete coverage, and reducer-only retry reuse. It rejects families mixed across capture attempts.
The capture selection, pinned runner tier, Xcode 27.0 build 27A266a, screenshot identities, and final release evidence artifact remain unchanged. Successful runs retain hardware and phase diagnostics. Hosted-row accounting and CI documentation follow the new job.
Related: #169493. That PR changes capture selection; this change retains selection and removes duplicated builds.
Evidence
3b76bbfbc2ec8c8fcdb79a673dbf35b55ec48b54, integrating exact main fix56c315156f4542f197a2b7f727681ba3f41c21b5for the stale UI test cleanup observed in the previous run. Independent source review and subsequent exact bindings are clean; the original nine-file task patch remains unchanged after normalization against that base.3b76bbfbc2ec8c8fcdb79a673dbf35b55ec48b54; actual CI merge checkout is1f127a9482c0f88b1ac3ce632b4d09ae4acaca01. Preflight selected full validation, Node, and iOS screenshots.116801859465verified Xcode 27.0 build 27A266a, built once in 224.22s, and passed all eight iPhone/iPad XCTest captures on attempt 1. The failure artifact contains four 1320x2868 iPhone PNGs, four 2064x2752 iPad PNGs, eight xcresults, and eight successful ledger entries. It contains no Watch image and is incomplete evidence.com.apple.CoreSimulator.SimRuntime.watchOS-27-0failed with exit 145 / CoreSimulator error 401. Raw stderr identifies watchOS 27.0 build24R362:The watchOS 27.0 simulator runtime is not available./runtime path not found. The collector did not run, reducer job116805574442skipped, and required gate116805676802failed correctly. No complete capture artifact or final reduced evidence was produced.xcode-27-arm64image version20261012.0260.1, macOS 27.0.1 build 26A434, and Xcode 27.0 build 27A266a, under the unchangedxcode-27-xlargelabel. The passing run's exact Watch runtime identifier was not logged and remains UNKNOWN. Earlier complete nine-image capture: https://github.com/openclaw/openclaw/actions/runs/38830853409. It is prior-head evidence and does not qualify this candidate or the changed CI receiver/reducer path.116809115061ran on new GitHub Actions runner1023013534under the unchangedxcode-27-xlargelabel and image version. It performed one build in 232.54s, passed eight XCTest captures, captured the Watch image, and packaged the complete evidence. Native job elapsed time was 15m33s; its capture step took 13m31s. The prior host was runner1023008297. No source change, custom workflow, provisioning, coverage skip, or additional recovery attempt was used.116813250802passed; required gate116813537145and the workflow passed at the unchanged PR head.12025716327:ios-release-screenshots-1f127a9482c0f88b1ac3ce632b4d09ae4acaca01, 11,357,379 bytes, archive digestsha256:a595983781e2b78b733da8dbc6ef9b9df4612edfcac1d7b9116c1b27c09a4c68. Independent native proof review accepted actual producer/reducer logs, reviewed owner blobs, nested receiver topology, and same-workflow/SHA/toolchain/hash provenance for all nine PNGs, three families and eight results. Workflow attempt 2 contains first OpenClaw capture attempts (attempt 1); these are distinct counters. Hosted collection and reduction accepted the required complete evidence. Independent local final-archive byte/dimension inspection was unavailable after three guarded transfers returnedunexpected EOF; no further ZIP transfer will be attempted. The trusted hosted strict collector/reducer and artifact publication passed. Current binary dimensions were not independently read locally; independent proof review accepted this as nonmandatory for this CI routing change.Review Follow-through
The earlier single-artifact extraction mismatch is fixed by downloading the exact artifact name into the explicit container path expected by the strict reducer. A receiver-layout regression exercises that path through the real collector and reducer. The documentation and main-conflict findings are fixed.
The current-head ClawSweeper review covers
3b76bbfbc2ec8c8fcdb79a673dbf35b55ec48b54and reports no findings or before-merge code changes. It identified missing complete native pipeline proof; the unchanged-head host recovery now passes capture, named-artifact download, strict reduction, and the required gate. The local archive inspection limitation is recorded separately above. The optional workflow-shape test is retained because it guards removal of per-family overrides and the capture matrix, plus retention of phase diagnostics; functional proof comes from collector/reducer tests, the receiver-layout regression, and native CI.Named follow-up
ios-runtime-admission: capture the actual same-image runtime JSON contract, then evaluate early runtime inventory/admission before the generic build and eight captures. The existing iOS E2E owner already checks runtime availability. No admission change is implemented, and detectability of this stale-path failure from runtime metadata alone is not yet proven.Production changes add 40 net lines relative to the integrated main base, chiefly to give combined evidence one complete ownership and validation boundary. Tests add 90 net lines; documentation is line-neutral.