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:
parent
97dc226cae
commit
cf11e27047
1 changed files with 21 additions and 9 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -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 build -L --keep-going --timeout 300 \
|
||||||
$(nix flake show --json \
|
$(nix flake show --json \
|
||||||
| jq -r '
|
| jq -r '
|
||||||
.hydraJobs.tests
|
.hydraJobs.tests
|
||||||
| with_entries(select(.value.type == "derivation"))
|
| with_entries(select(.value.type == "derivation"))
|
||||||
| keys[]
|
| keys[]
|
||||||
| ".#hydraJobs.tests." + .')
|
| ".#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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue