Skip to content

Commit af5c949

Browse files
committed
sync: update 2 file(s) in core/
- .gaai/core/scripts/lib/test-gate.sh - CHANGELOG.md GAAI-Source-Commit: 6e6bc36e671413624c4ecee1eb817ac47e4ce21d
1 parent c2d05c1 commit af5c949

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.gaai/core/scripts/lib/test-gate.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)