Skip to content

Commit 5eaffe4

Browse files
authored
build(test): undo automatic retries. (#6045)
## Problem Some tests appear to be hanging indefinitely with the new retry system. Example: https://github.com/aws/aws-toolkit-vscode/actions/runs/11899590502/job/33158551534?pr=6037 ## Solution Rollback changes until proper solution is found. --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 87ea4d9 commit 5eaffe4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

packages/core/src/test/testRunner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function runTests(
2222
testFolder: string | string[],
2323
extensionId: string,
2424
initTests: string[] = [],
25-
options?: { retries?: number; testFiles?: string[] }
25+
options?: { testFiles?: string[] }
2626
): Promise<void> {
2727
if (!process.env['AWS_TOOLKIT_AUTOMATION']) {
2828
throw new Error('Expected the "AWS_TOOLKIT_AUTOMATION" environment variable to be set for tests.')
@@ -79,7 +79,6 @@ export async function runTests(
7979
mochaFile: outputFile,
8080
},
8181
},
82-
retries: options?.retries ?? 0,
8382
timeout: 0,
8483
})
8584

packages/toolkit/test/unit/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import { runTests } from 'aws-core-vscode/test'
77
import { VSCODE_EXTENSION_ID } from 'aws-core-vscode/utils'
88

99
export function run(): Promise<void> {
10-
return runTests(
11-
process.env.TEST_DIR ?? ['test/unit', '../../core/dist/src/test'],
12-
VSCODE_EXTENSION_ID.awstoolkit,
13-
['../../core/dist/src/test/globalSetup.test.ts'],
14-
{ retries: 3 }
15-
)
10+
return runTests(process.env.TEST_DIR ?? ['test/unit', '../../core/dist/src/test'], VSCODE_EXTENSION_ID.awstoolkit, [
11+
'../../core/dist/src/test/globalSetup.test.ts',
12+
])
1613
}

0 commit comments

Comments
 (0)