Repository navigation
perf(test): reuse native update builds and remove duplicate flows - #184706
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR reuses the replacement UI build, suppresses optional offline downloads in update tests, and removes duplicate browser flows. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl 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
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -59. Total -59 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed October 26, 2026, 10:32 AM ET / 14:32 UTC. |
|
Merged via squash.
|
…enclaw#184706) * perf(test): reuse native update builds and remove duplicate flows * test(ui): observe optional hover recovery before failure
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
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.jsand/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 statestarts 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/researchrepetition; the agent slug is not an input to the asset middleware.window.fetch503 injection, failed tap, Retry now/error text and no-navigation check insidekeeps repeated build rejection stopped until the visible refresh action with normal service-worker stateui/src/app/stale-chunk-reload.test.ts > keeps automatic recovery running after a failed manual retryuses 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 resultsmounts 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.keeps repeated build rejection stopped until the visible refresh action with blocked service-worker stateui/public/sw.js:463also excludes all non-GET requests, so the worker has no distinct HEAD response branch.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 deadlinepreserves timeout refusal.No helper or production export becomes orphaned:
polledTextis 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
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.
Unfinished selected UI rows
None.
Failed/cancelled jobs across the full run
Skipped UI selections
Boundaries
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.
Unfinished selected UI rows
None.
Failed/cancelled jobs across the full run
None in this snapshot.
Skipped UI selections
Boundaries
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 | 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):
Cache outcomes in the retained logs:
Missing completed rows: none.