mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Merge pull request #48 from DeterminateSystems/run-all-vm-tests
Run all of hydraJobs.tests.*
This commit is contained in:
commit
9620c840cf
2 changed files with 30 additions and 3 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -18,4 +18,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
flakehub: true
|
flakehub: true
|
||||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||||
- run: nix build -L
|
- run: nix build . .#binaryTarball -L
|
||||||
|
|
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
||||||
- detsys-main
|
- detsys-main
|
||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
|
merge_group:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
|
@ -30,11 +31,13 @@ jobs:
|
||||||
os: UbuntuLatest32Cores128G
|
os: UbuntuLatest32Cores128G
|
||||||
|
|
||||||
build_aarch64-linux:
|
build_aarch64-linux:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: UbuntuLatest32Cores128GArm
|
os: UbuntuLatest32Cores128GArm
|
||||||
|
|
||||||
build_x86_64-darwin:
|
build_x86_64-darwin:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
os: macos-13
|
os: macos-13
|
||||||
|
@ -51,24 +54,27 @@ jobs:
|
||||||
os: UbuntuLatest32Cores128G
|
os: UbuntuLatest32Cores128G
|
||||||
|
|
||||||
test_aarch64-linux:
|
test_aarch64-linux:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
needs: build_aarch64-linux
|
needs: build_aarch64-linux
|
||||||
with:
|
with:
|
||||||
os: UbuntuLatest32Cores128GArm
|
os: UbuntuLatest32Cores128GArm
|
||||||
|
|
||||||
test_x86_64-darwin:
|
test_x86_64-darwin:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
needs: build_aarch64-darwin
|
needs: build_aarch64-darwin
|
||||||
with:
|
with:
|
||||||
os: macos-13
|
os: macos-13
|
||||||
|
|
||||||
test_aarch64-darwin:
|
test_aarch64-darwin:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test.yml
|
||||||
needs: build_aarch64-darwin
|
needs: build_aarch64-darwin
|
||||||
with:
|
with:
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
|
|
||||||
vm_tests:
|
vm_tests_smoke:
|
||||||
needs: build_x86_64-linux
|
needs: build_x86_64-linux
|
||||||
runs-on: UbuntuLatest32Cores128G
|
runs-on: UbuntuLatest32Cores128G
|
||||||
steps:
|
steps:
|
||||||
|
@ -85,7 +91,28 @@ jobs:
|
||||||
.#hydraJobs.tests.tarballFlakes \
|
.#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:
|
flake_regressions:
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
needs: build_x86_64-linux
|
needs: build_x86_64-linux
|
||||||
runs-on: UbuntuLatest32Cores128G
|
runs-on: UbuntuLatest32Cores128G
|
||||||
steps:
|
steps:
|
||||||
|
@ -105,4 +132,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
flakehub: true
|
flakehub: true
|
||||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue