Commit 6fc90e44272 for nodejs
commit 6fc90e442720bd612a25a5de47f8e587ad1d1cf8
Author: Filip Skokan <panva.ip@gmail.com>
Date: Wed Oct 14 11:37:36 2026 +0200
test: retry unready process timeout reports
Retry attempts that did not reach the blocked Worker before parsing
their report. A timeout during startup can force exit before the report
is complete. Keep the report and exit assertions once startup is ready.
Refs: https://github.com/nodejs/reliability/issues/1687
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
PR-URL: https://github.com/nodejs/node/pull/66722
Refs: https://github.com/nodejs/reliability/issues/1686
Refs: https://github.com/nodejs/reliability/issues/1690
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Guilherme Araújo <arauujogui@gmail.com>
diff --git a/test/report/test-report-process-timeout-worker.js b/test/report/test-report-process-timeout-worker.js
index a42e2513ccb..d7fe24a7a0d 100644
--- a/test/report/test-report-process-timeout-worker.js
+++ b/test/report/test-report-process-timeout-worker.js
@@ -31,6 +31,12 @@ for (let timeout = common.platformTimeout(1000); ; timeout *= 2) {
marker,
], { cwd: tmpdir.path, encoding: 'utf8' });
+ // If startup did not reach the blocked Worker, the watchdog may have
+ // interrupted report generation too. Retry before reading that report.
+ if (!fs.existsSync(marker) && timeout < common.platformTimeout(16000)) {
+ continue;
+ }
+
const reports = helper.findReports(child.pid, tmpdir.path);
assert.strictEqual(reports.length, 1, child.stderr);
helper.validate(reports[0], [