Add explicit timeout to test step

If we die from timeout of the whole GH action run, we don't run the
collect step afterward, which can make it hard to investigate the
timeout.

If we timeout first in the test action, though, it qualifies as
failure, and collects appropriately.

(330 minutes seems like an acceptable tradeoff between the 6h
timeout by default on the action and the 4h and change "functional"
usually takes.)

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #12999
This commit is contained in:
Rich Ercolani 2022-01-24 18:54:52 -05:00 committed by Tony Hutter
parent 2e3b3e3a2e
commit 687de107b7
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ jobs:
- name: Tests - name: Tests
run: | run: |
/usr/share/zfs/zfs-tests.sh -vR -s 3G /usr/share/zfs/zfs-tests.sh -vR -s 3G
timeout-minutes: 330
- name: Prepare artifacts - name: Prepare artifacts
if: failure() if: failure()
run: | run: |

View File

@ -60,6 +60,7 @@ jobs:
- name: Tests - name: Tests
run: | run: |
/usr/share/zfs/zfs-tests.sh -vR -s 3G -r sanity /usr/share/zfs/zfs-tests.sh -vR -s 3G -r sanity
timeout-minutes: 330
- name: Prepare artifacts - name: Prepare artifacts
if: failure() if: failure()
run: | run: |