ci: Evaluate with a pool of nix-eval-jobs workers
Each CI job ran in its own `nix build`, and its output path came from a second `nix eval`. Every one of those evaluations paid ~15s and ~4 GiB to evaluate the flake before reaching its job, and import from derivation stalled each job in turn. The final `ciDrv` evaluation covered every job once more. Evaluate everything once with `nix-eval-jobs` instead: workers keep the shared evaluation for several jobs and wait on import from derivation in parallel, and the worker count and memory bound cap evaluation at 24 GiB of the 40 GiB `git` VM. Build every job in one `nix build --keep-going`, push the results in one copy, and build the profiled link farm from the known output paths, which makes `ciDrv` unnecessary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #9.
This commit is contained in:
1 parent
cc38f152be
commit
d0eed3943d
6 files changed
+199
-51
No files matched your search
+8
-5
@@ -31,12 +31,15 @@ if [ "${1-}" = "--gc" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
path="$1"
|
||||
if [ -n "${UPDATE_PROFILE-}" ] && [ $# -ne 1 ]; then
|
||||
echo "UPDATE_PROFILE needs exactly one path" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Pushing $path to cache..."
|
||||
nix copy --no-check-sigs --to "$STORE_URI" "$path"
|
||||
echo "Pushing $# path(s) to cache..."
|
||||
nix copy --no-check-sigs --to "$STORE_URI" "$@"
|
||||
|
||||
if [ -n "$UPDATE_PROFILE" ]; then
|
||||
if [ -n "${UPDATE_PROFILE-}" ]; then
|
||||
echo "Updating profile..."
|
||||
remote_cmd nix-env -p "$REMOTE_STORE"/nix/var/nix/profiles/nixfiles --set "$path"
|
||||
remote_cmd nix-env -p "$REMOTE_STORE"/nix/var/nix/profiles/nixfiles --set "$1"
|
||||
fi
|
||||
Reference in new issue
Block a user