Skip to content

perf(test): reuse native update builds and remove duplicate flows - #184706

Merged
steipete merged 2 commits into
mainfrom
solid2/w-test-ci-worker-updates
Oct 26, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-test-ci-worker-updates

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The native worker update proof reconstructs the same replacement build three times and downloads unrelated optional offline chunks during each update. Reuse the build-B tree returned by the existing atomic rollback, and exercise the supported Save-Data preference while retaining mandatory boot-cache preparation. Native browser contexts stay separate.

Remove the standalone deep-link boot and two scripted failed-HEAD subflows whose contracts have cheaper owning proof. Keep actual native installation/activation, foreground missed-event recovery, dirty-config refusal, durable Chat drafts, terminal custody, phone normal/blocked-worker modes, successful document probes, real navigation and artifact identity.

Accepted edge: selecting only one worker case still stages the replacement once. The suite already requires sequential deployment transitions; no new state owner or parallel-safety mechanism is added. No production implementation, runner, shard count, timeout or dependency changes.

User Impact

No user-visible behavior change. The native update and phone-recovery contracts remain covered with fewer repeated fixture builds and browser flows.

Removed-case ledger

Removed name or subflow Cheap owning keeper Retained native keeper / accepted loss
Control UI service-worker production update E2E > boots a document loaded on a deep link (Gateway asset-path contract) ui/src/test-helpers/control-ui-e2e-server.node.test.ts > matches Gateway immutable asset caching without caching documents or missing assets: starts the real preview helper over fixture files and reads /assets/entry-abcdefgh.js and /chat/assets/entry-abcdefgh.js, verifying 200, exact module bytes and immutable cache policy. A middleware regression that returns HTML fails this test. Control UI phone stale-build recovery E2E > keeps repeated build rejection stopped until the visible refresh action with blocked service-worker state starts the same production-server path with worker blocking and an initial document at /chat/main, waits for actual rendered image/timeout content, then recovery document responses and final route/asset identity. Accepted loss: no independent /chat/research repetition; the agent slug is not an input to the asset middleware.
The window.fetch 503 injection, failed tap, Retry now/error text and no-navigation check inside keeps repeated build rejection stopped until the visible refresh action with normal service-worker state ui/src/app/stale-chunk-reload.test.ts > keeps automatic recovery running after a failed manual retry uses actual retry owner with a 503, proves manual false/no reload and subsequent successful recovery; ui/src/components/sidebar-update-card.test.tsx > retains refresh retries across shell updates and ignores obsolete recovery results mounts the actual Solid card and proves false completion re-enables its retained button, shows the exact error and Retry now, retries, and owns success until unload. Same phone case remains, with actual service worker, four rejection/recovery documents, visible refresh, successful native HEAD probe, stop-for-120s clock assertion and final ownership reads. Accepted loss: no full app replay of the already-owned false-result presentation.
The identical scripted failed-probe subflow inside keeps repeated build rejection stopped until the visible refresh action with blocked service-worker state Same two cheap keepers. This injection has no worker-mode difference: it returns before calling original fetch. ui/public/sw.js:463 also excludes all non-GET requests, so the worker has no distinct HEAD response branch. Same blocked-worker phone case remains. Successful probe, native navigation and final restored interaction stay in this mode as well.

Additional retained reload proof: retryStaleChunkReloadWhenReachable single-shot > reloads a chat deep link through its serving document ($routeBase, $resourceBase, automatic: $automatic, dev: $devGateway) verifies HEAD/no-store to the serving index, route/query/hash preservation and native navigation boundary; settles and aborts a hanging document probe after its deadline preserves timeout refusal.

No helper or production export becomes orphaned: polledText is removed only from the phone import; it has other callers. captureControlUiE2eFailureDiagnostics, the browser/page types, and timeout constants all still have target-file uses. No production code changes.

Evidence

Check Result
Exact-head CI Run40353169544 atb39fa27c2675ef98c32c067e61fc3a9afaf2d544 completed successfully; all12selected UI jobs pass and no failing checks
UI types; targeted lint/format Passed
Production Knip/dead-code scans Exact base/head findings identical; no new ignore or finding
Isolated review Original cut and hover correction scoped-clean at P0–P2; full surrounding deployment order inspected
Hover correction All8cases pass; intentional failure remains synchronized with native reload observers
LOC Three test files1581→1531 (+49/−99), production0delta

The selected jobs used155.68API runner-minutes (155.42occupied). The longest job was1076s; preflight-to-last-UI3186sincludes substantial fleet queueing. Shared producer, performance and locale jobs were skipped. This is not a full campaign cost win or proof of the74.20minute/593starget. The change preserves contracts and removes repeated work; the broader round-three effort continues. These unpaired runs have different source and selection, so their arithmetic difference is not attributed savings.

The earlier hover failure is repaired on this head; no inherited-failure exception is requested. Both300msnative worker/MessageChannel absence observations remain. No production visual change needs screenshots.

Before: latest completed scheduled-main phase context

Main exact-head CI snapshot

Run 40347483110, head 496f32bef297a28c7fdaea083a123c878936cf44: completed / failure. All selected UI rows are terminal. No savings claim.

Completed selected UI rows: 9 passed, 3 failed, 1 cancelled, 1 skipped. Charged API minutes 186.02; occupied minutes 185.70; inclusive tests/checks 155.75; fixed/other 30.27.

Preflight completion to last completed UI row: 1223s, full selected UI completion path. Longest completed job: 1213s (build-artifacts).

Completed rows: exact additive phase minutes

Env/deps is composite. Fixture/Gateway startup and cleanup remain inside inclusive tests unless separately named. Other preserves the prior reducer policy; see all step names/categories in JSON. These are whole-second GitHub timestamps, not billed-invoice measurements.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
build-artifacts cancelled 0.23 0.00 0.00 0.50 0.00 0.00 6.05 0.08 11.43 0.25 1.58 0.08 20.22
checks-ui-e2e (2/7) failure 0.83 0.00 0.00 0.58 0.00 0.00 0.00 0.12 17.33 0.07 0.03 0.07 19.03
checks-ui-e2e (3/7) success 0.18 0.00 0.00 0.40 0.00 0.00 0.00 0.07 17.77 0.02 0.03 0.08 18.55
checks-ui-e2e-real-gateway (1/2) success 0.78 0.00 0.00 0.43 0.00 0.00 2.38 0.12 14.17 0.07 0.03 0.07 18.05
checks-ui-e2e (1/7) success 0.70 0.00 0.00 0.55 0.00 0.00 0.00 0.10 15.18 0.02 0.05 0.07 16.67
checks-ui-e2e (6/7) failure 0.18 0.00 0.00 0.52 0.00 0.00 0.00 0.10 15.45 0.08 0.03 0.07 16.43
checks-ui-e2e (4/7) success 0.58 0.00 0.00 0.42 0.00 0.00 0.00 0.10 14.73 0.02 0.05 0.08 15.98
checks-ui-e2e (5/7) success 0.75 0.00 0.00 0.43 0.00 0.00 0.00 0.13 14.52 0.00 0.03 0.10 15.97
checks-ui-e2e-real-gateway (2/2) failure 0.17 0.00 0.00 0.38 0.00 0.00 2.58 0.05 11.17 0.08 0.05 0.07 14.55
checks-ui (3/3) success 0.57 0.03 0.00 0.65 0.00 0.00 0.00 0.13 8.52 0.00 0.07 0.08 10.05
checks-ui (2/3) success 0.72 0.03 0.00 0.42 0.00 0.00 0.00 0.08 7.48 0.00 0.07 0.07 8.87
checks-ui (1/3) success 0.17 0.03 0.00 0.40 0.00 0.00 0.00 0.05 6.22 0.00 0.27 0.07 7.20
control-ui-performance success 0.70 0.00 0.00 1.87 0.00 0.00 0.00 0.00 1.78 0.00 0.03 0.07 4.45
Completed total 6.57 0.10 0.00 7.55 0.00 0.00 11.02 1.13 155.75 0.60 2.33 0.97 186.02

Unfinished selected UI rows

None.

Failed/cancelled jobs across the full run

  • docker-seed-e2e — failure; steps: Run Docker seed tier
  • checks-ui-e2e-real-gateway (2/2) — failure (selected UI); steps: Test Control UI suites with a real Gateway
  • checks-ui-e2e (6/7) — failure (selected UI); steps: Test Control UI end-to-end
  • checks-ui-e2e (2/7) — failure (selected UI); steps: Test Control UI end-to-end
  • build-artifacts — cancelled (selected UI); steps: Run built artifact checks
  • checks-node-compact-large-20 — failure; steps: Run Node test shard
  • checks-node-compact-small-31 — failure; steps: Run Node test shard
  • check-dependencies — failure; steps: Run check shard
  • published-driver-update / Published driver update — failure; steps: Update published driver to candidate
  • openclaw/ci-gate — failure; steps: Verify selected CI lanes

Skipped UI selections

  • control-ui-i18n

Boundaries

  • Only completed non-skipped jobs are charged in this snapshot; unfinished rows are listed without invented terminal duration.
  • Failure/cancellation time is included. Failed or unfinished runs cannot prove a cost win.
  • Each phase row sums exactly to its job API span; API and first Set up job-to-completion occupied spans are not an invoice.
  • Env/deps is the composite action. Exclusive install/cache sub-phases are unavailable without nested logs.
  • Tests includes imports, discovery, nested builds, fixture/Gateway startup and in-test cleanup. No exclusive split is fabricated.
  • Other includes retained-policy setup, lint, separately named checks or packaging steps, and uncovered timing gaps; full classified steps are in JSON.
  • Skipped steps with real timestamps are charged by their name; bookkeeping time does not mean their action executed.
  • No runner resource or physical-host normalization is inferred from job labels.
  • Exact-head discovery and saved jobs snapshots were used. No logs, source changes, tests, builds, leases, PR edits or native operations.

Comparable subtotal, excluding conditional performance and locale rows and charging the entire active producer: 181.57 min. Producer active: True; result: cancelled.

After: exact-head successful selection

Worker exact-head CI snapshot

Run 40353169544, head b39fa27c2675ef98c32c067e61fc3a9afaf2d544: completed / success. All selected UI rows are terminal. No savings claim.

Completed selected UI rows: 12 passed, 0 failed, 0 cancelled, 3 skipped. Charged API minutes 155.68; occupied minutes 155.42; inclusive tests/checks 129.98; fixed/other 25.70.

Preflight completion to last completed UI row: 3186s, full selected UI completion path. Longest completed job: 1076s (checks-ui-e2e (4/7)).

Completed rows: exact additive phase minutes

Env/deps is composite. Fixture/Gateway startup and cleanup remain inside inclusive tests unless separately named. Other preserves the prior reducer policy; see all step names/categories in JSON. These are whole-second GitHub timestamps, not billed-invoice measurements.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
checks-ui-e2e (4/7) success 0.77 0.00 0.00 0.52 0.00 0.00 0.00 0.07 16.45 0.02 0.05 0.07 17.93
checks-ui-e2e-real-gateway (1/2) success 1.15 0.00 0.00 0.82 0.00 0.00 1.75 0.05 13.25 0.05 0.05 0.07 17.18
checks-ui-e2e (3/7) success 0.68 0.00 0.00 0.48 0.00 0.00 0.00 0.08 14.82 0.02 0.05 0.07 16.20
checks-ui-e2e-real-gateway (2/2) success 1.23 0.00 0.00 0.87 0.00 0.00 2.28 0.05 10.77 0.05 0.03 0.07 15.35
checks-ui-e2e (6/7) success 0.67 0.00 0.00 0.42 0.00 0.00 0.00 0.05 12.30 0.00 0.05 0.08 13.57
checks-ui-e2e (2/7) success 0.77 0.00 0.00 0.82 0.00 0.00 0.00 0.10 10.87 0.00 0.03 0.08 12.67
checks-ui-e2e (1/7) success 0.68 0.00 0.00 0.37 0.00 0.00 0.00 0.05 11.08 0.03 0.05 0.07 12.33
checks-ui-e2e (5/7) success 0.90 0.00 0.00 0.37 0.00 0.00 0.00 0.05 10.27 0.00 0.05 0.08 11.72
checks-ui (1/3) success 0.73 0.02 0.00 0.90 0.00 0.00 0.00 0.10 9.52 0.00 0.35 0.07 11.68
checks-ui (3/3) success 0.85 0.05 0.00 1.18 0.00 0.00 0.00 0.12 8.88 0.00 0.07 0.08 11.23
checks-ui (2/3) success 0.78 0.03 0.00 0.88 0.00 0.00 0.00 0.10 8.30 0.00 0.05 0.05 10.20
checks-ui-e2e (7/7) success 0.67 0.00 0.00 1.28 0.00 0.00 0.00 0.08 3.48 0.00 0.05 0.05 5.62
Completed total 9.88 0.10 0.00 8.90 0.00 0.00 4.03 0.90 129.98 0.17 0.88 0.83 155.68

