Repository navigation
improve(ci): warm import-heavy Vitest graphs - #110557
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3c6fdd2c02
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // bound graphs that remained cold in measured protected-cache readers. | ||
| const additionalShardNames = new Set([ | ||
| "agentic-agents-embedded", | ||
| "agentic-gateway-methods", |
There was a problem hiding this comment.
Preserve the gateway-methods worker pin
When this warmer adds agentic-gateway-methods, it loads the base shard descriptors and later exports only configs, so the compact CI metadata that pins this group to OPENCLAW_VITEST_MAX_WORKERS=2 is lost (scripts/lib/ci-node-test-plan.mjs documents agentic-gateway-(?:core|methods) as flaking at higher worker counts). The warmer has no separate resource step, and Vitest's shared CI default is 3 workers, so scheduled/protected cache warming can now run the gateway-methods suite in the exact unpinned mode the main CI plan avoids; carry the compact group env through or set the worker pin for this seed.
Useful? React with 👍 / 👎.
3c6fdd2 to
7353674
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 4:14 AM ET / 08:14 UTC. Summary PR surface: Tests +22, Config +19, Other +42. Total +83 across 5 files. Reproducibility: yes. from source: compare the selected warmer descriptors with the shard-plan worker metadata for Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the shard-level worker constraint when warming Do we have a high-confidence way to reproduce the issue? Yes, from source: compare the selected warmer descriptors with the shard-plan worker metadata for Is this the best way to solve the issue? No. Expanding the seed is reasonable, but the current path discards the selected shard's execution constraint; preserving that constraint is the narrower maintainable fix. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 34440523cd03. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +22, Config +19, Other +42. Total +83 across 5 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
Merged via squash.
|
|
Post-merge production measurement The broad seed saved by warmer run 29637315250 restored successfully in two subsequent full
Every measured job restored the same broad Vitest seed ( |
* perf(ci): broaden Vitest transform cache seed * fix(ci): declare cache slot clone helper
* perf(ci): broaden Vitest transform cache seed * fix(ci): declare cache slot clone helper
What Problem This Solves
Resolves a CI performance problem where the protected Vitest transform archive restored successfully but omitted several import-heavy graphs. Those groups still paid cold transform/import work on every run, masking the cache rollout's broader benefit.
Why This Change Was Made
The trusted warmer now includes the whole configs that own
agentic-gateway-methods,agentic-agents-embedded, andauto-reply-reply-commands-3, while preserving the existing unit-fast seed and fail-fast plan checks. The shard runner also clones a restored seed into each isolated cache lane before concurrent workers start, preserving the no-shared-writer invariant if plan concurrency is used again. Shard planning andci.ymlremain unchanged.User Impact
No product behavior changes. CI should reuse transforms across more representative Node test groups without introducing concurrent Vitest cache writers.
Evidence
Measured protected-cache reader
29635747197, job88057839992, still showed cold work in the newly seeded groups:agentic-gateway-methodsagentic-agents-embeddedauto-reply-reply-commands-3Local proof:
node scripts/run-vitest.mjs test/scripts/ci-run-node-test-shard.test.ts test/scripts/ci-workflow-guards.test.ts— 96 passed, 1 skippedgit diff --check— cleanPost-merge proof will dispatch the protected warmer, record archive size/wall time, then compare these exact groups on subsequent main readers and check for
ENOTEMPTY, restore, or save errors.