Unverified Commit ca5e33d7 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[ci] Disable test-level retries during flakiness detection (#91261)

Co-authored-by: 's avatarCursor Agent <cursoragent@cursor.com>
parent 41ed440b
......@@ -160,6 +160,7 @@ async function main() {
NEXT_TEST_MODE: testMode,
NEXT_TEST_VERSION: nextTestVersion,
NEXT_EXTERNAL_TESTS_FILTERS,
NEXT_FLAKE_DETECTION: '1',
IS_TURBOPACK_TEST: '1',
TURBOPACK_BUILD:
testMode === 'start' || testMode === 'deploy' ? '1' : undefined,
......
......@@ -126,7 +126,7 @@ if (!e2eGlobal.__NEXT_E2E_TEST_CONFIG_PATCHED__) {
global.test = wrapJestTestFn(global.test) as jest.It
}
if (process.env.NEXT_TEST_CI) {
if (process.env.NEXT_TEST_CI && !process.env.NEXT_FLAKE_DETECTION) {
jest.retryTimes(1)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment