Skip to content

mutate: every test process held to its share of the cores - #13

Merged
aledbf merged 2 commits into
mainfrom
mutate/bounded-test-procs
Sep 29, 2026
Merged

aledbf merged 2 commits into
mainfrom
mutate/bounded-test-procs

Conversation

@aledbf

@aledbf aledbf commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Each test process mutate starts - measuring coverage, asking a schema binary, building an edit alone - now runs with GOMAXPROCS = cores / -j (at least 1). A test binary took every core, and so did each of its t.Parallel tests: that is what saturated the build machine, not the work itself.

Measured on spin's 5c3b5a8a (295 edits, control-plane app and cmd, whose tests start a control plane against PostgreSQL), 20-core machine, warm cache, nice -n 19:

wall CPU load max
before, -j 4 4m13s 4m04s 23.6
this, -j 4 4m05s 3m02s 11.4
this, -j 10 (local default) 1m56s 3m19s 12.5

Same outcomes (163 refused, 123 survived, 9 unbuildable). On 6e5ce8e9 and 29e72cf8 at -j 10: 33s and 1m7s, load under 8.

Also tried and dropped: asking an edit's cheapest tests first (by the time coverage measured). No measurable change on the same three commits (1m57s→1m58s, 33s→34s, 1m7s→1m1s) and 20% more processes: killed edits already stop at the first failure, and survivors run every reaching test whatever the order.

task test, task lint, mutate (-j 2): green.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

aledbf and others added 2 commits September 29, 2026 00:11
A test binary took every core, and each of its t.Parallel tests too: four control-plane edits
asked at once were nineteen processes running and a load of 24 on a 20-core machine, on a
fraction of its CPU. GOMAXPROCS is the cores over -j, for coverage, a schema binary and an
edit built alone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@aledbf
aledbf merged commit 578f6df into main Sep 29, 2026
2 checks passed
@aledbf
aledbf deleted the mutate/bounded-test-procs branch September 29, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant