Unverified Commit 5af1a930 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add more test job timeouts (#41162)

This adds some upper bound time limits on our test jobs to ensure we
aren't slipping on test times or letting CI job stall and waste
concurrency.
parent 0d5886f2
...@@ -208,6 +208,7 @@ jobs: ...@@ -208,6 +208,7 @@ jobs:
name: Test Unit name: Test Unit
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 5
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -242,6 +243,7 @@ jobs: ...@@ -242,6 +243,7 @@ jobs:
name: Test Development name: Test Development
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 20
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -362,6 +364,7 @@ jobs: ...@@ -362,6 +364,7 @@ jobs:
name: Test Development (E2E) name: Test Development (E2E)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 20
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -502,6 +505,7 @@ jobs: ...@@ -502,6 +505,7 @@ jobs:
name: Test Production name: Test Production
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 15
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -602,6 +606,7 @@ jobs: ...@@ -602,6 +606,7 @@ jobs:
name: Test Production (E2E) name: Test Production (E2E)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 25
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -704,6 +709,7 @@ jobs: ...@@ -704,6 +709,7 @@ jobs:
name: Test Integration name: Test Integration
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 20
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -785,6 +791,7 @@ jobs: ...@@ -785,6 +791,7 @@ jobs:
name: Test Electron name: Test Electron
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 5
env: env:
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1 NEXT_TEST_JOB: 1
...@@ -840,6 +847,7 @@ jobs: ...@@ -840,6 +847,7 @@ jobs:
name: Test Firefox (production) name: Test Firefox (production)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 5
env: env:
BROWSER_NAME: 'firefox' BROWSER_NAME: 'firefox'
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
...@@ -874,6 +882,7 @@ jobs: ...@@ -874,6 +882,7 @@ jobs:
name: Test Safari (production) name: Test Safari (production)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 10
env: env:
BROWSER_NAME: 'safari' BROWSER_NAME: 'safari'
NEXT_TEST_MODE: 'start' NEXT_TEST_MODE: 'start'
...@@ -919,6 +928,7 @@ jobs: ...@@ -919,6 +928,7 @@ jobs:
name: Test Safari 10.1 (nav) name: Test Safari 10.1 (nav)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-native-test] needs: [build, build-native-test]
timeout-minutes: 5
env: env:
BROWSERSTACK: true BROWSERSTACK: true
LEGACY_SAFARI: true LEGACY_SAFARI: true
...@@ -965,6 +975,7 @@ jobs: ...@@ -965,6 +975,7 @@ jobs:
name: Test Firefox Node.js 18 name: Test Firefox Node.js 18
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, testFirefox, build-native-test] needs: [build, testFirefox, build-native-test]
timeout-minutes: 5
env: env:
BROWSER_NAME: 'firefox' BROWSER_NAME: 'firefox'
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
...@@ -1237,6 +1248,7 @@ jobs: ...@@ -1237,6 +1248,7 @@ jobs:
test-wasm: test-wasm:
name: Test the wasm build name: Test the wasm build
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10
needs: [build, build-native-test, build-wasm-dev] needs: [build, build-native-test, build-wasm-dev]
steps: steps:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment