Repository navigation
improve: publish CI dependencies promptly and warm hosted JavaScript caches - #154156
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: blocked before merge. Reviewed September 21, 2026, 12:19 AM ET / 04:19 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR separates CI dependency publication from longer builds and adds bounded hosted JavaScript cache warming through existing test commands. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: the cache-publisher gap remains on current main, and this PR provides a focused repair with meaningful reuse evidence. No blocking introduced defect was found; the previous generic migration requirement is not supported by this diff. Priority: P2 Review scores
Verification
How this fits togetherCI cache warming prepares reusable dependencies and compiled JavaScript from trusted main-branch source. Later build and test jobs restore those archives to reduce repeated setup and compilation. flowchart TD
A[Main push or scheduled dispatch] --> B[Repository and branch checks]
B --> C[Independent dependency publisher]
B --> D[Code warming by backend]
D --> E[Full Linux or bounded hosted collection]
C --> F[Backend-local cache archives]
E --> F
F --> G[Build and test consumers]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +112, Docs +32, Config +31, Other +117. Total +292 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep publication with the existing cache owners, preserve consumer validation, and assess net CI savings from subsequent native workflow measurements. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main's hybrid hosted row disables JavaScript warming, while hosted consumers restore those caches; its workflow-wide lock also delays subsequent dependency publishers. This review did not execute that path. Is this the best way to solve the issue? Yes. Splitting publication within the existing workflow and invoking actual consumer commands preserves cache ownership and avoids a parallel cache implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 543bece682ad. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
6ed8bcf to
713e758
Compare
|
Merged via squash.
|
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (49 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119) docs: reserve Team live updates for Night Watch (openclaw#154425) test(meeting-bot): control browser retry fixture clocks (openclaw#149174) fix(ui): use remote defaults for manual worktree creation (openclaw#154364) fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013) fix(pr): revalidate head reads and reuse repository locators (openclaw#154212) fix(browser): start control when the Gateway has activated the plugin (openclaw#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156) improve: speed up streaming text with inline brackets (openclaw#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636) ci: use four Windows workers on the 16 class (openclaw#154261) feat: verify GitHub credit from trusted OIDC claims (openclaw#153940) feat(sessions): support explicit local placement for child sessions (openclaw#153912) fix(ui): prevent stale copies after text changes (openclaw#154259) perf(gateway): reuse session list candidates across viewers (openclaw#154003) perf(codex): bound progressive local catalog waits (openclaw#154362) docs: keep update requests owned through acceptance (openclaw#154111) perf(state): reduce main-thread coordinator waits (openclaw#154244) ...
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (#154119) docs: reserve Team live updates for Night Watch (#154425) test(meeting-bot): control browser retry fixture clocks (#149174) fix(ui): use remote defaults for manual worktree creation (#154364) fix(proxy): keep WebChat and Codex loopback calls direct (#154013) fix(pr): revalidate head reads and reuse repository locators (#154212) fix(browser): start control when the Gateway has activated the plugin (#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156) improve: speed up streaming text with inline brackets (#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636) ci: use four Windows workers on the 16 class (#154261) feat: verify GitHub credit from trusted OIDC claims (#153940) feat(sessions): support explicit local placement for child sessions (#153912) fix(ui): prevent stale copies after text changes (#154259) perf(gateway): reuse session list candidates across viewers (#154003) perf(codex): bound progressive local catalog waits (#154362) docs: keep update requests owned through acceptance (#154111) perf(state): reduce main-thread coordinator waits (#154244) ...
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (#154119) docs: reserve Team live updates for Night Watch (#154425) test(meeting-bot): control browser retry fixture clocks (#149174) fix(ui): use remote defaults for manual worktree creation (#154364) fix(proxy): keep WebChat and Codex loopback calls direct (#154013) fix(pr): revalidate head reads and reuse repository locators (#154212) fix(browser): start control when the Gateway has activated the plugin (#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156) improve: speed up streaming text with inline brackets (#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636) ci: use four Windows workers on the 16 class (#154261) feat: verify GitHub credit from trusted OIDC claims (#153940) feat(sessions): support explicit local placement for child sessions (#153912) fix(ui): prevent stale copies after text changes (#154259) perf(gateway): reuse session list candidates across viewers (#154003) perf(codex): bound progressive local catalog waits (#154362) docs: keep update requests owned through acceptance (#154111) perf(state): reduce main-thread coordinator waits (#154244) ...
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (44 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119) docs: reserve Team live updates for Night Watch (openclaw#154425) test(meeting-bot): control browser retry fixture clocks (openclaw#149174) fix(ui): use remote defaults for manual worktree creation (openclaw#154364) fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013) fix(pr): revalidate head reads and reuse repository locators (openclaw#154212) fix(browser): start control when the Gateway has activated the plugin (openclaw#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156) improve: speed up streaming text with inline brackets (openclaw#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636) ci: use four Windows workers on the 16 class (openclaw#154261) feat: verify GitHub credit from trusted OIDC claims (openclaw#153940) feat(sessions): support explicit local placement for child sessions (openclaw#153912) fix(ui): prevent stale copies after text changes (openclaw#154259) perf(gateway): reuse session list candidates across viewers (openclaw#154003) perf(codex): bound progressive local catalog waits (openclaw#154362) docs: keep update requests owned through acceptance (openclaw#154111) perf(state): reduce main-thread coordinator waits (openclaw#154244) ...
…caches (openclaw#154156) * ci: publish dependencies independently and warm hosted caches * ci: warm hosted transforms through their consumer entrypoints * test(ci): guard compiled worker ownership after warmer split * docs(ci): record rejected Windows store cache experiment * docs(ci): describe Vitest-owned bytecode coverage safeguards * ci: expose cache warmer entrypoints to dependency checks
Related: #154108
What Problem This Solves
Dependency publication waits behind long build/test warming, and hybrid hosted jobs request JavaScript caches that only the Blacksmith backend refreshes.
User Impact
No product behavior changes. Dependency seeds can publish independently, and hosted consumers receive a bounded seed produced through their actual command entrypoints.
Why This Change Was Made
Split dependency publication from code warming with independent non-canceling backend/platform locks. Docs-only main pushes skip warming; scheduled/manual runs remain. Preserve the compiled-worker publisher in full Linux code warming before SDK preparation; dependency publication performs no compilation.
The hosted seed collects twelve representative files through the actual fast-core, plugin, channel and UI entrypoints, preserving their existing cache-directory ownership. It also publishes the native SDK boundary seed without duplicating a full hosted runtime build. One extra Blacksmith dependency job is admitted per eligible warmer cycle; normal CI concurrency and coverage remain unchanged.
Windows keeps its current install path. Its measured store-cache experiment was slower, and its misleading cross-job-cache comment is corrected. The bytecode documentation now reflects Vitest 5's worker-level V8/custom-coverage safeguard.
Evidence
Final head
713e758c3208d0a4440ca4b5c5b1c5a576dab347, base7b1e6eb6656d95b006c59b574f71f60983476cd7: fourteen cache-generation/compiler-forwarding/planner guards passed in 17.73 seconds; workflow, format and whitespace checks passed; fresh whole-diff P0–P2 review is clean.Fresh producer-to-restored-consumer replay passed: plugin 1,512 cache reads / 3 misses; channels 2,063 / 12; actual fast-core 1,440 / 917; UI 2,322 / 0. Producer wall 98.39 seconds; payload 145,644,621 transform bytes and 31,094,119 Node bytecode bytes. This was a local Darwin/arm64, Node 26.8.2 replay tied to runtime source
424b0791e0f2; recorded runtime input hashes remain unchanged in the final documentation-only commit. It proves reuse, excluding GitHub transfer costs or production-wide savings.Integration preserves ci: reuse verified test workers across jobs #154095's worker publisher, fix: reuse warmed JavaScript bytecode in CI build jobs #154113's shared bytecode seed, fix(ci): restore Vitest cache reuse #154121's cache-generation fixes, and current Gateway/matrix policies. Earlier complete changed-gate proof was Actions 35542396081; final exact-head CI remains required.
Rejected Windows experiment 35547255790: all seven native jobs passed, but the reducer failed its exact-RAM comparison by 24 KiB. Assertions were not relaxed or rerun. Unchanged receipts show complete setup medians of 45.295 seconds cold versus 52.738 seconds warm, despite reuse of all 1,453 packages with zero downloads. Restoring the approximately 764-MiB archive cost 25.978 seconds. Including the producer, three warm consumers cost 220.123 seconds versus 136.620 seconds for three cold setups. The exactly RAM-matched cold subset was also faster; that descriptive comparison does not replace the failed qualification. No Windows shared cache is enabled.
CI 35557531374 exposed a caller-discovery gap: Knip could not see the new collector inside a workflow-expression ternary. Follow-up
c6e046beeb607dc45ffebabeb7027580eb77d928uses literal shell branches with the matrix value passed through quoted environment data. The exact unused-file scan reproduced one missing entry before and passes with zero afterward. Five guards pass in 5.37 seconds, including both command routes and nonzero exit propagation; workflow/lint/format checks and fresh P0–P2 review pass. Collector bytes and Knip configuration are unchanged. Fresh CI is required for this repaired head.Repaired-head CI 35559389106 succeeded for
c6e046beeb607dc45ffebabeb7027580eb77d928: all 128 jobs completed without failures, including full dependency analysis.