Unfinished selected UI rows

None.

Failed/cancelled jobs across the full run

None in this snapshot.

Skipped UI selections

  • build-artifacts
  • control-ui-performance
  • control-ui-i18n

Boundaries

  • Only completed non-skipped jobs are charged in this snapshot; unfinished rows are listed without invented terminal duration.
  • Failure/cancellation time is included. Failed or unfinished runs cannot prove a cost win.
  • Each phase row sums exactly to its job API span; API and first Set up job-to-completion occupied spans are not an invoice.
  • Env/deps is the composite action. Exclusive install/cache sub-phases are unavailable without nested logs.
  • Tests includes imports, discovery, nested builds, fixture/Gateway startup and in-test cleanup. No exclusive split is fabricated.
  • Other includes retained-policy setup, lint, separately named checks or packaging steps, and uncovered timing gaps; full classified steps are in JSON.
  • Skipped steps with real timestamps are charged by their name; bookkeeping time does not mean their action executed.
  • No runner resource or physical-host normalization is inferred from job labels.
  • Exact-head discovery and saved jobs snapshots were used. No logs, source changes, tests, builds, leases, PR edits or native operations.

Comparable subtotal, excluding conditional performance and locale rows and charging the entire active producer: 155.68 min. Producer active: False; result: None.

Exact-main dependency and fixture phase split

Main: run 40347483110

Head 496f32bef297a28c7fdaea083a123c878936cf44. Full retained logs for 13/13 completed snapshot rows.

Job Env/deps Install/reconcile only Cache restore only Mixed Residual env Chromium step Chromium cache only Browser install/check only Install tail (rounding) Mixed Residual browser
checks-ui-e2e-real-gateway (2/2) 0.383 0.015 0.310 0.000 0.058 0.050 0.033 0.006 0.006 0.000 0.005
checks-ui-e2e (6/7) 0.517 0.019 0.401 0.000 0.097 0.100 0.078 0.008 0.007 0.000 0.006
checks-ui-e2e (3/7) 0.400 0.010 0.310 0.000 0.080 0.067 0.041 0.009 0.013 0.000 0.004
checks-ui-e2e (5/7) 0.433 0.003 0.337 0.000 0.094 0.133 0.094 0.020 0.015 0.000 0.004
checks-ui-e2e (4/7) 0.417 0.021 0.326 0.000 0.069 0.100 0.085 0.010 0.001 0.000 0.004
checks-ui-e2e-real-gateway (1/2) 0.433 0.020 0.360 0.000 0.054 0.117 0.099 0.007 0.006 0.000 0.005
checks-ui-e2e (2/7) 0.583 0.032 0.436 0.000 0.115 0.117 0.089 0.021 0.002 0.000 0.005
checks-ui (1/3) 0.400 0.023 0.293 0.000 0.085 0.050 0.043 0.002 0.000 0.000 0.004
checks-ui (2/3) 0.417 0.018 0.308 0.000 0.091 0.083 0.069 0.006 0.005 0.000 0.004
checks-ui-e2e (1/7) 0.550 0.021 0.427 0.000 0.102 0.100 0.080 0.016 0.000 0.000 0.004
checks-ui (3/3) 0.650 0.029 0.502 0.000 0.119 0.133 0.099 0.025 0.004 0.000 0.005
control-ui-performance 1.867 0.095 1.658 0.000 0.114 0.000 0.000 0.000 0.000 0.000 0.000
build-artifacts 0.500 0.021 0.376 0.000 0.104 0.083 0.060 0.000 0.000 0.000 0.024
Observed total 7.550 0.326 6.044 0.000 1.179 1.133 0.871 0.129 0.060 0.000 0.073

