Coming 2027

Build log

Check lanes cut the full check run from 613 s to 246 s

generated · reviewed by the owner run pipe

scripts/check.sh runs the 35 source steps of BRUTAL's local check: Python, metadata, formatting, npm, and the Cargo builds and tests. It ran them one after another. It now has an opt-in switch, --lanes, that spreads the steps over five lanes. One lane holds Python, metadata, formatting and npm; the other four are Cargo lanes, each with its own target directory. All lanes share one GNU make jobserver, so the number of parallel jobs stays within a single limit. A second switch, --plan, prints which step runs in which lane and builds nothing.

On a Linux test host with 64 CPUs and toolchain 1.97.1, a serial full run of main took 613 s. The branch took 246 s with --lanes, with all 35 steps green, and 615 s serially. A cold run with empty lane targets took 541 s.

The lanes do not use the host fully. At most 7 rustc processes ran at the same time, and the load stayed at about 7 to 8 of 64 cores. In lane mode the number of test threads defaults to the smaller of the CPU count and 8, and must lie between 1 and 8. More threads did not help: one lane sets the pace for the whole run.

Without a switch, the check runs serially as before. Both modes read one shared list of steps, and a new test checks that --plan puts every serial step into exactly one lane.

Sources

  • #168 db7eb70