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

Merge pull request #48 from DeterminateSystems/run-all-vm-tests

Run all of hydraJobs.tests.*
This commit is contained in:
Eelco Dolstra 2025-02-20 19:43:24 +00:00 committed by GitHub
commit 9620c840cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 3 deletions

View file

@ -18,4 +18,4 @@ jobs:
with:
flakehub: true
- uses: DeterminateSystems/flakehub-cache-action@main
- run: nix build -L
- run: nix build . .#binaryTarball -L

View file

@ -7,6 +7,7 @@ on:
- detsys-main
- main
- master
merge_group:
permissions:
id-token: "write"
@ -30,11 +31,13 @@ jobs:
os: UbuntuLatest32Cores128G
build_aarch64-linux:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/build.yml
with:
os: UbuntuLatest32Cores128GArm
build_x86_64-darwin:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/build.yml
with:
os: macos-13
@ -51,24 +54,27 @@ jobs:
os: UbuntuLatest32Cores128G
test_aarch64-linux:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/test.yml
needs: build_aarch64-linux
with:
os: UbuntuLatest32Cores128GArm
test_x86_64-darwin:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/test.yml
needs: build_aarch64-darwin
with:
os: macos-13
test_aarch64-darwin:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/test.yml
needs: build_aarch64-darwin
with:
os: macos-latest
vm_tests:
vm_tests_smoke:
needs: build_x86_64-linux
runs-on: UbuntuLatest32Cores128G
steps:
@ -85,7 +91,28 @@ jobs:
.#hydraJobs.tests.tarballFlakes \
;
vm_tests_all:
if: github.event_name == 'merge_group'
needs: build_x86_64-linux
runs-on: UbuntuLatest32Cores128G
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
- uses: DeterminateSystems/flakehub-cache-action@main
- run: |
nix build -L --keep-going \
$(nix flake show --json \
| jq -r '
.hydraJobs.tests
| with_entries(select(.value.type == "derivation"))
| keys[]
| ".#hydraJobs.tests." + .'
| head -n5) # FIXME: for testing the merge queue
flake_regressions:
if: github.event_name == 'merge_group'
needs: build_x86_64-linux
runs-on: UbuntuLatest32Cores128G
steps:
@ -105,4 +132,4 @@ jobs:
with:
flakehub: true
- uses: DeterminateSystems/flakehub-cache-action@main
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH MAX_FLAKES=25 flake-regressions/eval-all.sh
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH MAX_FLAKES=50 flake-regressions/eval-all.sh