Repository navigation
fix(release): 2026.9.7 validation fixes (state read worker graph, test fixtures) - #160975
Merged
Merged
Conversation
3b50430 gave the E2E global setup suite a beforeEach/afterEach pair that clears inherited prebuilt-runtime flags. process-fixture-cleanup imports that suite through a hand-built vitest mock that only provided describe/it/expect/vi, so collection failed with 'No "beforeEach" export is defined on the "vitest" mock' (hourly 36513735118, 3 cases). The collector now records the suite's beforeEach/afterEach hooks and runs them around the captured body, so each fault-injected fixture sees the same environment as the real suite. Proof: the three cases fail on main with the original error and pass with this change; process-fixture-cleanup + vitest-e2e-global-setup 12/12. (cherry picked from commit 66b9c5b)
CI runners switched to an image without ripgrep, so the parked-canonical wrapper test failed at scripts/pr's required-command check (Missing required command(s): rg) before reaching the trust routing it covers. Stub rg and pnpm in the fixture bin like the other wrapper fixtures. (cherry picked from commit 129a640)
…gth cannot skip compaction The pre-prompt compaction steering test used the session's default system prompt, which embeds absolute checkout paths. In a 4k context window, short checkout paths (e.g. ~/oc on a Linux box) leave a small positive headroom that rejects compaction preparation, so the only provider request was foreground inference and requests[0].compacting was false. Longer paths (macOS, GitHub runners) made headroom negative and fell back to the retained-history budget, so the test passed there. Pin a short base system prompt so the test exercises compaction regardless of where the checkout lives. (cherry picked from commit 05ecebf)
Move reconciliation inspection and candidate selection into a read-only module shared by the state reader and reconciliation writer. The standalone reader disables code splitting, so its former write-side import also bundled dynamic failure-fact/Doctor imports and the Gateway runtime. At release tip 56fb887, the built worker was 52,186,708 bytes with 9,768 esbuild inputs. After this split it is 3,491,598 bytes with 1,025 inputs, measured with packages external for both input graphs. Keep the read queries, eligibility checks, and transactional reconciliation bodies unchanged. The full build and 95 focused tests pass. (cherry picked from commit 7c4cae3)
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes: the 2026.9.7 candidate fails Full Release Validation 36518668565 because
dist/state/openclaw-state-read.worker.jsgrew from 3.0 MB (2026.9.6) to 52.2 MB and exceeds the 6 MiB package-byte cap, and because three test fixtures fail on the new CI runner image or on short checkout paths.User Impact
The state read worker no longer inlines the Gateway, flows, and wizard graph, which removes the +300-400 MB Gateway RSS regression Kova flagged and restores the npm package byte limits. No behavior change: the read-only reconciliation functions move unchanged into their own module.
Why This Change Was Made
Release-branch-first batch for 2026.9.7 (one new Release SHA, one fresh FRV):
fix(state): keep the state read worker out of the update write graph (fromfix/r97-state-read-worker-graph7c4cae3; root cause fix: keep update history responsive during reconciliation #160592 importedupdate-run-reconciliation.workerinto the standalonecodeSplitting:falseread-worker entry). Built worker 52,186,708 -> 3,491,598 bytes, 9,768 -> 1,025 inputs.cherry-pick -x 66b9c5b0: process-fixture-cleanup test registers vitest suite hooks (checks-node-core-tooling-16).cherry-pick -x 129a6403: stubrg/pnpmin the canonical-wrapper trust tests (runner image without ripgrep).Evidence
rgon PATH the trust test failed withMissing required command(s): rg; with the stub it passes. Autoreview clean.