Skip to content

Commit fd30797

Browse files
authored
fix(test): fix iast-esbuild timeouts causing intermittent CI failures (#7709)
* fix(test): fix iast-esbuild timeout causing intermittent CI failures The retry helper had a 60s inter-retry sleep combined with a 3s exec timeout. The 3s timeout is far too short for native package compilation (wasm-js-rewriter, native-iast-taint-tracking), causing unnecessary retries. Combined with a 60s mocha per-test timeout this created a near-certain race condition. Fix: reduce sleep 60s→5s; increase exec timeout 3s→60s.
1 parent f123e4b commit fd30797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration-tests/appsec/iast-esbuild.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const retry = async fn => {
1717
try {
1818
await fn()
1919
} catch {
20-
await setTimeout(60_000)
20+
await setTimeout(5_000)
2121
await fn()
2222
}
2323
}
@@ -38,7 +38,7 @@ describe('esbuild support for IAST', () => {
3838
await exec('npm init -y', { cwd: craftedNodeModulesDir })
3939
await retry(() => exec('npm install @datadog/wasm-js-rewriter @datadog/native-iast-taint-tracking', {
4040
cwd: craftedNodeModulesDir,
41-
timeout: 3e3,
41+
timeout: 60_000,
4242
}))
4343
})
4444

0 commit comments

Comments
 (0)