test-parallelism

command
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command test-parallelism prints the -p `make preflight` gives its test and race stages, so one run cannot saturate a machine other sessions share (iss-2610102020442624): twice the online cores less the one-minute load, never more than the cores divided among the preflights that may be in their test stages at once (load.preflights in ~/.abcd.noindex/config.json, or ABCD_LOAD_PREFLIGHTS; one by default) and never fewer than a quarter of them (implement.PreflightParallelism, machineload.GoTestParallelism). Each stage runs it as it starts, so the number reflects the load at that moment. On a CI runner, or where the machine cannot be read, it prints go's own default, GOMAXPROCS.

Usage: go test -p "$(go run ./cmd/test-parallelism)" ./...

It is developer tooling, never part of a release: it prints one number and a newline, reads the machine once, writes nothing and exits 0. A slot setting it cannot use is named on stderr and read as one; the load gate before the stage refuses that setting first. A machine config.json it cannot read is read as one without a word: the load gate before the stage names it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL