Unverified Commit 9657f99e authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add timeout to playwright setup job (#40960)

The `npm i` step sometimes stall due to the network in GitHub actions so
this adds a timeout so we aren't wasting CI time on this.

x-ref:
https://github.com/vercel/next.js/actions/runs/3136162957/jobs/5092826951
parent c69677a5
...@@ -281,6 +281,7 @@ jobs: ...@@ -281,6 +281,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: node run-tests.js --type development --timings -g ${{ matrix.group }}/2 - run: node run-tests.js --type development --timings -g ${{ matrix.group }}/2
...@@ -340,6 +341,7 @@ jobs: ...@@ -340,6 +341,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: node run-tests.js --type development --timings -g ${{ matrix.group }}/2 - run: node run-tests.js --type development --timings -g ${{ matrix.group }}/2
...@@ -400,6 +402,7 @@ jobs: ...@@ -400,6 +402,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: NEXT_TEST_MODE=dev node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3 - run: NEXT_TEST_MODE=dev node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3
...@@ -460,6 +463,7 @@ jobs: ...@@ -460,6 +463,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: NEXT_TEST_MODE=dev node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3 - run: NEXT_TEST_MODE=dev node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3
...@@ -519,6 +523,7 @@ jobs: ...@@ -519,6 +523,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: node run-tests.js --type production --timings -g ${{ matrix.group }}/2 - run: node run-tests.js --type production --timings -g ${{ matrix.group }}/2
...@@ -568,6 +573,7 @@ jobs: ...@@ -568,6 +573,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: node run-tests.js --type production --timings -g ${{ matrix.group }}/2 - run: node run-tests.js --type production --timings -g ${{ matrix.group }}/2
...@@ -618,6 +624,7 @@ jobs: ...@@ -618,6 +624,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: NEXT_TEST_MODE=start node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3 - run: NEXT_TEST_MODE=start node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3
...@@ -668,6 +675,7 @@ jobs: ...@@ -668,6 +675,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: NEXT_TEST_MODE=start node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3 - run: NEXT_TEST_MODE=start node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3
...@@ -739,6 +747,7 @@ jobs: ...@@ -739,6 +747,7 @@ jobs:
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/20 - run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/20
...@@ -1043,6 +1052,7 @@ jobs: ...@@ -1043,6 +1052,7 @@ jobs:
name: Install pnpm name: Install pnpm
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
name: Install playwright dependencies name: Install playwright dependencies
- run: RESET_VC_PROJECT=true node scripts/reset-vercel-project.mjs - run: RESET_VC_PROJECT=true node scripts/reset-vercel-project.mjs
...@@ -1243,6 +1253,7 @@ jobs: ...@@ -1243,6 +1253,7 @@ jobs:
check-latest: true check-latest: true
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps - run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 3
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
- run: node ./scripts/setup-wasm.mjs - run: node ./scripts/setup-wasm.mjs
......
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