Repository navigation
fix(ci): isolate Vitest cache warmer configs - #119381
Conversation
Punchcard-Session: amber-orchard-valley-s4
7015fa0 to
5fd543c
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 9:09 PM ET / August 5, 2026, 01:09 UTC. ClawSweeper reviewWhat this changesThe PR changes the scheduled Vitest cache warmer to create one serial test group per selected configuration while retaining its shared transform-cache slot. Merge readinessKeep open for normal maintainer review. Current main still sends all selected cache-warm configurations as one runner plan, whereas the PR uses the runner’s existing grouped-plan contract to launch one serial child per configuration; no concrete patch defect was found. Priority: P3 Review scores
Verification
How this fits togetherThe scheduled cache-warmer workflow selects broad Vitest configurations and passes a plan to the Node shard runner. The runner launches child test processes and assigns their cache directories, affecting the reliability and reuse of CI’s protected test cache. flowchart LR
A[Scheduled cache warmer] --> B[Select test configurations]
B --> C[Build one group per configuration]
C --> D[Node shard runner]
D --> E[Fresh serial Vitest child]
E --> F[Shared transform-cache slot]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +96, Docs 0, Config +3. Total +99 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the existing grouped-plan interface at the cache-warmer workflow boundary so each configuration receives a fresh serial child while cache reuse remains confined to the established persistent slot. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main aggregates the selected configurations into one runner group, while the runner executes each group as one child; the scheduled failure itself was not rerun locally. Is this the best way to solve the issue? Yes. The workflow is the plan producer and the existing grouped-plan runner already supplies the required process-isolation behavior, avoiding retries or a parallel cache path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 618fba92bf01. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…time * origin/main: fix(ui): clear split-pane questions after answers and cancellations (#118787) fix(slack): authorize reaction and message reads before applying limits (#118736) fix(ci): isolate cache warmer configs (#119381) fix(slack): Fix bad escaping in slack tool commentary (#119373) feat(audit): add execution identity inspection (#117034) fix(fs): adopt fs-safe 0.5.2 untrusted filename sanitization (#119363) fix(ci): preserve release evidence across reruns (#119380) fix(telegram): keep commands responsive during Codex login perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339)
Punchcard-Session: amber-orchard-valley-s4
Related: https://github.com/openclaw/openclaw/actions/runs/30895638140
What Problem This Solves
Fixes the scheduled Vitest Cache Warm workflow failing after earlier configs passed because all selected configs ran inside one long-lived shard child. Config-global state and worker processes accumulated across nine configs until the final config exited unexpectedly.
Why This Change Was Made
The cache warmer now emits one named shard group per Vitest config and runs those groups with concurrency one. Each config gets a fresh child process, while the existing shard runner deliberately reuses the same serial persistent cache leaf so transforms from earlier configs remain warm.
The old aggregate
OPENCLAW_NODE_TEST_CONFIGS_JSONpath and misleading shared shard label are removed from this workflow. Normal pull-request, push, release, and shard aggregation behavior is unchanged.Root cause: the scheduled workflow owned process isolation but encoded all configs as one child invocation.
Architectural owner:
.github/workflows/vitest-cache-warm.yml, using the existing grouped-plan contract inscripts/ci-run-node-test-shard.mjs.Canonical fix: isolate at the workflow's plan producer, not with retries, larger timeouts, weaker assertions, or a second cache path.
Production LOC: runtime production code
+0/-0; workflow+5/-2; docs+1/-1; tests+92/-0.User Impact
No product runtime behavior changes. Maintainers get a bounded daily cache warm run: one fresh child per config, one active config at a time, and one shared serial cache slot.
Evidence
node scripts/run-vitest.mjs test/scripts/ci-run-node-test-shard.test.ts test/scripts/ci-workflow-guards.test.tsgit diff --check origin/main...HEADorigin/mainis conflict-free; touched paths were unchanged by branch drift.AI-assisted: yes. The maintainer reviewed the implementation and validation evidence.
Punchcard-Session: amber-orchard-valley-s4