Repository navigation
fix(nx): test-plans fails a sample whose gate explain failed - #987
Merged
Merged
Conversation
Under load the gate's --explain run could exit nonzero after printing its affected line; the plan was written without the ownership step's test:subset lines, so two replays of an unchanged tree differed (reported by digitakt2-e1). A failed sample now writes no plan, is listed as FAILED, and the run exits 1 after finishing the other samples. The nx affected --explain file moves to the worktree's dist/, so lanes replaying the same sample no longer overwrite each other's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Two bugs in the plan replay (
tools/nx/test-plans.mjs), reported by digitakt2-e1: two replays of an unchanged tree differed in 2 of 8 plans under load, and one plan lost all itstest:subsetlines.--explainrun's exit status was never checked: under load it could print its affected line and then fail in the ownership step, and the plan was written without that step's lines. A sample whose gate explain fails now writes no plan, is listed as FAILED, and the run exits 1 after finishing the other samples (a later--diffshows it as missing, not as a short plan).nx affected --explainfile lived in the sharedout/test-ledger/scratch, so two lanes replaying the same sample overwrote each other's; it now goes to the worktree'sdist/test-ledger/scratch.mise run test; host-level gate. Known limit, unchanged: a replay spawns an Nx process per target per sample (about 2 h for 8 samples on a loaded machine).🤖 Generated with Claude Code