Unverified Commit e04dad29 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[test] Remove obsolete reference to `NEXT_TEST_SKIP_RETRY_MANIFEST` (#88434)

The manifest is not used anymore as of #76361.
parent 818be9ae
......@@ -57,12 +57,6 @@ const isTestJob = !!process.env.NEXT_TEST_JOB
const shouldContinueTestsOnError =
process.env.NEXT_TEST_CONTINUE_ON_ERROR === 'true'
// Check env to load a list of test paths to skip retry. This is to be used in conjunction with NEXT_TEST_CONTINUE_ON_ERROR,
// When try to run all of the tests regardless of pass / fail and want to skip retrying `known` failed tests.
// manifest should be a json file with an array of test paths.
const skipRetryTestManifest = process.env.NEXT_TEST_SKIP_RETRY_MANIFEST
? require(process.env.NEXT_TEST_SKIP_RETRY_MANIFEST)
: []
const KV_TIMINGS_KEY = 'test-timings'
const kvClient =
......@@ -671,24 +665,10 @@ ${ENDGROUP}`)
const runTest = async (/** @type {TestFile} */ test) => {
let passed = false
const shouldSkipRetries = skipRetryTestManifest.find((t) =>
t.includes(test.file)
)
const numRetries = shouldSkipRetries ? 0 : originalRetries
if (shouldSkipRetries) {
console.log(
`Skipping retry for ${test.file} due to skipRetryTestManifest`
)
}
for (let i = 0; i < numRetries + 1; i++) {
try {
console.log(`Starting ${test.file} retry ${i}/${numRetries}`)
const time = await runTestOnce(
test,
shouldSkipRetries || i === numRetries,
shouldSkipRetries || i > 0
)
const time = await runTestOnce(test, i === numRetries, i > 0)
timings.push({
file: test.file,
time,
......@@ -765,7 +745,6 @@ ${ENDGROUP}`)
const directorySemas = new Map()
const originalRetries = numRetries
const results = await Promise.allSettled(
tests.map(async (test) => {
const dirName = path.dirname(test.file)
......
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