Repository navigation
fix(test): prevent shared build races across parallel projects - #131297
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 28, 2026 00:10
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
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.
Related: #120624 (the earlier parallel-E2E artifact race) and #125924 (QA lifecycle regression coverage).
What Problem This Solves
Resolves a problem where developers running QA lifecycle tests alongside other test projects could see unrelated model-resolution tests fail with missing generated modules, even after a successful build. A full-suite retest reproduced five failures among the nine existing model-resolution cases while the QA fixture rebuilt the shared output tree.
Why This Change Was Made
The selected test run now owns preparation before admitting any workers: one shared classifier supplies local and CI prerequisite modes, private QA satisfies ordinary runtime requirements, and the lifecycle fixture consumes the existing built Gateway instead of launching a development rebuild. Explicit mixed E2E selections reuse the same E2E preparation owner before all readers, while standalone E2E setup, existing prebuilt/skip contracts, cleanup, progress and deadlines remain intact.
This removes the fixture's custom development command and build-forcing fields, duplicate prerequisite metadata, and a test-only export. It does not change model/provider behavior, add configuration, alter hosted CI capacity, or attempt to coordinate arbitrary independent commands sharing a checkout. Product runtime LOC is unchanged; tooling is net +76 lines to supply the missing combined admission boundary, and tests/test-support are net +239.
User Impact
No end-user behavior changes. Maintainers can run selected QA, model and E2E projects together without those projects deleting artifacts beneath already-running readers. A failed preparation admits no test workers, and selections without runtime prerequisites do not build.
Evidence
AI-assisted with Codex; independently reviewed. All proof used an isolated exact-dependency checkout based on
79dfa81664fd64a3f6192331af4953ff9f9bf1efand task-owned state/ports.Runtime attestation: test controllers and observed Vitest readers used Node 24.20.0. Build/lint commands that launched bare
nodethrough the host PATH were not uniformly version-attested and may have used supported Node 26; this is not a claim that every subprocess used Node 24.Publication refresh: rebased once onto
2d2c8a9fb53e5720f69a58af4fa806852cad0a13, producingc9c1c33226c702d2eba9a7675ef963fee535195e; all 13 patch files remained byte-identical. The refreshed managed-command owner installs signal handlers before spawn, so its current 31 tests were added to the focused run: all 428 tests passed. The real rebuilt mixed run also passed 22/22 again, with overlapping readers, immutable exact-head artifacts, normal QA exit and no survivors. The full changed gate against the refreshed base passed all 23 checks (exit 0).Named follow-ups from extra targeted lint: pre-existing cleanup throws inside
finallyintest/scripts/vitest-e2e-global-setup.test.ts, and a pre-existing comparator-free sort intest/scripts/ci-node-test-plan.test.ts. Both are unchanged from the base and outside the required changed-gate lint lanes; this repair does not suppress them or broaden into unrelated cleanup.Reproducible native commands (Node 24):
Provenance: the lifecycle development-command/build-forcing path was introduced in #125924 (
88edcd165480, 2026-08-19; code author, PR author and merger @steipete). The related E2E ownership fix #120628 (40385bb5c153, 2026-08-08; code author, PR author and merger @steipete) prepared only its own config; this closes the mixed-project boundary. Its stream/signal repair #120653 (a9012617543c, 2026-08-08; code author, PR author and merger @vincentkoc) is preserved.