Skip to content

fix(ci): preserve cache warmer shard envelopes - #119403

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-cache-warmer-shard-envelopes
Aug 5, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-cache-warmer-shard-envelopes

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #119381.

Punchcard-Session: amber-orchard-valley-s4

What Problem This Solves

Fixes an issue where the scheduled Vitest cache warmer expanded filtered CI shards into whole configs, causing the final auto-reply worker to exit unexpectedly even after each config moved to a fresh child process.

Why This Change Was Made

The warmer now preserves each selected planner shard's include patterns, environment, and identity while still launching one config per serial child. This keeps the existing shared cache leaf and avoids retries, timeout increases, worker changes, or runner changes.

User Impact

Maintainers get a bounded cache-warm run that follows the same shard envelopes as normal CI instead of re-expanding filtered suites.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Aug 5, 2026
@vincentkoc vincentkoc self-assigned this Aug 5, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 5, 2026 01:54
Punchcard-Session: amber-orchard-valley-s4
@vincentkoc
vincentkoc force-pushed the fix/ci-cache-warmer-shard-envelopes branch from a7d22c2 to 31dec02 Compare August 5, 2026 02:03
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 10:09 PM ET / August 5, 2026, 02:09 UTC.

ClawSweeper review

What this changes

This PR preserves each selected cache-warmer shard’s include patterns, environment, and identity while serially running its test configurations.

Regression provenance

Possible regression — probable (failure trace; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding: this distinct follow-up restores planner filters and environment at the cache-warmer plan producer, while the generic runner already applies them. It remains open for ordinary exact-head CI review because it is maintainer-authored and maintainer-labeled.

Priority: P3
Reviewed head: 31dec02b882b2f1ca681733785ceae2e6ec23dd8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, contract-aligned CI repair with direct workflow-boundary coverage and no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body also supplies prior failure context and focused validation evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body also supplies prior failure context and focused validation evidence.
Evidence reviewed 5 items Current-main defect: Current main deduplicates selected shard configs and emits only config and label fields, discarding each planner shard's environment and include patterns.
Existing runner contract: The runner already forwards group environment values and writes include-pattern files for child test runs, so the missing metadata belongs at the workflow plan producer.
Planner contract: The planner defines striped unit-fast shards with include patterns, whole isolated shards, and embedded-agent groups with a timeout environment; its public descriptor carries both fields forward.
Findings None None.
Security None None.

How this fits together

The scheduled Vitest cache warmer converts selected CI planner shards into serial child groups that populate protected transform caches. Those groups feed the shard runner, which applies each group’s environment and optional test-file filter before launching Vitest.

flowchart LR
  A[Scheduled cache warmer] --> B[CI shard planner]
  B --> C[Selected shard envelopes]
  C --> D[Serial child groups]
  D --> E[Shard runner]
  E --> F[Filtered Vitest runs]
  F --> G[Protected cache seed]
Loading

Before merge

  • Resolve merge risk (P1) - The focused boundary test proves emitted envelopes, but an after-fix scheduled cache-warmer run has not yet been observed end-to-end.
  • Complete next step (P2) - No repair lane is needed: source inspection finds the patch correct, and this maintainer-labeled MEMBER PR should proceed through normal exact-head CI and maintainer merge review.
Agent review details

Security

None.

PR surface

Tests +68, Docs 0, Config +3. Total +71 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 72 4 +68
Docs 1 1 1 0
Config 1 10 7 +3
Generated 0 0 0 0
Other 0 0 0 0
Total 3 83 12 +71

Review metrics

Metric Value Why it matters
Change composition runtime +0/-0; workflow/docs +11/-8; tests +72/-4 The production change is limited to the CI plan producer, with most added coverage in an executed workflow-boundary test.
Cache-warmer envelopes 10 child groups for 9 distinct config paths The deliberate duplicate unit-fast config path preserves two distinct planner filters instead of widening either run.

Stored data model

Persistent data-model change detected: persistent cache schema: .github/workflows/vitest-cache-warm.yml. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #119403
Summary: This PR is the canonical remaining repair for metadata loss introduced by the preceding cache-warmer isolation work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Merge with scheduled-run confirmation (recommended)
    After exact-head checks pass, merge the focused repair and inspect the next scheduled or dispatched cache-warmer log to confirm filtered envelopes complete.

Technical review

Best possible solution:

Merge the producer-boundary repair after exact-head checks complete, then confirm the next scheduled or dispatched warmer runs the preserved filtered envelopes successfully.

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

Yes—source-reproducible: current main visibly drops planner metadata before the runner, and the branch's workflow-boundary test reconstructs the affected group output from the real planner.

Is this the best way to solve the issue?

Yes. The workflow is the producer that loses the fields; preserving its existing shard envelopes is narrower and safer than changing the generic runner or widening the filtered suites.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6a8e11e63cee.

Labels

Label changes:

  • add P3: This is bounded CI maintenance with no product-runtime behavior change.
  • add merge-risk: 🚨 automation: The patch changes how the scheduled cache-warm workflow serializes planner metadata into test execution groups.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body also supplies prior failure context and focused validation evidence.

Label justifications:

  • P3: This is bounded CI maintenance with no product-runtime behavior change.
  • merge-risk: 🚨 automation: The patch changes how the scheduled cache-warm workflow serializes planner metadata into test execution groups.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER PR; the body also supplies prior failure context and focused validation evidence.

Evidence

What I checked:

  • Current-main defect: Current main deduplicates selected shard configs and emits only config and label fields, discarding each planner shard's environment and include patterns. (.github/workflows/vitest-cache-warm.yml:75, 8f2850d83e90)
  • Existing runner contract: The runner already forwards group environment values and writes include-pattern files for child test runs, so the missing metadata belongs at the workflow plan producer. (scripts/ci-run-node-test-shard.mjs:98, 6a8e11e63cee)
  • Planner contract: The planner defines striped unit-fast shards with include patterns, whole isolated shards, and embedded-agent groups with a timeout environment; its public descriptor carries both fields forward. (scripts/lib/ci-node-test-plan.mjs:1282, 6a8e11e63cee)
  • Patch and boundary proof: The branch emits one group per shard/config pair with the preserved fields; its guard test executes the workflow seed script and verifies the exact planner-derived groups, duplicate striped config handling, environments, and filters. (test/scripts/ci-workflow-guards.test.ts:3010, 31dec02b882b)
  • History and release check: The merged predecessor introduced serial per-config cache warming on current main; no release tag contains that commit, so this CI sequence is current-main-only and unreleased. (.github/workflows/vitest-cache-warm.yml:75, 8f2850d83e90)

Likely related people:

  • vincentkoc: Authored the merged cache-warmer isolation change and this direct follow-up on the same workflow boundary. (role: recent cache-warmer contributor; confidence: high; commits: 8f2850d83e90, 31dec02b882b; files: .github/workflows/vitest-cache-warm.yml, test/scripts/ci-workflow-guards.test.ts)
  • Peter Steinberger: Recent history for the same workflow includes the cache-warming and import-heavy shard design work. (role: earlier CI cache-warming contributor; confidence: medium; commits: 2ba272bda686, b78cf56349ad; files: .github/workflows/vitest-cache-warm.yml, scripts/lib/ci-node-test-plan.mjs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Inspect a redacted successful scheduled or dispatched cache-warmer log after merge.

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.

@vincentkoc
vincentkoc merged commit 392e1c0 into main Aug 5, 2026
111 of 114 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-cache-warmer-shard-envelopes branch August 5, 2026 02:20
vincentkoc added a commit that referenced this pull request Aug 5, 2026
* origin/main: (22 commits)
  refactor(plugins): consolidate lifecycle hook dispatch (#119429)
  fix(ci): stabilize TUI PTY proof ownership (#119420)
  test(system-agent): reduce suite setup overhead (#119424)
  fix(ui): keep session rail pill status from overlapping the headline (#119397)
  fix(discord): avoid doctor runtime loading (#119391)
  fix(media): decouple playback cache retention (#119417)
  fix(slack): infer upload filename extensions from MIME types (#119399)
  refactor(channels): unify configured binding resolution (#119414)
  refactor(google-meet): unify gateway and tool dispatch (#119413)
  test(state): reuse legacy database fixtures (#119423)
  fix(reset): preserve bootstrap guidance for dynamic models (#119179)
  fix(chutes): honor serving context limits (#119196)
  refactor(status): consolidate scan projections and lazy loaders (#119412)
  fix(status): status --all slows down with missing plugins (#119203)
  refactor(gateway): consolidate usage reporting and caches (#119409)
  perf(gateway): keep reload and recovery machinery off gateway cold start (#119094)
  fix(cli): align TaskFlow controller columns for wide text (#118801)
  fix: make startup migration restart guidance install-neutral (#119406)
  fix(ci): preserve cache warmer shard envelopes (#119403)
  fix(sessions): preserve compatible auth profiles on model changes (#117550)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
Punchcard-Session: amber-orchard-valley-s4
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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