Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease default test timeouts #56116

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ env:

jobs:
build:
timeout-minutes: 25
timeout-minutes: 15
runs-on:
- 'self-hosted'
- 'linux'
Expand Down
2 changes: 2 additions & 0 deletions test/development/acceptance-app/app-hmr-changes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { FileRef, nextTestSetup } from 'e2e-utils'
import { sandbox } from 'development-sandbox'
import path from 'path'

jest.setTimeout(240 * 1000)

describe('Error overlay - RSC build errors', () => {
const { next } = nextTestSetup({
files: new FileRef(path.join(__dirname, 'fixtures', 'app-hmr-changes')),
Expand Down
2 changes: 1 addition & 1 deletion test/jest-setup-after-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ expect.extend(matchers)

// A default max-timeout of 90 seconds is allowed
// per test we should aim to bring this down though
jest.setTimeout((process.platform === 'win32' ? 180 : 120) * 1000)
jest.setTimeout((process.platform === 'win32' ? 180 : 60) * 1000)
2 changes: 1 addition & 1 deletion test/lib/e2e-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type { NextInstance }
// if either test runs for the --turbo or have a custom timeout, set reduced timeout instead.
// this is due to current --turbo test have a lot of tests fails with timeouts, ends up the whole
// test job exceeds the 6 hours limit.
let testTimeout = shouldRunTurboDevTest() ? (240 * 1000) / 4 : 240 * 1000
let testTimeout = shouldRunTurboDevTest() ? (240 * 1000) / 4 : 120 * 1000
if (process.env.NEXT_E2E_TEST_TIMEOUT) {
try {
testTimeout = parseInt(process.env.NEXT_E2E_TEST_TIMEOUT, 10)
Expand Down
2 changes: 1 addition & 1 deletion test/production/pages-dir/production/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { createNextDescribe } from 'e2e-utils'
const glob = promisify(globOriginal)

if (process.env.TEST_WASM) {
jest.setTimeout(240 * 1000)
jest.setTimeout(120 * 1000)
}

createNextDescribe(
Expand Down
Loading