Repository navigation
Cap local test parallelism; add scripts/gate.ps1 - #189
Merged
Merged
Conversation
… core count; xUnit cap only applies locally on machines with more than 8 cores
…n every exit path
…ait passed while options were still loading)
firegiant9000
added a commit
that referenced
this pull request
Nov 19, 2026
e2e: fix the status-bar roll test race (main CI red after #189)
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.
Local test runs used every core: Vitest started one fork per core, and
dotnet testran four test projects at once, each at full core count. On a many-core machine that saturates the CPU and is the likeliest cause of the wall-clock flakes we keep hitting. This PR caps local runs, adds a gate runner, and fixes one e2e race the load exposed. CI keeps its defaults.Caps (local only)
CIis set, Vitest keeps its own default.TOMESTACK_TEST_WORKERS=<n>overrides both rules.tests/xunit.runner.jsonsetsmaxParallelThreadsto 8. It's copied into the four*.Testsoutputs only whenCIis unset orfalseand the machine has more than 8 logical cores. xUnit v2 treats the value as the thread count, so on a smaller machine it would raise parallelism. Override per run withdotnet test ... -- xUnit.MaxParallelThreads=<n>.scripts/gate.ps1(Windows PowerShell 5.1)-Fromand-Only.summary.txt(id, exit code, seconds) on every exit path, and stops at the first failure.-DevHostStepTimeoutMinutes(default 15) and reports exit 124.-LowPriorityruns below normal priority and restores the shell's priority afterwards.-RequireQuietfails instead.GateScriptTests(13 tests). They never run the real gate or touch real processes.e2e race fix: in
builder.e2e.tsx("drops picks that do not fit when the rules family changes"), the wait for "Half-Orc gone" also passed while the species list was still loading. The test now waits for the loaded list. It failed every time on a busy machine and passes after the fix.Not measured: the caps stay at 8/8. Timing runs on a quiet machine weren't possible this session, so the default-vs-capped wall times are still owed.
Gate: steps 1–8 are green through
gate.ps1, on a machine already at 60–86% CPU from other work:A first run with
-LowPriorityon that busy machine flaked two Homebrew Studio unit tests, which pass on their own. CONTRIBUTING now says when to use-LowPriority. Owner gate steps 9–10 (smoke and single-instance) are still to run.Review: each task had a logic review, and the fixes were re-reviewed clean (the CI-parallelism, kill-scope and test-isolation findings were fixed).