nixpkgs/ci/eval
Silvan Mosberger bd5c93ca3d ci/eval: Avoid noise for failing attribute evals
It's currently annoying to see the actual failure in the attrs step,
because `time -v` displays like 20 lines, which get repeated, therefore
requiring you to scroll up most of the time:
https://github.com/NixOS/nixpkgs/actions/runs/12290298121/job/34297218345#step:5:794

This commit fixes that by only displaying the most important stats, the
same ones as the chunked system-specific evals.
2024-12-12 12:53:37 +01:00
..
compare ci/eval: add rebuildsByPlatform to the comparison result 2024-12-11 16:37:25 +01:00
default.nix ci/eval: Avoid noise for failing attribute evals 2024-12-12 12:53:37 +01:00
README.md

Nixpkgs CI evaluation

The code in this directory is used by the eval.yml GitHub Actions workflow to evaluate the majority of Nixpkgs for all PRs, effectively making sure that when the development branches are processed by Hydra, no evaluation failures are encountered.

Furthermore it also allows local evaluation using

nix-build ci -A eval.full \
  --max-jobs 4
  --cores 2
  --arg chunkSize 10000
  • --max-jobs: The maximum number of derivations to run at the same time. Only each supported system gets a separate derivation, so it doesn't make sense to set this higher than that number.
  • --cores: The number of cores to use for each job. Recommended to set this to the amount of cores on your system divided by --max-jobs.
  • chunkSize: The number of attributes that are evaluated simultaneously on a single core. Lowering this decreases memory usage at the cost of increased evaluation time. If this is too high, there won't be enough chunks to process them in parallel, and will also increase evaluation time.

A good default is to set chunkSize to 10000, which leads to about 3.6GB max memory usage per core, so suitable for fully utilising machines with 4 cores and 16GB memory, 8 cores and 32GB memory or 16 cores and 64GB memory.

Note that 16GB memory is the recommended minimum, while with less than 8GB memory evaluation time suffers greatly.