Skip to content

Commit

Permalink
chore(cli): raise integ test timeout (#23812)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
rix0rrr authored Jan 24, 2023
1 parent 858ff23 commit ba14612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import * as fs from 'fs';
import * as path from 'path';
import { integTest, randomString, withDefaultFixture } from '../../lib';

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

integTest('can bootstrap without execution', withDefaultFixture(async (fixture) => {
const bootstrapStackName = fixture.bootstrapStackName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as os from 'os';
import * as path from 'path';
import { integTest, cloneDirectory, shell, withDefaultFixture, retry, sleep, randomInteger, withSamIntegrationFixture, RESOURCES_DIR } from '../../lib';

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

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

0 comments on commit ba14612

Please sign in to comment.