Skip to content

improve(ci): prepare Watch companion during build - #200380

Closed
RomneyDa wants to merge 4 commits into
mainfrom
openclaw/frv-watch-boot-20261117
Closed

RomneyDa wants to merge 4 commits into
mainfrom
openclaw/frv-watch-boot-20261117

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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

  • Prepare the selected Watch simulator's actual paired phone alongside existing foreground Xcode build/settings work; join before Watch boot, installation or tests.
  • Preserve the selected pair, all five test selections, product resolution, independent failure statuses and early-exit cleanup. No new jobs, caches, setup steps, planner or concurrency-cap changes.

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.

Observed metric Baseline Candidate
Whole Watch step 19m28s 28m34s: +9m06s / +46.7%
Step start to logged test-build success ~100s ~1,352s
Phone boot monitoring to finished ~86.6s, after build ~147.9s, overlapping build
Watch tests 62 passed / four suites, 6.312s 62 passed / four suites, 2.873s
Native job Failed original bootstrap UI assertion Failed Settings dashboard readiness assertion; terminal 07:33:02 UTC

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-hub NSURLErrorDomain -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

  • Actual workflow-shell regression: base fails the overlap handshake; candidate passes. No timing-threshold assertion or production test hook.
  • 78 iOS workflow tests pass (5.68s suite / 6.42s wrapper), including unpaired destinations, actual companion selection, exact boot-failure status, product-resolution failure and foreground-build cleanup. Focused types, type-aware lint, formatting, diff checks, pinned actionlint, zizmor and workflow scanner pass.
  • Removed redundant status bookkeeping to keep workflow size 479,980 bytes under the unchanged 480,000-byte limit. Upstream fix(ci): classify recovery browser test server ownership #200402 repaired inherited UI ownership failure, retaining author credit and assertions.
  • Current head removes one stray 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, commit 3fa0f3a75c697c9b973e15822481ac6a72408f64.
  • Exact-head ordinary CI44230439548 succeeded. It does not execute release-only Watch acceptance. Hosted review completed without code findings; comparable native timing remains an open proof item. GitHub verifies the branch is mergeable.
  • The direct-head diagnostic also encountered the dependency issue addressed by existing main repair 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.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 17, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head CI attribution

Run 44009289838 at PR head 5d6e495179adba91891bdc8ef591ac054d013a0c completed with one failing test job (133792989516) plus its aggregate gate: the private Control UI ownership guard detects 91 files versus 90 declared, specifically extensions/openclaw-id-access/browser/recovery-uses.e2e.test.ts.

The guard's failing assertion in test/scripts/ci-ui-e2e-ownership.test-support.ts:106 scans tracked UI/browser tests and compares the existing serial inventory. Those inputs and the guard are unchanged from base 6ba51132e323cff0239e1d91279836202c060e00. The same assertion was reproduced locally during the focused workflow guard run (one failed, one passed, 224 skipped); the workflow-size guard passes. Neither this PR's Watch boot ordering participates in that assertion. No baseline was relaxed or failure rerun away.

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.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: Companion preparation starts after Xcode build and product resolution finish.
  • After: Companion preparation runs alongside Xcode work and must succeed before Watch boot, installation, or testing.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and native Watch execution succeeded, but performance acceptance remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) These CI scheduling and test changes introduce no application-runtime behavior requiring shipped-entry-point proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Native validation spends time waiting for companion preparation after independent Xcode work has finished.
Reason: The maintainer-authored direction targets an observed serial wait without adding runners, caches, configuration, or application behavior.

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
Reviewed head: a04c57876347c1873523150fb61f0b051859a28c

Before merge

  • Complete next step - PR owner: provide comparable native baseline/candidate Watch-step measurements establishing a scheduling benefit before marking this PR ready.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Watch companion preparation keeps the original intent (56c6439: Prepare the selected Watch’s actual paired phone to prevent XCTest connection timeouts, retaining unpaired destinations.)
  • Watch build-product resolution and reuse keeps the original intent (ci: reuse Watch build products and repair process cleanup #134523: Reuse existing DerivedData while resolving the unique Watch target’s product through Xcode build settings.)
  • Bootstrap refusal UI navigation changes intended behavior with a stated reason (bc4a18a: Exercise failed bootstrap setup without losing retry input or changing the prior endpoint; the generic tap accompanied a Local Network interruption monitor.)
  • Private browser-server test routing keeps the original intent (fix(ci): classify recovery browser test server ownership #200402: Route a test that starts its own source server through the existing serial standalone project.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit bc4a18a adds apps/ios/UITests/BootstrapSetupFailureUITests.swift:41 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bc4a18ac08d6; files: apps/ios/UITests/BootstrapSetupFailureUITests.swift)
  • Dallin Romney: Raw commit 20cb257 adds test/scripts/ios-lifecycle-workflow.test.ts:342 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 20cb257f749a; files: test/scripts/ios-lifecycle-workflow.test.ts)

PR surface

Tests +31, Config +10. Total +41 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 33 2 +31
Docs 0 0 0 0
Config 1 22 12 +10
Generated 0 0 0 0
Other 0 0 0 0
Total 4 55 14 +41

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a bounded CI scheduling improvement with no established application regression or urgent user impact.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-17T03:35:31.045Z sha 5d6e495 :: needs changes before merge. :: none
  • reviewed 2026-11-18T03:10:48.486Z sha 9ae509f :: needs changes before merge. :: none

Reviewed November 17, 2026, 10:30 PM ET / November 18, 2026, 03:30 UTC (Revision 3).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 18, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: ios App: ios label Nov 18, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

RomneyDa commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Native recovery terminal assessment — November 18, 2026

Not 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 a04c57876347c1873523150fb61f0b051859a28c, attempt 2 job 134602112467, finished failure at 07:33:02 UTC. Watch passed 62 tests / four suites in 2.873s, and the repaired bootstrap assertions passed. Artifact 14408135156 and the complete job log were inspected.

Measured phase comparison

Baseline: frozen 6ba51132e323cff0239e1d91279836202c060e00, attempt 2 job 134567691705. Candidate: the exact head above. These are one sample each, not controlled or statistical speedup proof.

Phase / boundary Baseline UTC Candidate UTC
Watch step start 05:11:04 06:59:04
Phone boot monitoring to finished 05:13:03.011–05:14:29.613 (~86.6s) 06:59:13.346–07:01:41.271 (~147.9s)
Xcode test-build success logged 05:12:43.739 07:21:36.337
Watch bootstatus first output 05:21:34.812 07:24:36.870
Watch bootstatus completion 05:24:05.141 07:24:36.975 (already booted)
Test-execute success / step end 05:30:32.255 07:27:38.396
Whole Watch step 19m28s 28m34s (+9m06s, +46.7%)

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 failure

Lifecycle failed at SettingsHubTests.swift:722: the settings-hub entry exceeded the existing readiness condition (NSURLErrorDomain -1001). The test ran for 33.893s around 06:39:03–06:39:37, before this Watch step began at 06:59:04. The log contains WebContent responsiveness/startup warnings and ScreenTime service errors, but they do not establish the root cause. The other four dashboard entry points did not appear in the aggregated failures. Settings source is unchanged from baseline/current main. Passing 716 Swift Testing cases and six logic tests does not erase this XCTest failure. No timeout, assertion or coverage has been relaxed.

Disposition and proof boundary

The 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.

@RomneyDa RomneyDa closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants