Skip to content

Commit

Permalink
Set max retries for build failures to zero (#69340)
Browse files Browse the repository at this point in the history
We generally a failure in a build is a sign of an actual problem.
JestWorker has a default retries of 3 which means for every failing
error we atempt it 4 times before giving up. This update changes the max
retires to 0 so that we abandon the build after the first failure.
  • Loading branch information
gnoff committed Aug 27, 2024
1 parent ec92a41 commit 4534458
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/src/lib/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class Worker {
NODE_OPTIONS: formatNodeOptions(nodeOptions),
} as any,
},
maxRetries: 0,
}) as JestWorker
restartPromise = new Promise(
(resolve) => (resolveRestartPromise = resolve)
Expand Down

0 comments on commit 4534458

Please sign in to comment.