Skip to content

perf(ci): reuse UI build content in real-Gateway jobs - #184802

Merged
steipete merged 8 commits into
mainfrom
solid2/w-test-ci-ui-build-cache
Oct 26, 2026
Merged

steipete merged 8 commits into
mainfrom
solid2/w-test-ci-ui-build-cache

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Real-Gateway CI repeats Control UI compilation during private-QA preparation even when the protected public build cache contains matching UI output. Restore that existing full-build cache and let the UI build owner validate and reuse its content. Private runtime preparation still runs pnpm build; runner sizes, fanout, test selection, validators, and the sole protected cache publisher remain unchanged. There is no user-facing rendering change.

The cache identity retains complete source-plugin discovery across public/private builds, native UI declarations/assets, and Vite-consumed inputs. Backend-only packaged metadata is excluded only after JSON and plugin-ID validation. Unconsumed test bodies no longer invalidate the bundle; the complete test-path inventory still invalidates added/removed glob matches, and consumed test content remains hashed. This uses the existing cache owner without a second artifact pipeline or another cache writer.

Published replacement head. Current published head: 5b959766d26dc051b1de0f61a696ad3f9f64f3cf. Prior published head: a926f755153e5ba8510f49a106d7e076a81fa4ba. Integrated main and comparison base: fae514bf96c4b8295893ebfe293524f5ef9b7edc. The replacement commit is pushed. Replacement-head run 40400729552 completed successfully: all selected UI jobs and all other executed jobs passed. Its13charged UI rows consume116.50full/113.32comparable minutes with an849-second selected path; no qualified saving is claimed. Main integration includes the already-landed PDF fix #184943; no dependency or lockfile change is introduced.

The follow-up diagnostic records failure-only structural table/modal state and counts from already-retained browser errors. To keep the existing file within its line cap, the self-contained browser snapshot callback moves to control-ui-e2e-browser-state.ts and is passed directly to the same single page.evaluate. Node-side capture keeps its existing five-second deadline, public/private separation, late-read behavior, original-error handling and file ownership. No listener, second browser read, passing-test DOM work, assertion change, retry or timeout increase is added. This does not fix or attribute the original modal timeout.

User Impact

User impact: no user-visible rendering change; this affects CI preparation and diagnostics.

Why This Change Was Made

Use the existing validated UI cache during private-QA preparation while preserving the private runtime build and sole cache publisher.

Evidence

Proof Result and scope
Original cache implementation review Retained five-pass isolated P0–P2 review, scoped-clean, for the original nine-file change at c584. Each batch had explicit unchanged-owner context limits; no fresh whole-head review is claimed.
Real public/private build parity Retained fixed-timestamp proof:5,975 byte-identical UI files,142,860,494 B per baseline build.
Public seed → private consumer One descriptive local pair:38.80→15.46 s wall;62.62→18.59 s CPU; consumer skipped Vite. Candidate outputs matched across5,975 files; expected dirty-identity bytes account for the2 B baseline difference. No distribution or CI savings claim.
Build-wrapper/workflow guards Retained17/162 passes with8 existing skips; separate real-Gateway setup guard1/1 pass.
Lazy Details/Cron readiness Retained exact cases passed once; assertions, identity, dismissal, labels and negative intervals preserved.
Original-order transition file At prior c584,12/12 passed once, no skips/name filter;44.15 s Vitest,17.98 s owned temporary build. The formerly failing case ran eleventh and passed in1.827 s. This does not diagnose the CI failure.
Extracted failure capture Both-file formatter, UI types and whitespace passed on the extracted shape. Isolated review was scoped-clean, P0–P2, covering both local transitions and serialization/privacy/deadline ownership; no browser execution.
Prior a926 merged checks UI types passed at the prior merged head. Targeted lint hit its own parent artifact lock; the owned wrapper was terminated and joined, with the retained lock untouched. No lint pass claimed.
Four-file repair review Final combined isolated P0–P2 review is scoped-clean; menu labels, native clipboard ownership and lazy import settlement retain all assertions, cases and deadlines.
Replacement-head broad proof Run40400729552 completed/success at5b959766: all13charged UI rows passed, locale skipped, no failed/cancelled jobs across the run. Full116.50/comparable113.32min; selected path849s.

The cache fixture retains flavor reuse, unconsumed edits, new test paths, consumed-input changes, native UI/font invalidation, malformed manifests and validator refusal. Real-build parity is separate from that fixture. Original proof used Node24.22.1 for fixed-timestamp builds and Node26.12.1 with pinned Bun for focused checks; those are retained observations, not reruns on this merged head.

Current four-file test repair

The replacement commit changes 4 existing test files, +9/−8 relative to a926f75, with no production change, new case, deleted assertion, timeout increase or retry. The final combined isolated P0–P2 review was scoped-clean (round159-cache-repair-review*); its scope is these four files, not a fresh review of every earlier cache/diagnostic change.

The two attachment/media files follow the already-landed menu labels: Camera / Media, retaining the camera dialog's Take photo title. The identical reviewed patch has one old-label red control and all16existing cases green (13 attachment/3 media;49.13s Vitest/51.69s wrapper) on main9890d705; UI types, final format and whitespace passed. The before and final blobs match the reused proof. These are exact-file proof results, not replacement-head CI.

The session-details test now awaits vi.dynamicImportSettled() after changing the projected owner, before its unchanged visible-attribution assertion. The native host update promise only joins synchronous rendering; the people list loads through a real lazy boundary. The whole file passed 19/19 once in5.52s, with the affected case39ms; one-file format/whitespace passed. No deterministic reproduction established lazy loading as the exact original CI cause, so this is a grounded readiness repair with that attribution limit retained.

The cloud conflict suite now uses the existing browserLaunchOptions: { headless: true } escape hatch. Its Chromium process is private while its bundled server remains shared. In prior CI the diagnostic clipboard read received exactly the oversized-message notice copied by a concurrent message-actions suite: browser contexts isolate DOM, but share their browser process's native clipboard. The original diagnostic DOM, focus/scrolling and selection checks passed before that readback. The single authorized whole-file replay stopped before tests on the retained .artifacts/dist-artifacts.lock (owner27586); no lock was deleted or modified and no bypass or successful replay is claimed. This small extra browser fixture cost remains unmeasured in CI.

Session scoped lint hit the same retained artifact lock before analysis. The final combined review explicitly retained the clipboard replay and lint gaps; no setup failure is counted as a pass. Evidence is in round158-session-lazy*, round155-cloud-clipboard* and round155-media-label-*.

Unresolved prior-head failure

Exact prior run 40387136604, head c584cdd01768f3e7e41bd355866a98a6cbe53cb3, completed/failure:11 selected UI jobs passed,2 failed,0 cancelled, locale skipped. The PR-only case is Control UI new-session page mocked Gateway E2E > shows the submitted prompt before creation responds and restores it after failure (390, dark, reduce, markdown): the Expand table click completed but the native Expanded table dialog visibility wait timed out. The exact case passes scheduled main.

One isolated replay and the unchanged12/12 original-order file both passed. Those local observations alone did not establish a repair, inherited failure or current-head success; the later successful exact-head CI result is recorded below. The test retains its unique pending-preview→accepted-transcript table-open/content/close contract; static/history modal tests do not replace it.

The source audit rules out a stale result from the new UI content-cache lookup on this mocked-E2E path: its bundled server directly invokes Vite instead of scripts/ui.mts. The click synchronously captures its current target; there is no demonstrated asynchronous-event closure error. Source/owner retirement while the lazy modal import is pending can intentionally cancel opening, but the original failure records no relevant detach or presentation transition. No cancellation or modal-lifecycle cause is established. New failure facts distinguish absent, closed or hidden modal state and retained script/browser-error counts without changing the interaction.

The second failed UI job is the historical PDF case Session file PDFs > previews linked PDFs above and below the inline cap and downloads fresh bytes, also failing on the retained scheduled main. Main subsequently fixed it in #184943. That separate failure does not justify classifying the table timeout as inherited.

Real CI minutes and per-job phases

The original baseline remains106.00 comparable min; the landed checkpoint was88.33 comparable /91.50 full min and593 s. The target is74.20 comparable min and≤593 s. The replacement-head after observation is run40400729552:116.50full/113.32comparable minutes and849s, all jobs green. It exceeds both the74.20-minute campaign target and593-second checkpoint path; no qualified saving is claimed.

Observation Full min Comparable min Fixed/other min Inclusive tests/checks min Selected path Longest job
Retained completed scheduled main40387557460,9c2ae9ac 138.00 134.82 27.40 110.60 1056 s 1054 s
Prior cache headc584,40387136604 136.20 133.12 25.52 110.68 974 s 966 s
Prior published a926f75, run40396617286 147.55 144.63 29.23 118.32 1101s 1096s
Current published5b959766, run40400729552 116.50 113.32 23.57 92.93 849s 847s

Both retained runs charge the whole successful producer. The main observation has12 passes/one PDF failure; the prior cache run has11 passes/two failures. Different source/workload and unresolved failure prevent causal comparison. These are consumption observations, not a forecast or a credited percentage cut.

Retained scheduled main40387557460: additive phase minutes

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
build-artifacts success 0.67 0.00 0.00 0.40 0.00 0.00 4.05 0.05 10.45 0.25 1.63 0.07 17.57
checks-ui-e2e-real-gateway (1/2) success 0.73 0.00 0.00 0.32 0.00 0.00 2.10 0.05 10.87 0.05 0.03 0.07 14.22
checks-ui-e2e (3/7) success 0.83 0.00 0.00 0.45 0.00 0.00 0.00 0.05 12.28 0.00 0.05 0.08 13.75
checks-ui-e2e-real-gateway (2/2) success 0.85 0.00 0.00 0.35 0.00 0.00 2.35 0.05 9.63 0.05 0.05 0.07 13.40
checks-ui-e2e (4/7) failure 0.77 0.00 0.00 0.38 0.00 0.00 0.00 0.08 10.95 0.05 0.03 0.05 12.32
checks-ui-e2e (1/7) success 0.62 0.00 0.00 0.43 0.00 0.00 0.00 0.05 10.75 0.02 0.05 0.08 12.00
checks-ui-e2e (6/7) success 0.17 0.00 0.00 0.37 0.00 0.00 0.00 0.05 10.90 0.03 0.05 0.05 11.62
checks-ui-e2e (2/7) success 0.72 0.00 0.00 0.38 0.00 0.00 0.00 0.05 8.93 0.00 0.03 0.08 10.20
checks-ui-e2e (5/7) success 0.63 0.00 0.00 0.47 0.00 0.00 0.00 0.07 8.00 0.02 0.05 0.07 9.30
checks-ui (1/3) success 0.60 0.03 0.00 0.53 0.00 0.00 0.00 0.07 5.62 0.00 0.30 0.07 7.22
checks-ui (3/3) success 0.83 0.02 0.00 0.43 0.00 0.00 0.00 0.05 5.37 0.00 0.05 0.08 6.83
checks-ui (2/3) success 0.73 0.03 0.00 0.42 0.00 0.00 0.00 0.03 5.07 0.00 0.05 0.07 6.40
control-ui-performance success 0.58 0.00 0.00 0.73 0.00 0.00 0.00 0.00 1.78 0.00 0.02 0.07 3.18
Completed total 8.73 0.08 0.00 5.67 0.00 0.00 8.50 0.65 110.60 0.47 2.40 0.90 138.00

Prior cache run40387136604: additive phase minutes

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
checks-ui-e2e-real-gateway (1/2) success 0.57 0.00 0.00 0.32 0.00 0.00 2.27 0.07 12.75 0.05 0.03 0.05 16.10
checks-ui-e2e-real-gateway (2/2) success 0.72 0.00 0.00 0.38 0.00 0.00 2.38 0.05 9.17 0.03 0.03 0.07 12.83
build-artifacts success 0.97 0.00 0.00 0.38 0.00 0.00 4.50 0.05 6.58 0.02 0.05 0.07 12.62
checks-ui-e2e (1/7) failure 0.18 0.00 0.00 0.43 0.00 0.00 0.00 0.05 11.53 0.03 0.03 0.07 12.33
checks-ui-e2e (5/7) success 0.18 0.00 0.00 0.43 0.00 0.00 0.00 0.05 11.43 0.00 0.05 0.12 12.27
checks-ui-e2e (6/7) success 0.75 0.00 0.00 0.47 0.00 0.00 0.00 0.07 10.38 0.03 0.05 0.05 11.80
checks-ui-e2e (3/7) success 0.77 0.00 0.00 0.33 0.00 0.00 0.00 0.05 10.02 0.00 0.03 0.08 11.28
checks-ui-e2e (2/7) success 0.75 0.00 0.00 0.38 0.00 0.00 0.00 0.05 9.75 0.00 0.03 0.07 11.03
checks-ui-e2e (4/7) failure 1.00 0.00 0.00 0.35 0.00 0.00 0.00 0.05 9.13 0.05 0.03 0.05 10.67
checks-ui (1/3) success 0.87 0.03 0.00 0.45 0.00 0.00 0.00 0.05 7.60 0.00 0.30 0.07 9.37
checks-ui (3/3) success 0.83 0.02 0.00 0.42 0.00 0.00 0.00 0.07 5.27 0.00 0.05 0.08 6.73
checks-ui (2/3) success 0.18 0.03 0.00 0.38 0.00 0.00 0.00 0.07 5.30 0.00 0.05 0.07 6.08
control-ui-performance success 0.75 0.00 0.00 0.52 0.00 0.00 0.00 0.00 1.77 0.00 0.02 0.03 3.08
Completed total 8.52 0.08 0.00 5.25 0.00 0.00 9.15 0.67 110.68 0.22 0.77 0.87 136.20

Prior published a926f75: complete terminal CI

Run 40396617286 at published a926f75 is completed/failure:9selected UI jobs passed,4failed,0cancelled,1skipped. All13charged rows are terminal. Full consumption is147.55min, comparable144.63min, comprising29.23fixed/other and118.32inclusive tests/checks. The selected path is1101s and longest job1096s. Both real-Gateway jobs and the producer passed. This is prior-head evidence. The published replacement5b959766 subsequently passed run40400729552, reported below; no cost saving is claimed.

The failed cases are one session-details attribution case in unit1,11Platform attachment menu cases in E2E2,3Existing photos and videos cases in E2E4, and the cloud diagnostic clipboard case in E2E3; the aggregate gate failed. All16exact failing names are retained in the review data with source logs. The replacement addresses these three mechanisms; no blanket inherited-failure attribution is claimed. The older c584 modal timeout remains causally unproven.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
checks-ui-e2e-real-gateway (1/2) success 0.82 0.00 0.00 0.80 0.00 0.00 3.38 0.10 13.02 0.03 0.05 0.07 18.27
checks-ui-e2e (4/7) failure 0.77 0.00 0.00 0.47 0.00 0.00 0.00 0.07 12.78 0.03 0.03 0.07 14.22
checks-ui-e2e-real-gateway (2/2) success 0.82 0.00 0.00 0.50 0.00 0.00 2.45 0.08 9.62 0.03 0.03 0.05 13.58
checks-ui-e2e (2/7) failure 0.18 0.00 0.00 0.65 0.00 0.00 0.00 0.10 11.50 0.05 0.05 0.05 12.58
checks-ui-e2e (5/7) success 0.80 0.00 0.00 0.52 0.00 0.00 0.00 0.07 10.85 0.00 0.05 0.08 12.37
build-artifacts success 0.17 0.00 0.00 0.40 0.00 0.00 4.53 0.05 6.52 0.03 0.03 0.07 11.80
checks-ui-e2e (6/7) success 0.78 0.00 0.00 0.50 0.00 0.00 0.00 0.07 9.73 0.03 0.05 0.05 11.22
checks-ui-e2e (3/7) failure 0.77 0.00 0.00 0.43 0.00 0.00 0.00 0.07 9.78 0.03 0.05 0.07 11.20
checks-ui-e2e (1/7) success 0.63 0.00 0.00 0.40 0.00 0.00 0.00 0.07 9.60 0.00 0.03 0.08 10.82
checks-ui (1/3) failure 0.80 0.03 0.00 0.52 0.00 0.00 0.00 0.05 8.92 0.03 0.28 0.05 10.68
checks-ui (2/3) success 0.70 0.07 0.00 0.77 0.00 0.00 0.00 0.08 8.82 0.00 0.05 0.07 10.55
checks-ui (3/3) success 0.93 0.02 0.00 0.40 0.00 0.00 0.00 0.05 5.83 0.00 0.05 0.07 7.35
control-ui-performance success 0.78 0.00 0.00 0.68 0.00 0.00 0.00 0.00 1.35 0.00 0.02 0.08 2.92
Completed total 8.95 0.12 0.00 7.03 0.00 0.00 10.37 0.85 118.32 0.28 0.78 0.85 147.55

