Skip to content

improve: publish CI dependencies promptly and warm hosted JavaScript caches - #154156

Merged
steipete merged 6 commits into
mainfrom
codex/ci-warmer-routing-hillclimb
Sep 21, 2026
Merged

steipete merged 6 commits into
mainfrom
codex/ci-warmer-routing-hillclimb

Conversation

@steipete

@steipete steipete commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

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, base 7b1e6eb6656d95b006c59b574f71f60983476cd7: 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 c6e046beeb607dc45ffebabeb7027580eb77d928 uses 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.

@clawsweeper

clawsweeper Bot commented Sep 20, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 20, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 21, 2026, 12:19 AM ET / 04:19 UTC (Revision 4).

ClawSweeper review

What this changes

The 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
Reviewed head: c6e046beeb607dc45ffebabeb7027580eb77d928

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with relevant consumer-reuse evidence, useful workflow guards, and no blocking correctness finding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The recorded Darwin/arm64 producer-to-restored-consumer replay exercises the collector's actual fast-core, plugin, channel, and UI command paths and observes cache reuse. Collector and planner bytes remain unchanged; GitHub transfer costs and overall workflow savings remain outside that claim.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The recorded Darwin/arm64 producer-to-restored-consumer replay exercises the collector's actual fast-core, plugin, channel, and UI command paths and observes cache reuse. Collector and planner bytes remain unchanged; GitHub transfer costs and overall workflow savings remain outside that claim.
Evidence reviewed 8 items Introduced scope: Reviewed the pinned merge-base-to-head changes. The executable changes split the warmer jobs, add the hosted collector, and extend seed selection; the normal CI workflow changes only its Windows cache comment.
Still necessary on main: Fetched main still uses a workflow-wide lock and warms JavaScript only in the ordinary Linux row; its hybrid hosted row seeds dependencies only. The independent publishers and hosted collector are therefore not superseded.
Latest release comparison: The v2026.9.5 workflow likewise retains the combined job and workflow-wide lock; it does not contain this publisher split.
Findings None None.
Security None None.

How this fits together

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

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +112, Docs +32, Config +31, Other +117. Total +292 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 146 34 +112
Docs 4 42 10 +32
Config 2 54 23 +31
Generated 0 0 0 0
Other 2 130 13 +117
Total 10 372 80 +292

Review metrics

Metric Value Why it matters
Warmer admission 1 additional Blacksmith registration per eligible warmer cycle The independent dependency job adds bounded publisher capacity without changing normal CI matrix limits.
Hosted collection scope 12 representative files across 7 seed groups The hosted seed targets existing consumer entrypoints without repeating the full runtime build.
Executable versus test growth Tooling +117 net lines; workflows +31; tests +112 Executable growth is justified by preserving distinct consumer cache-directory ownership while separating publication.

Stored data model

Persistent data-model change detected: serialized state: scripts/ci-warm-hosted-vitest-caches.mts, unknown-data-model-change: scripts/ci-warm-hosted-vitest-caches.mts. Confirm migration or upgrade compatibility proof before merge.

Technical review

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

Labels

Label justifications:

  • P2: This repairs CI cache availability and publication latency with limited operational impact and no product behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The recorded Darwin/arm64 producer-to-restored-consumer replay exercises the collector's actual fast-core, plugin, channel, and UI command paths and observes cache reuse. Collector and planner bytes remain unchanged; GitHub transfer costs and overall workflow savings remain outside that claim.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded Darwin/arm64 producer-to-restored-consumer replay exercises the collector's actual fast-core, plugin, channel, and UI command paths and observes cache reuse. Collector and planner bytes remain unchanged; GitHub transfer costs and overall workflow savings remain outside that claim.

Evidence

What I checked:

  • Introduced scope: Reviewed the pinned merge-base-to-head changes. The executable changes split the warmer jobs, add the hosted collector, and extend seed selection; the normal CI workflow changes only its Windows cache comment. (.github/workflows/vitest-cache-warm.yml:19, c6e046beeb60)
  • Still necessary on main: Fetched main still uses a workflow-wide lock and warms JavaScript only in the ordinary Linux row; its hybrid hosted row seeds dependencies only. The independent publishers and hosted collector are therefore not superseded. (.github/workflows/vitest-cache-warm.yml:15, 543bece682ad)
  • Latest release comparison: The v2026.9.5 workflow likewise retains the combined job and workflow-wide lock; it does not contain this publisher split. (.github/workflows/vitest-cache-warm.yml:15, ec9c1a13db89)
  • Publication and compatibility boundaries: Both jobs require the canonical repository and main ref. Save steps retain validated setup outputs and pinned cache actions. Existing archive paths, keys, generation validation, and frozen dependency reconciliation remain owned by the unchanged setup action. This changes publication scheduling, not a persisted data format or user-state migration. (.github/actions/setup-node-env/action.yml:257, c6e046beeb60)
  • Real consumer reuse evidence: The captured PR body reports a Darwin/arm64 Node 26.8.2 producer-to-restored-consumer replay through actual plugin, channel, fast-core, and UI entrypoints: respectively 1,512/3, 2,063/12, 1,440/917, and 2,322/0 cache reads/misses. Producer wall was 98.39 seconds. The collector and planner are unchanged from the cited runtime revision. This supports reuse, not GitHub transfer costs or whole-CI savings. (scripts/ci-warm-hosted-vitest-caches.mts:37, c6e046beeb60)
  • Re-review continuity: The previous completed review had no findings and requested generic migration proof. No schema or archive-format change supports retaining that blocker. The latest commit replaces an expression-selected command with literal quoted shell branches and adds checks for both routes and nonzero exit propagation; its body records the repaired unused-file scan and five passing guards. (.github/workflows/vitest-cache-warm.yml:225, c6e046beeb60)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-20T23:27:02.058Z sha 6ed8bcf :: blocked before merge. :: none
  • reviewed 2026-09-20T23:53:13.493Z sha 6ed8bcf :: needs changes before merge. :: none
  • reviewed 2026-09-21T03:38:15.977Z sha 713e758 :: blocked before merge. :: none

@steipete
steipete marked this pull request as ready for review September 20, 2026 23:47
@steipete
steipete force-pushed the codex/ci-warmer-routing-hillclimb branch from 6ed8bcf to 713e758 Compare September 21, 2026 03:26
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 21, 2026
@steipete
steipete merged commit 62f5950 into main Sep 21, 2026
180 checks passed
@steipete
steipete deleted the codex/ci-warmer-routing-hillclimb branch September 21, 2026 04:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to jb510/openclaw that referenced this pull request Sep 21, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* 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)
  ...
vincentkoc added a commit to vyctorbrzezowski/openclaw that referenced this pull request Sep 21, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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