mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
Don't stall on a stuck nixos vm test build forever
This commit is contained in:
parent
97dc226cae
commit
cf11e27047
1 changed files with 21 additions and 9 deletions
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
|
@ -83,13 +83,21 @@ jobs:
|
|||
- uses: DeterminateSystems/determinate-nix-action@main
|
||||
- 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." + .')
|
||||
cmd() {
|
||||
nix build -L --keep-going --timeout 300 \
|
||||
$(nix flake show --json \
|
||||
| jq -r '
|
||||
.hydraJobs.tests
|
||||
| with_entries(select(.value.type == "derivation"))
|
||||
| keys[]
|
||||
| ".#hydraJobs.tests." + .')
|
||||
}
|
||||
|
||||
if ! cmd; then
|
||||
echo "failed, retrying once ..."
|
||||
printf "\n\n\n\n\n\n\n\n"
|
||||
cmd
|
||||
fi
|
||||
|
||||
flake_regressions:
|
||||
if: |
|
||||
|
|
@ -110,8 +118,12 @@ jobs:
|
|||
- "lazy-trees = true"
|
||||
- "lazy-trees = false"
|
||||
glob:
|
||||
- "[0-l]*"
|
||||
- "[m-z]*"
|
||||
- "[0-d]*"
|
||||
- "[e-l]*"
|
||||
- "[m]*"
|
||||
- "[n-r]*"
|
||||
- "[s-z]*"
|
||||
|
||||
steps:
|
||||
- name: Checkout nix
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue