Repository navigation
fix(test): stage node-runtime-env.mjs with the worker runtime assets - #182464
Merged
Merged
Conversation
#182306 made cli-invocation.mjs import ./node-runtime-env.mjs, but the Vitest worker run directory only copies the listed package-root runtime assets, so every test that spawns the CLI from a worker failed with ERR_MODULE_NOT_FOUND (PostgreSQL conformance shard 3 on every PR). Add the module and a closure test that every listed asset's relative imports are listed too.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 25, 2026
…penclaw#182464) openclaw#182306 made cli-invocation.mjs import ./node-runtime-env.mjs, but Vitest workers stage only the listed package-root runtime assets, so tests that spawn the CLI from a worker failed with ERR_MODULE_NOT_FOUND (PostgreSQL conformance shard 3 on every PR). Adds the module and a closure test that every listed asset's relative imports are listed too.
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
mainis red. Every PR currently failsPostgreSQL conformance (3/3)insrc/gateway/server-database-engine.postgres.test.ts› "reports invalid config with exit 78 through gateway run on PostgreSQL and SQLite". The cause isERR_MODULE_NOT_FOUND:.artifacts/vitest-workers/run-*/node-runtime-env.mjsis imported fromcli-invocation.mjsbut was never copied. Seen on #182446 and #182444, which change unrelated code.Why This Change Was Made
#182306 (
7a9a6a98) madecli-invocation.mjsimport./node-runtime-env.mjs. Vitest workers stage only the package-root modules listed invitestWorkerRuntimeAssets, andnode-runtime-env.mjswas missing from that list. This adds it, plus a closure test: every relative import of a listed asset must itself be listed, so the next new sibling import fails fast with its name instead of breaking a shard later.User Impact
None; test infrastructure only.
Evidence
test/scripts/vitest-worker-runtime-assets.test.tsfails without the fix (cli-invocation.mjs -> node-runtime-env.mjs) and passes with it.node-runtime-env.mjshas no further local imports.