Skip to content

Commit 5f84a6d

Browse files
committed
Introduce default job length of 40 minutes
Override default job timeout for Github actions. Set to job timeout to 40 minutes rather than the default 360 minutes (6 hours) Running some test jobs with 1 minute the queued time per job does not appear to count to the limit which is desirable. Job timeout can be overridden in `.sync.yml`. https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
1 parent 48044bb commit 5f84a6d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

config_defaults.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
beaker_fact_matrix: {}
55
excludes: []
66
pidfile_workaround: false
7+
timeout_minutes: 40
78
.travis.yml:
89
delete: true
910
Gemfile:

moduleroot/.github/workflows/ci.yml.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
setup_matrix:
77
name: 'Setup Test Matrix'
88
runs-on: ubuntu-latest
9+
timeout-minutes: <%= @configs['timeout_minutes'] %>
910
outputs:
1011
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }}
1112
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }}
@@ -28,6 +29,7 @@ jobs:
2829
unit:
2930
needs: setup_matrix
3031
runs-on: ubuntu-latest
32+
timeout-minutes: <%= @configs['timeout_minutes'] %>
3133
strategy:
3234
fail-fast: false
3335
matrix:

0 commit comments

Comments
 (0)