Tables are generated from retained exact step/job JSON. Each raw row closes exactly to its job span. Whole-second timestamps are elapsed proxies, not invoices. Env/deps is composite; zero Install/Download/Restore cells mean no separately timed interval. Tests includes imports, discovery, nested builds, fixtures/Gateway startup and in-test cleanup. Failed work is charged, and no machine normalization or additive nested-build credit is applied.

The new key invalidates old UI seeds once. Credit zero warm-cache runner-minute savings until a protected-main producer publishes it and an eligible consumer demonstrably reuses it. Cold fallback and successful contracts alone are insufficient. No second publisher or broader cache authority is introduced.

Current changed-file LOC and landing state

Computed read-only from pinned merge-basefae514bf96c4b8295893ebfe293524f5ef9b7edc and exact local head5b959766d26dc051b1de0f61a696ad3f9f64f3cf Git blobs. No main update or Git mutation was performed for this package.

File Base Head
.github/actions/setup-node-env/action.yml 454 454
.github/workflows/ci.yml 7,053 7,054
docs/ci.md 547 553
scripts/ui.mts 731 761
test/scripts/ci-workflow-guards.test.ts 7,931 7,948
test/scripts/ci-workflow-planning.test.ts 13,728 13,731
test/scripts/ui.test.ts 755 802
ui/src/e2e/chat-attachment-menu.e2e.test.ts 288 286
ui/src/e2e/chat-media-picker.e2e.test.ts 96 96
ui/src/e2e/cloud-workspace-conflict.e2e.test.ts 324 326
ui/src/pages/chat/components/chat-details-session.test.ts 846 849
ui/src/pages/chat/components/chat-summary-automations.test.tsx 880 884
ui/src/test-helpers/control-ui-e2e-browser-state.ts 0 287
ui/src/test-helpers/control-ui-e2e-diagnostics.ts 721 463

14 files, 34,354 → 34,494 LOC; +431/−291. The four-file replacement adds9/removes8 lines over prior a926f75. The two diagnostic files still total721→750 lines (+29); extraction moves existing browser snapshot ownership without a second capture. There is no production Solid rendering change or dependency change.

This replacement head is published; run40400729552 is green and current-head native preparation completed in batch51307. Landing remains unverified in this body. Native session34962 joined with exit1 during validation of the prior cache review document: behavioral sweep was marked pass while its silent-drop assessment was unknown. After reading the current cache publication, diagnostic capture and four-file test diff, this document records no introduced silent drop; the original modal's unknown cause remains a separate investigated test gap. No source was changed for that correction. The replacement-head broad CI result and completed native preparation are separate from the earlier validation failure; no merge is claimed. No prior auto request or outcome is reported for this PR. Clipboard replay and lint remain setup-blocked; no qualified runner-minute saving or landing is claimed.

