1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

Merge pull request #45 from DeterminateSystems/parallel-flake-regressions

Use GNU parallel for the flake regression test suite
This commit is contained in:
Eelco Dolstra 2024-11-07 11:01:50 +01:00 committed by GitHub
commit 67bc4afd26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 29 deletions

View file

@ -60,7 +60,7 @@ jobs:
flake_regressions: flake_regressions:
needs: build_x86_64-linux needs: build_x86_64-linux
runs-on: ubuntu-22.04 runs-on: UbuntuLatest32Cores128G
steps: steps:
- name: Checkout nix - name: Checkout nix
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -78,4 +78,4 @@ jobs:
with: with:
flakehub: true flakehub: true
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH scripts/flake-regressions.sh - run: nix build --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH MAX_FLAKES=25 flake-regressions/eval-all.sh

View file

@ -1,27 +0,0 @@
#! /usr/bin/env bash
set -e
echo "Nix version:"
nix --version
cd flake-regressions
status=0
flakes=$(find tests -mindepth 3 -maxdepth 3 -type d -not -path '*/.*' | sort | head -n25)
echo "Running flake tests..."
for flake in $flakes; do
if ! REGENERATE=0 ./eval-flake.sh "$flake"; then
status=1
echo "$flake"
else
echo "$flake"
fi
done
exit "$status"