Skip to content

Commit

Permalink
github: cancel a job if it takes longer than 40 minutes
Browse files Browse the repository at this point in the history
in general, it takes less than 34 minutes to build the tree from
scratch and to test all tests, even with DPDK enabled. but to be
on the safe side, let's add 10 more minutes.

this helps to stop if we run into some unexpected infra issues,
or to identify some very time consuming tests.

see also
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed May 21, 2024
1 parent 67a14f9 commit 4837ec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:

jobs:
test:
timeout-minutes: 40
runs-on: ubuntu-latest
container: fedora:40
steps:
Expand Down

0 comments on commit 4837ec4

Please sign in to comment.