| Job | Tests inclusive | Setup only | Callback only | Cleanup only | Queue only | Mixed owners | Unclassified |
|---|---:|---:|---:|---:|---:|---:|---:|---:|
| checks-ui-e2e-real-gateway (2/2) | 11.167 | 2.998 | 4.315 | 0.241 | 0.000 | 0.781 | 2.832 |
| checks-ui-e2e (6/7) | 15.450 | 0.160 | 12.537 | 0.090 | 0.000 | 0.798 | 1.866 |
| checks-ui-e2e (3/7) | 17.767 | 0.142 | 14.413 | 0.089 | 0.000 | 1.132 | 1.990 |
| checks-ui-e2e (5/7) | 14.517 | 0.251 | 12.573 | 0.054 | 0.000 | 0.858 | 0.780 |
| checks-ui-e2e (4/7) | 14.733 | 0.455 | 11.723 | 0.042 | 0.000 | 0.889 | 1.625 |
| checks-ui-e2e-real-gateway (1/2) | 14.167 | 2.700 | 4.721 | 0.114 | 0.000 | 2.048 | 4.584 |
| checks-ui-e2e (2/7) | 17.333 | 0.195 | 15.032 | 0.040 | 0.000 | 1.052 | 1.013 |
| checks-ui (1/3) | 6.217 | unobserved | unobserved | unobserved | unobserved | unobserved | 6.217 |
| checks-ui (2/3) | 7.483 | unobserved | unobserved | unobserved | unobserved | unobserved | 7.483 |
| checks-ui-e2e (1/7) | 15.183 | 0.124 | 12.372 | 0.032 | 0.000 | 1.970 | 0.686 |
| checks-ui (3/3) | 8.517 | unobserved | unobserved | unobserved | unobserved | unobserved | 8.517 |
| control-ui-performance | 1.783 | unobserved | unobserved | unobserved | unobserved | unobserved | 1.783 |
| build-artifacts | 11.433 | 1.010 | 0.033 | 0.027 | 0.000 | 0.000 | 10.364 |
| Observed total | 155.750 | 8.034 | 87.718 | 0.729 | 0.000 | 9.529 | 49.739 |

Non-additive Gateway-start/readiness unions (seconds; included in setup/mixed above):

  • checks-ui-e2e-real-gateway (2/2): start 165.617; readiness 161.078; completed owner intervals 293; Gateway starts 18.
  • checks-ui-e2e (6/7): start 0.000; readiness 0.000; completed owner intervals 1866; Gateway starts 0.
  • checks-ui-e2e (3/7): start 0.000; readiness 0.000; completed owner intervals 1868; Gateway starts 0.
  • checks-ui-e2e (5/7): start 0.000; readiness 0.000; completed owner intervals 1876; Gateway starts 0.
  • checks-ui-e2e (4/7): start 0.000; readiness 0.000; completed owner intervals 1928; Gateway starts 0.
  • checks-ui-e2e-real-gateway (1/2): start 204.349; readiness 197.548; completed owner intervals 286; Gateway starts 18.
  • checks-ui-e2e (2/7): start 0.000; readiness 0.000; completed owner intervals 1970; Gateway starts 0.
  • checks-ui (1/3): unobserved (no completed owner markers).
  • checks-ui (2/3): unobserved (no completed owner markers).
  • checks-ui-e2e (1/7): start 0.000; readiness 0.000; completed owner intervals 1992; Gateway starts 0.
  • checks-ui (3/3): unobserved (no completed owner markers).
  • control-ui-performance: unobserved (no completed owner markers).
  • build-artifacts: start 5.544; readiness 5.188; completed owner intervals 12; Gateway starts 1.

