mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +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:
commit
67bc4afd26
2 changed files with 2 additions and 29 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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"
|
|
Loading…
Add table
Add a link
Reference in a new issue