Repository navigation
Studio tests: delegate.test.mjs splits into four files, so the node tests run in parallel (#822) - #829
Merged
Conversation
…ests run in parallel (#822) The stand-ins, scratchRun, pickCritic and the shared helpers move to ui/tests/delegate-fixtures.mjs; the cases move unchanged into delegate-critic, delegate-run-candidates, delegate-run-verdicts and delegate-run-worktree. Same 52 tests, same names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s case, and development.md lists delegate-fixtures.mjs (#822) 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.
Closes #822.
Summary
A move, not a rewrite. The sorted lines of the old file match the sorted lines of the five new ones, apart from the header comments, the imports and
exportonscript,pickCritic,scratchRun,commitsOnandgone. The same 52 test names, checked by diffing the TAP names. No case was merged, dropped or made async. Helpers that only one file uses (two,models,HEALTHY_SILENCE_MS,bare,ranCritic,BRIEFED,BREAKDOWN) stay in that file.docs/studio/development.mdnow lists the new shared module.system-map checkpasses with no map change, since files undertests/give no pair.No test was removed or merged, so the "replace narrower tests" list is empty.
Evidence
Daniel's Mac, Node v22.23.1, 10 cores, measured at
8a3b2c10band on this branch:delegate.test.mjs(before)delegate-critic.test.mjsdelegate-run-candidates.test.mjsdelegate-run-verdicts.test.mjsdelegate-run-worktree.test.mjsThe three
run:files are within 10% of each other. The critic file is its own file, as the ticket says.npm run test:node, before and after back to back, twice (848 tests, 0 failed in each run):That is 57–60% shorter. The ticket asked for at least 40%.
The macOS CI job's node phase
# duration_ms: before 57875 (run 46163503163), after 18068 (this PR's run 46168520750), 69% shorter.snap (1/2)failed once on a fixture this diff doesn't touch (mapScan: cli's plate is cut by the canvas's edge). One rerun of the failed job (gh run rerun 46168520685 --failed) passed.npm run checkpasses (knip, Biome,tsc -p ui/tests,system-map check).Merge Danger
Door: two-way. Revert brings the one file back.
Blast Radius: tests. Only
ui/tests/and one docs line change.package.json,--test-concurrencyandscripts/agents/delegate.mjsare untouched.Correctness pass and Outside review
Correctness pass: skipped. The PR changes no Rust or TypeScript, only JavaScript test files moved unchanged. The two-axis
/code-review(standards and spec) found no defects. Its notes:development.mddidn't list the shared module. Fixed.Outside review: skipped: no risk match
🤖 Generated with Claude Code