Skip to content

Commit ba14612

Browse files
authored
chore(cli): raise integ test timeout (#23812)
The timeout needs to account for the worst-case running time of all tests, single-threaded. This is because a test may be started, but never be able to acquire the lock until all other tests have run. Set it to 2hrs (currently, the test suite takes ~90 minutes to run single-threaded). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 858ff23 commit ba14612

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/bootstrapping.integtest.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import * as fs from 'fs';
22
import * as path from 'path';
33
import { integTest, randomString, withDefaultFixture } from '../../lib';
44

5-
const timeout = process.env.CODEBUILD_BUILD_ID ? // if the process is running in CodeBuild
6-
3_600_000 : // 1 hour
7-
600_000; // 10 minutes
8-
jest.setTimeout(timeout); // Includes the time to acquire locks
9-
process.stdout.write(`bootstrapping.integtest.ts: Setting jest time out to ${timeout} ms`);
5+
jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime
106

117
integTest('can bootstrap without execution', withDefaultFixture(async (fixture) => {
128
const bootstrapStackName = fixture.bootstrapStackName;

packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as os from 'os';
33
import * as path from 'path';
44
import { integTest, cloneDirectory, shell, withDefaultFixture, retry, sleep, randomInteger, withSamIntegrationFixture, RESOURCES_DIR } from '../../lib';
55

6-
jest.setTimeout(60 * 60_000); // Includes the time to acquire locks
6+
jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime
77

88
describe('ci', () => {
99
integTest('output to stderr', withDefaultFixture(async (fixture) => {

0 commit comments

Comments
 (0)