Skip to content

Commit 5bb90cb

Browse files
authored
fix(cli-integ): sporadic failures due to external causes (#897)
Some of our tests are failing sporadically due to factors out of our control. In the past week, here are the failing tests: <img width="1249" height="216" alt="Screenshot 2025-09-28 at 10 33 31 PM" src="https://github.com/user-attachments/assets/c19c7d40-ef1f-4e7a-ad96-887a9f2e1ec2" /> Causes I observed so far: - Prolonged docker build durations, most likely caused by network or CPU pressure since we are running a lot of parallel processes. - Lambda functions fail to create due to IAM eventual consistency issues. To mitigate this, add a global timeout for tests to execute 3 times before finally failing. > See https://jestjs.io/docs/jest-object#jestretrytimesnumretries-options --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent 2f0cfc4 commit 5bb90cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@aws-cdk-testing/cli-integ/lib/integ-test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export function integTest(
3535
): void {
3636
const runner = shouldSkip(name) ? test.skip : test;
3737

38+
// we're quite a bit of sporadic failures due to environmental causes.
39+
// lets retry 3 times to try and mitigate that.
40+
jest.retryTimes(3);
41+
3842
runner(name, async () => {
3943
const output = new MemoryStream();
4044

0 commit comments

Comments
 (0)