1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 04:56:01 +01:00

Don't stall on a stuck nixos vm test build forever

This commit is contained in:
Graham Christensen 2025-06-13 18:05:15 -04:00
parent 97dc226cae
commit cf11e27047

View file

@ -83,13 +83,21 @@ jobs:
- uses: DeterminateSystems/determinate-nix-action@main - uses: DeterminateSystems/determinate-nix-action@main
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: | - run: |
nix build -L --keep-going \ cmd() {
$(nix flake show --json \ nix build -L --keep-going --timeout 300 \
| jq -r ' $(nix flake show --json \
.hydraJobs.tests | jq -r '
| with_entries(select(.value.type == "derivation")) .hydraJobs.tests
| keys[] | with_entries(select(.value.type == "derivation"))
| ".#hydraJobs.tests." + .') | keys[]
| ".#hydraJobs.tests." + .')
}
if ! cmd; then
echo "failed, retrying once ..."
printf "\n\n\n\n\n\n\n\n"
cmd
fi
flake_regressions: flake_regressions:
if: | if: |
@ -110,8 +118,12 @@ jobs:
- "lazy-trees = true" - "lazy-trees = true"
- "lazy-trees = false" - "lazy-trees = false"
glob: glob:
- "[0-l]*" - "[0-d]*"
- "[m-z]*" - "[e-l]*"
- "[m]*"
- "[n-r]*"
- "[s-z]*"
steps: steps:
- name: Checkout nix - name: Checkout nix
uses: actions/checkout@v4 uses: actions/checkout@v4