Skip to content

Commit 94cd37d

Browse files
authored
Run the container / vm tests twice if they fail, with a timeout of 10min each (#1591)
1 parent 94d4251 commit 94cd37d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ jobs:
598598
matrix:
599599
command:
600600
- nix flake check -L
601-
- nix build -L --tarball-ttl 0 --keep-going .#hydraJobs.container-test.all.x86_64-linux.all
602-
- nix build -L --tarball-ttl 0 --keep-going .#hydraJobs.vm-test.all.x86_64-linux.all
601+
- nix build -L --tarball-ttl 0 --timeout 600 --keep-going .#hydraJobs.container-test.all.x86_64-linux.all
602+
- nix build -L --tarball-ttl 0 --timeout 600 --keep-going .#hydraJobs.vm-test.all.x86_64-linux.all
603603
permissions:
604604
id-token: "write"
605605
contents: "read"
@@ -624,7 +624,12 @@ jobs:
624624
log-directives: nix_installer=debug
625625
logger: pretty
626626
- uses: DeterminateSystems/flakehub-cache-action@main
627-
- run: ${{ matrix.command }}
627+
- run: |
628+
if ! (${{ matrix.command }}); then
629+
echo "failed, retrying once ..."
630+
printf "\n\n\n\n\n\n\n\n"
631+
(${{ matrix.command }})
632+
fi
628633
629634
run-x86_64-linux-release-checks:
630635
name: Run x86_64 Linux release checks

0 commit comments

Comments
 (0)