Repository navigation
ci: reuse Watch build products and repair process cleanup - #134523
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 8:32 PM ET / September 1, 2026, 00:32 UTC. ClawSweeper reviewWhat this changesThe branch reuses the iOS build’s Apple Watch products for focused simulator tests, rechecks Linux process-group existence after inspection, and publishes two test PIDs atomically. Merge readinessThis is a coherent, still-needed CI and cleanup repair. The pinned introduced changes are owner-boundary fixes with targeted coverage; current main still uses the old Watch DerivedData path, and the supplied exact-head CI evidence resolves the earlier gating concern. Priority: P3 Review scores
Verification
How this fits togetherThe iOS CI job builds the mobile app and then runs focused iPhone and Apple Watch simulator tests. Shared script utilities supervise child process groups used by CI checks and report whether cleanup completed. flowchart LR
A[iOS app build] --> B[Watch test step]
B --> C[Xcode product lookup]
C --> D[Simulator install]
D --> E[Watch test results]
F[Child process exit] --> G[Process-group inspection]
G --> H[Cleanup outcome]
Decision needed
Why: The code and supplied exact-head evidence support the patch, but the maintainer label and member authorship require explicit human handling rather than automated closure or repair dispatch. Before merge
Agent review detailsSecurityNone. PR surfaceTests +221, Config +9, Other +1. Total +231 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the current focused workflow and cleanup repair through normal maintainer approval, preserving the Xcode-derived product lookup and the shared post-snapshot liveness check. Do we have a high-confidence way to reproduce the issue? Yes for the cleanup race: the pre-fix owner returned live after a successful initial group probe even when the group disappeared during the ps snapshot; the new table directly models that sequence. The supplied hosted run covers the Watch workflow path, though this Linux review host has no Xcode installation. Is this the best way to solve the issue? Yes. The workflow resolves the product from Xcode instead of reconstructing its DerivedData layout, while the shared process-group owner—not downstream callers—rechecks the liveness fact that can race. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5dd4c6e3b087. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
The first CI run found a stale exact target inventory: the selector correctly discovered the new iOS workflow regression test, while its expected list omitted it. The follow-up adds only that expected target; the workflow and new regression test bytes are unchanged. The original assertion failed locally before the correction. Full selector and workflow sibling coverage now passes 652 tests with two existing skips, and all 14 changed-file checks pass. The original workflow change had a clean P0–P2 managed review; the one-line inventory correction also passed managed review. Fresh exact-head CI is running. Separate diagnostic-only hosted jobs will exercise the unchanged complete iOS build and lifecycle job, including the actual Watch build products; these are additional focused proof, not substitutes for the required CI gate or full release verification. |
ba8fe93 to
41f57ea
Compare
|
The requested hosted Watch proof is now complete: Xcode 26.6 passed all 255 iPhone and 13 Watch tests, and Watch build-for-testing compiled only the test source instead of repeating 125 app/shared source files (20.870s versus 91.932s). The PR body links the exact diagnostic and describes its source scope. The refreshed head also repairs a separately reproduced shared process-group inspection race and atomic PID publication in two existing test fixtures, without weakening cleanup or timing contracts. All 577 composed local tests passed with one existing platform skip; all 18 scoped checks and independent P0–P2 review passed. The replacement exact-head CI is 33453766420. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…34523) * perf(ci): reuse project build products for Watch tests * test(ci): include Watch workflow guard in selector inventory * fix(ci): resolve reaped groups and publish test PIDs atomically
Problem
The iOS CI job compiles the Watch app and shared targets during its generic Debug build, then discarded that work by using fresh DerivedData for Watch tests. The later build-for-testing phase took 91.932 seconds in the retained full-release run.
Change
Reuse Xcode's project DerivedData for the Watch phase. Resolve the exact Watch app from its unique target's JSON build settings, retaining simulator readiness, explicit installation, build-for-testing, test-without-building, and both result bundles. Debug and Release builds, all five iPhone test selections, the Watch selection, signing flags, serial Xcode execution, and screenshot coverage remain unchanged.
The PR's CI exposed a related process-cleanup failure. Independent controlled Linux proof found that a group reaped between a successful kernel existence check and the
pssnapshot could still be reported live. The shared inspector now rechecks kernel existence after that snapshot, preserving existing error policies and deadlines. Full sibling testing also exposed unsafe PID-file publication: an empty file could become PID 0, and partial digits could become an unrelated PID. Both affected fixtures now publish atomically and reuse the canonical validated PID reader. No retry, timeout, heap budget, or assertion was relaxed. The exact syscall ordering of the historical CI failure, and the signal target of an intermediate local exit 137, were not captured; those causal assignments remain unproven.Evidence
Hosted Xcode 26.6 diagnostic passed on macos-26 with all 255 iPhone tests and 13 Watch tests, zero failures or skips. Both xcresult bundles were downloaded and checked against the Actions artifact digest. The Watch phase compiled only the three Watch test source entries; shared app targets were reused. Build-for-testing took 20.870 seconds versus 91.932 seconds in the earlier full-release job.
The diagnostic selects source
32a267887cd6874656a1b64e520ded634050b00cwith workflowdc60a57c5694c449f45567127fd6353afcce6cae. It proves the Watch change before the mechanical main refresh and separate cleanup repair, not final whole-head CI. The iOS workflow section and focused tests are unchanged by that refresh. Total iOS job time was 36m30s versus 41m18s, but unrelated startup/build variation prevents attributing that whole reduction to this patch. The separate early-boot experiment is not included.Four executable workflow regressions failed before the Watch change; all pass afterward. The cleanup owner has seven failing pre-fix regression cases and a real Linux Node reproduction that changes from incorrect live to correct dead after controlled reaping. Both actual PID producers passed the safe atomic-publication probe without sending unsafe signals. The cleanup owner/sibling/helper run passed 207 tests with one existing platform skip. The final composed six-file run passed 577 tests with one existing platform skip, and all 18 scoped checks passed, including both TypeScript lanes, lint and boundary guards. Exact-head CI33453766420 passed on
41f57ea84cdbe0aff13be6712ab10c664808e46b: 143 successful jobs, 10 skipped, zero failures, with required gate99691048998 successful. This resolves the latest review’s remaining CI risk and rank-up request.Independent Codex review of the complete six-file candidate found no actionable P0–P2 findings. Application runtime delta is zero; workflow net +9 and tooling net +1 implement product resolution and the shared inspector repair; tests net +221. No new configuration, dependency, or persistence surface is introduced.