Build/Test Tools: Lower the timeout for GitHub Actions jobs so runaway or stalled processes don't risk running for the default timeout duration of six hours.

See #53363


git-svn-id: https://develop.svn.wordpress.org/trunk@52233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2021-11-23 17:40:00 +00:00
parent a86125d5c1
commit 7a70bc55dc
10 changed files with 16 additions and 0 deletions

View File

@ -58,6 +58,7 @@ jobs:
phpcs:
name: PHP coding standards
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
steps:
@ -123,6 +124,7 @@ jobs:
jshint:
name: JavaScript coding standards
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}

View File

@ -47,6 +47,7 @@ jobs:
e2e-tests:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
steps:

View File

@ -51,6 +51,7 @@ jobs:
test-js:
name: QUnit Tests
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
steps:

View File

@ -52,6 +52,7 @@ jobs:
php-compatibility:
name: Check PHP compatibility
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
steps:

View File

@ -60,6 +60,7 @@ jobs:
test-php:
name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false

View File

@ -61,6 +61,7 @@ jobs:
prepare:
name: Prepare notifications
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event.workflow_run.event != 'pull_request' }}
outputs:
previous_conclusion: ${{ steps.previous-conclusion.outputs.previous_conclusion }}
@ -129,6 +130,7 @@ jobs:
failure:
name: Failure notifications
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [ prepare ]
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure' || inputs.calling_status == 'failure' || failure() }}
@ -144,6 +146,7 @@ jobs:
fixed:
name: Fixed notifications
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [ prepare ]
if: ${{ needs.prepare.outputs.previous_conclusion == 'failure' && ( github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || inputs.calling_status == 'success' ) && success() }}
@ -159,6 +162,7 @@ jobs:
success:
name: Success notifications
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [ prepare ]
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || inputs.calling_status == 'success' && success() }}
@ -174,6 +178,7 @@ jobs:
cancelled:
name: Cancelled notifications
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [ prepare ]
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'cancelled' || inputs.calling_status == 'cancelled' || cancelled() }}

View File

@ -47,6 +47,7 @@ jobs:
test-coverage-report:
name: ${{ matrix.multisite && 'Multisite' || 'Single site' }} report
runs-on: ubuntu-latest
timeout-minutes: 120
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
strategy:
fail-fast: false

View File

@ -50,6 +50,7 @@ jobs:
test-npm:
name: Test NPM on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false
@ -113,6 +114,7 @@ jobs:
test-npm-macos:
name: Test NPM on MacOS
runs-on: macos-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
steps:
- name: Checkout repository

View File

@ -16,6 +16,7 @@ jobs:
dispatch-workflows-for-old-branches:
name: ${{ matrix.workflow }} for ${{ matrix.branch }}
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
strategy:
fail-fast: false

View File

@ -8,6 +8,7 @@ jobs:
# Comments on a pull request when the author is a new contributor.
post-welcome-message:
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
steps: