Repository navigation
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. |
Exact-head CI attributionRun 44009289838 at PR head The guard's failing assertion in The prior workflow-size regression is repaired at this head: ci.yml is 479,980 bytes under the unchanged 480,000-byte limit. Native run 44008458145 remains in progress at prior head 881ead; it is not exact-head completion evidence. This records an inherited CI failure, not a green-CI claim. Hosted review and remaining proof are tracked separately. |
|
Codex review: needs changes before merge. What this changesThis PR overlaps Watch companion-phone preparation with Xcode work and repairs two CI test prerequisites. Example: The selected Watch simulator needs its paired iPhone prepared before testing.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR preserves the Watch prerequisites and has no identified code defects; the author explicitly marks it not ready. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe native iOS CI workflow selects a Watch simulator, prepares its companion, resolves compiled products, and runs focused Watch tests. flowchart TD
A[Select Watch and companion] --> B[Prepare companion in background]
A --> C[Build and resolve Watch product]
B --> D[Join companion preparation]
C --> D
D --> E[Boot and install Watch app]
E --> F[Run focused Watch tests]
Technical reviewBest possible solution: Use the existing workflow’s background preparation and join while preserving companion readiness, failure status, test coverage, and build-product reuse. Do we have a high-confidence way to reproduce the issue? Current-main source establishes that companion preparation waits for Xcode work; it does not establish an elapsed-time regression. Is this the best way to solve the issue? The patch uses the existing workflow owner and one background PID, with meaningful overlap and failure-cleanup coverage and no unnecessary production abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a2c1b0e86ff9. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +31, Config +10. Total +41 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 17, 2026, 10:30 PM ET / November 18, 2026, 03:30 UTC (Revision 3). |
(cherry picked from commit a62e4e1)
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Native recovery terminal assessment — November 18, 2026Not RFR; recommend not landing the current Watch-overlap implementation. This supersedes the earlier pending-log status. The final log is now available; no further run has been submitted. Exact candidate Measured phase comparisonBaseline: frozen
Phone preparation really overlapped the build. However, step start to logged build completion grew from ~100s to ~1,352s; later work became shorter. Both build logs contain the same Xcode command, five suite selections, dual-architecture policy and 18 SwiftCompile entries. This does not establish identical host/cache state. Xcode output is buffered: phase envelopes are measured, individual compiler timings are not. The log cannot separate every silent settings/boot/install interval. No claim that overlap caused the slowdown, and no claim that the ~148s overlapped phone wait is a net saving. No extra jobs, queues or setup were added; the previously documented downstream barrier still permits zero whole-FRV benefit. Remaining native failureLifecycle failed at Disposition and proof boundaryThe completed authorized comparison does not justify landing a performance change. The repository performance policy says a 20% metric move is a stop, not something to dismiss as spread, and changes without measurable gain should not land. This is a stop/recommendation, not a causal-regression verdict. Ordinary exact-head CI remains green and hosted code review has no findings; native acceptance and comparable-timing proof remain open. Fresh discovery found no paired native nodes or configured cloud profiles. The bounded baseline/candidate campaign and its scoped recoveries are terminal. Do not blindly rerun the assertion failure or expand to ten full CI matrices. Additional native diagnosis or a matched timing series needs a supported Apple execution environment and bounded authorization. No code edits, PR closure, merge, release, or extra native allocation were performed during this terminal assessment. |
Status — November 18, 2026
Not RFR. Recommend not landing the current Watch-overlap implementation. The bounded native campaign is terminal, not awaiting logs. Watch tests pass, but the completed comparison does not demonstrate a wall-time benefit and the native lifecycle job remains red. Full terminal assessment and phase timestamps.
Summary
Intended benefit and historical constraint
In CI43995805967, iOS job133747919619, iOS took 80m53s with ~2s queue. Paired-phone boot occupied 75.803s after ~106s build/settings work. The original ideal overlap estimate was ~76s, not the whole 940s Watch step. CPU/I/O contention can erase that benefit.
This is not a measured whole-FRV speedup. Parent43995308737 finished a failed 93m34 diagnostic envelope: CI ended 02:50:43, candidate checks' final receipt 02:56:29. That downstream barrier permits zero parent benefit from this native change alone. No additional runner queue or setup is introduced.
56c643947272575869cb051d020a7fc419eb8ac0 deliberately prepared the actual paired phone to fix Watch XCTest startup timeouts. It may differ from IOS_SIMULATOR_ID. This prerequisite and existing build-product reuse remain intact.
Completed native comparison
Baseline:
6ba51132e323cff0239e1d91279836202c060e00, 44049787925 attempt2/job134567691705. Candidate:a04c57876347c1873523150fb61f0b051859a28c, 44230232465 attempt2/job134602112467.Actual overlap is proven, net benefit is not. Both build logs use the same Xcode command, five suite selections, dual-architecture policy and 18 SwiftCompile entries. Host/cache state is not controlled; Xcode output is buffered. The phase envelopes above are not individual compiler timings. Later Watch work became shorter while the build envelope grew. This single pair neither proves causation nor supports dismissing the slower step as noise. The performance acceptance gate remains failed/unresolved; do not land on theoretical overlap alone.
The candidate's lifecycle failure is
SettingsHubTests.swift:722, settings-hubNSURLErrorDomain -1001, around 06:39:03–06:39:37, before the modified Watch step began at 06:59:04. Settings source is unchanged from baseline/current main. WebContent responsiveness/startup and ScreenTime service warnings are diagnostic leads, not an established cause. No timeout, assertion or coverage was relaxed. Passing 716 Swift Testing cases and six logic tests does not erase the XCTest failure.Other proof and limitations
app.tap()from the bootstrap UI test, retaining all assertions. Native evidence shows the old tap opens QR scanning and a camera prompt intercepts Connect Manually. Candidate native runs pass these assertions. This follows #196284, commit3fa0f3a75c697c9b973e15822481ac6a72408f64.55bdaa4d22bbc9ce4055a1568904ba403018d4f8, included in successful ordinary PR CI. The full diagnostic is not green.Simplification
Move existing pair discovery; background one command; join and clean up its PID. No new helper or alternate path. Against merge base: workflow +22/-12, tests +32/-1. Against first revision: workflow +7/-10, 315 fewer bytes; tests unchanged. Best-effort termination covers the owned bootstatus client; runner cleanup owns the simulator process tree. Terminating the client does not roll back a partially booted simulator. Native cancellation/process-tree cleanup remains unproven.
Recovery and disposition
Original baseline attempt1 exceeded 150 minutes; its one original-job recovery completed. Candidate attempt1 was cancelled before Watch tests; its one scoped recovery completed at the same frozen head. Earlier failed/cancelled logs and artifacts are retained; none are represented as passing evidence. No extra full matrix or statistical timing series has been launched.
Fresh discovery found no paired native nodes or configured cloud profiles. Further native root-cause work or matched sampling needs a supported Apple execution environment and bounded authorization. The current recommendation is do not land, not to buy more samples automatically. This PR remains open for owner disposition; no closure, merge or release is performed.