Current green exact-head phase evidence

Run 40400729552, head 5b959766d26dc051b1de0f61a696ad3f9f64f3cf, completed successfully. All13charged UI rows passed; locale was skipped, with no failed/cancelled jobs across the full run. Full consumption is 116.50min, comparable consumption 113.32min, inclusive tests/checks 92.93min, and fixed/other 23.57min. The selected path is 849s, longest job 847s. The entire active producer is charged. This establishes current-head correctness, not a causal campaign saving or checkpoint-path qualification.

Env/deps remains composite. Fixture/Gateway startup, imports, discovery, nested builds and in-test cleanup remain inside inclusive tests where no exclusive interval exists. These whole-second GitHub elapsed spans are not billed-invoice measurements. The table is copied verbatim from the retained exact-run phase report; prior tables above retain their own run identities.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Tests incl. Upload Other Teardown Total
checks-ui-e2e (6/7) success 0.97 0.00 0.00 0.32 0.00 0.00 0.00 0.05 12.67 0.03 0.03 0.05 14.12
checks-ui-e2e (3/7) success 0.82 0.00 0.00 0.32 0.00 0.00 0.00 0.05 11.37 0.00 0.03 0.08 12.67
checks-ui-e2e-real-gateway (1/2) success 0.97 0.00 0.00 0.28 0.00 0.00 1.85 0.03 8.08 0.05 0.03 0.05 11.35
checks-ui-e2e-real-gateway (2/2) success 0.18 0.00 0.00 0.23 0.00 0.00 1.73 0.03 8.87 0.03 0.03 0.07 11.18
checks-ui-e2e (1/7) success 0.72 0.00 0.00 0.28 0.00 0.00 0.00 0.03 9.48 0.02 0.03 0.07 10.63
checks-ui-e2e (2/7) success 1.23 0.00 0.00 0.33 0.00 0.00 0.00 0.05 8.65 0.00 0.05 0.08 10.40
checks-ui-e2e (4/7) success 0.68 0.00 0.00 0.28 0.00 0.00 0.00 0.03 8.48 0.00 0.03 0.07 9.58
build-artifacts success 0.17 0.00 0.00 0.28 0.00 0.00 3.10 0.05 4.33 0.02 0.03 0.07 8.05
checks-ui-e2e (5/7) success 0.67 0.00 0.00 0.30 0.00 0.00 0.00 0.05 6.60 0.00 0.05 0.08 7.75
checks-ui (3/3) success 1.22 0.03 0.00 0.35 0.00 0.00 0.00 0.03 4.23 0.00 0.05 0.08 6.00
checks-ui (2/3) success 1.23 0.02 0.00 0.37 0.00 0.00 0.00 0.05 4.02 0.00 0.05 0.07 5.80
checks-ui (1/3) success 0.73 0.02 0.00 0.35 0.00 0.00 0.00 0.05 4.33 0.00 0.23 0.07 5.78
control-ui-performance success 0.85 0.00 0.00 0.47 0.00 0.00 0.00 0.00 1.82 0.00 0.02 0.03 3.18
Completed total 10.43 0.07 0.00 4.17 0.00 0.00 6.68 0.52 92.93 0.15 0.68 0.87 116.50

@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 added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 26, 2026
@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-26T21:03:20.331738Z 5b95976 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Oct 26, 2026
@steipete
steipete marked this pull request as draft October 26, 2026 16:39
@steipete
steipete marked this pull request as ready for review October 26, 2026 16:39
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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 Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR lets real-Gateway CI reuse validated public UI build output while retaining private-QA runtime preparation.

Example: A private-QA job restores a public build seed with unchanged UI inputs.

  • Before: Backend-only plugin metadata changes the UI signature, so Vite rebuilds the same content.
  • After: The UI content is reused, build identity is refreshed, and private runtime preparation still runs.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The design is focused and supported by reported real-build parity, but warm CI savings remain unverified and an existing planning test demonstrably fails.