Cache outcomes in the retained logs:

  • checks-ui-e2e-real-gateway (2/2): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'skipped': 1}; vitest_transform {'skipped': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e (6/7): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e (3/7): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e (5/7): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e (4/7): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e-real-gateway (1/2): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'skipped': 1}; vitest_transform {'skipped': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e (2/7): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui (1/3): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui (2/3): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui-e2e (1/7): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • checks-ui (3/3): exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'miss': 1}; chromium_restore {'hit': 1}.
  • control-ui-performance: exact_deps {'skipped': 1}; pnpm_store {'hit': 1}; node_compile {'skipped': 1}; vitest_transform {'skipped': 1}.
  • build-artifacts: exact_deps {'hit': 1}; pnpm_store {'skipped': 1}; node_compile {'hit': 1}; vitest_transform {'skipped': 1}; chromium_restore {'hit': 1}.

Missing completed rows: none.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 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.

@steipete
steipete marked this pull request as ready for review October 26, 2026 14:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T15:59:33.303416Z b39fa27 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR reuses the replacement UI build, suppresses optional offline downloads in update tests, and removes duplicate browser flows.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-supported; validation confidence is limited by the unresolved CI failure and absence of a candidate performance result.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only PR is outside the contributor real-behavior proof gate; CI supports validation, but historical timings establish no candidate speedup.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated fixture preparation and duplicate browser flows consume developer and CI resources.
Reason: The maintainer-authored direction is established, the reduction uses existing owners, and the removed-case ledger matches retained source coverage.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused test-cost reduction with justified retained coverage; no introduced defect was found, but exact-head CI remains blocked.

Priority: P3
Reviewed head: 0e488508ffc92406a3684399ef5696175e58207d

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI browser tests deploy production assets through an isolated preview server, exercise native service-worker updates and phone recovery, and assert navigation, drafts, cache identity, and restored interaction.

flowchart LR
  A[Production UI assets] --> B[Build A and replacement B]
  B --> C[Atomic preview publication]
  C --> D[Isolated browser contexts]
  D --> E[Native worker lifecycle]
  D --> F[Phone recovery]
  E --> G[Retained behavior assertions]
  F --> G
Loading

Technical review

Best possible solution:

Retain this small reuse-and-consolidation patch and resolve the exact-head CI gate using failure attribution rather than speculative code changes.

Do we have a high-confidence way to reproduce the issue?

Source shows three identical B-staging calls and duplicated browser subflows on the base; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch uses the existing publication owner and rollback lifecycle, preserves separate browser contexts, and retains cheaper owner coverage for each removed flow.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d777ae123962.

Provenance checked

  • Replacement-build staging keeps the original intent (717dcae: Reuse identical replacement builds while isolating worker mutation; the later identity-refresh approach was adopted in perf(ui): reuse compiled assets in update lifecycle tests #181477.)
  • Standalone deep-link boot case changes intended behavior with a stated reason (c59ef0b: Prevent preview-server SPA fallback from returning HTML for nested JavaScript requests; exact-byte server coverage and a retained blocked-worker deep-link browser flow now cover that boundary.)
  • Scripted failed manual refresh changes intended behavior with a stated reason (5ebe54c: Prove accessible phone recovery remains retryable after a failed probe; the PR explicitly assigns refusal and retained-button behavior to existing owner tests while keeping successful native recovery in both worker modes.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0e1123f adds ui/src/e2e/service-worker-update.e2e.test.ts:61 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0e1123fbfca8; files: ui/src/e2e/service-worker-update.e2e.test.ts)
  • Vincent Koc: Raw commit 717dcae adds ui/src/e2e/service-worker-update.e2e.test.ts:52 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 717dcaed7a9d; files: ui/src/e2e/service-worker-update.e2e.test.ts)

PR surface

Tests -59. Total -59 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 12 71 -59
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 12 71 -59

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/−0; tests +12/−71 The reduction removes repeated staging and duplicated flows without adding production machinery.

Labels

Label changes:

  • add P3: This is test-suite performance and coverage consolidation with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test-suite performance and coverage consolidation with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the exact-head hover-preview failure against base evidence before selecting a repair or inherited-failure disposition.

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.

Reviewed October 26, 2026, 10:32 AM ET / 14:32 UTC.

@steipete
steipete merged commit c00af62 into main Oct 26, 2026
103 of 105 checks passed
@steipete
steipete deleted the solid2/w-test-ci-worker-updates branch October 26, 2026 16:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…enclaw#184706)

* perf(test): reuse native update builds and remove duplicate flows

* test(ui): observe optional hover recovery before failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. 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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant