File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,7 +249,16 @@ _test_gate_run_units() {
249249 # log-mtime signal the detector watches. PIPESTATUS[0] preserves the
250250 # actual command's exit code (not tee's).
251251 echo " [TEST-GATE] unit=${label} type=${type} starting" >&2
252- (cd " $worktree_path " && eval " $cmd " ) 2>&1 | tee -a /dev/stderr > /dev/null
252+ # Deprioritise: this can spawn several workerd-backed vitest workers at
253+ # 100%+ CPU each, run twice per commit-phase attempt (HEAD + baseline),
254+ # with up to MAX_CONCURRENT deliveries in parallel — background test
255+ # execution otherwise competes evenly with the operator's foreground work
256+ # for CPU scheduling. renice on $$ (this subshell) before spawning the
257+ # test process; child processes inherit the lowered niceness. macOS/Linux
258+ # still grant it idle CPU when nothing else needs it, so total suite
259+ # wall-clock is not meaningfully affected — only scheduling priority
260+ # under contention changes.
261+ (renice -n 15 -p $$ > /dev/null 2>&1 ; cd " $worktree_path " && eval " $cmd " ) 2>&1 | tee -a /dev/stderr > /dev/null
253262 exit_code=${PIPESTATUS[0]}
254263 echo " [TEST-GATE] unit=${label} type=${type} exit=${exit_code} " >&2
255264
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010## [ Unreleased]
1111
1212### Changed
13+ - fix: lower CPU priority of test-gate unit runs
1314- fix: stream test-gate unit output live instead of buffering
1415- fix: hang-detector was blind to commit-phase activity
1516- fix: name the entry tier Starter
You can’t perform that action at this time.
0 commit comments