Proof confidence 🦐 gold shrimp (3/6) The maintainer-authored PR is outside the ordinary contributor proof gate; its body reports real public/private builds, output parity, and candidate Vite skipping, while protected-main warm reuse remains explicitly unmeasured.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Real-Gateway CI repeatedly rebuilds UI content that the existing public build seed already contains.
Reason: Maintainer-authored direction is established, and the patch removes repeated bundling through existing owners while preserving preparation, validation, and runner limits.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is a useful, maintainer-directed optimization with one confirmed, narrowly repairable CI failure.

Priority: P2
Reviewed head: 08d885dc0eb5ef951a4dce8a3e20aa1cbe8c3e96

Before merge

  • Update the existing real-Gateway setup expectation (P2) - Adding this input makes test/scripts/ci-workflow-planning.test.ts:11029 fail deterministically: realGatewaySetup.with is compared with expectedSharedUiE2eSetup using toEqual, and that expected object lacks build-all-cache-scope. Current-head CI job checks-node-compact-small-5-1 already reports precisely this extra-field mismatch. Extend the real-Gateway-specific expectation with build-all-cache-scope: full while retaining the other setup assertions.

Findings

  • [P2] Update the existing real-Gateway setup expectation — .github/workflows/ci.yml:2729
Agent review details

How this fits together

The CI setup action restores build seeds; the UI build wrapper validates input identities and output hashes before publishing artifacts consumed by real-Gateway browser tests.

flowchart TD
  A[Protected public build] --> B[Existing build cache]
  B --> C[Real Gateway CI setup]
  C --> D[Private QA runtime build]
  D --> E[UI input and output validation]
  E --> F[Reused or rebuilt UI]
  F --> G[Real Gateway browser tests]
Loading

Technical review

Best possible solution:

Retain the existing cache owners and update the real-Gateway planning expectation to include the newly enabled cache scope.

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

Current-head CI reproduces the introduced setup-field mismatch, and source inspection independently confirms the exact failing expectation.

Is this the best way to solve the issue?

Reusing the existing validated cache is appropriately scoped; the smallest remaining repair is to update the existing consumer test rather than add another cache or workflow path.

Full review comments:

  • [P2] Update the existing real-Gateway setup expectation — .github/workflows/ci.yml:2729
    Adding this input makes test/scripts/ci-workflow-planning.test.ts:11029 fail deterministically: realGatewaySetup.with is compared with expectedSharedUiE2eSetup using toEqual, and that expected object lacks build-all-cache-scope. Current-head CI job checks-node-compact-small-5-1 already reports precisely this extra-field mismatch. Extend the real-Gateway-specific expectation with build-all-cache-scope: full while retaining the other setup assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs test/scripts/ci-workflow-planning.test.ts test/scripts/ci-workflow-guards.test.ts
  • git diff --check

What I checked:

PR surface

Tests +64, Docs +6, Config +1, Other +30. Total +101 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 65 1 +64
Docs 1 6 0 +6
Config 2 2 1 +1
Generated 0 0 0 0
Other 1 33 3 +30
Total 6 106 5 +101

Labels

Label changes:

  • add P2: This is a bounded CI efficiency improvement with a confirmed planning-test failure and no demonstrated product outage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a bounded CI efficiency improvement with a confirmed planning-test failure and no demonstrated product outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • 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.

Reviewed October 26, 2026, 12:56 PM ET / 16:56 UTC.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 26, 2026
@steipete
steipete merged commit 7ce6621 into main Oct 26, 2026
151 of 155 checks passed
@steipete
steipete deleted the solid2/w-test-ci-ui-build-cache branch October 26, 2026 22:01
@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
* ci(ui): reuse public UI build content in real-Gateway jobs

* test(ci): expect shared cache in real-Gateway setup

* test(ui): await initial lazy automation readiness

* test(ui): retain native table modal failure facts

* test(ui): stabilize clipboard, lazy panel and attachment checks
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. docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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.

1 participant