Archived
The per-binary CPU budgets are set on a fast machine. A VM on an EPYC 7302 spends 4.6x the quoted CPU time on tokenizer_test's reference pass, so the image's test stage failed there on a correct tree, and -j sized for the compile also sized the tests: twelve at once on a 24-thread host put tests on busy SMT siblings, which costs CPU seconds too. RAD_TEST_CPU_BUDGET_SCALE multiplies the budget where rad_test.h reads it, at run time, so a direct ctest takes it as well and the build layer is untouched by it. The stage takes it as TEST_CPU_BUDGET_SCALE (build.sh -B) and its parallelism as TEST_JOBS (build.sh -J), each empty by default, which is the stage as before. harness_test checks the factor and keeps it out of its fixture's environment; docs/DOCKER.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>