test: reduce flakiness of test-esm-loader-hooks#49105
test: reduce flakiness of test-esm-loader-hooks#49105nodejs-github-bot merged 3 commits intonodejs:mainfrom
test-esm-loader-hooks#49105Conversation
|
Stress test CI: https://ci.nodejs.org/job/node-stress-single-test/411/ |
| console.log('register', result); | ||
|
|
||
| await import('node:os'); | ||
| await setTimeout(99); // delay to limit flakiness |
There was a problem hiding this comment.
Not really, race conditions are inherent to cross thread communication I think
There was a problem hiding this comment.
Wouldn't a user have to do this too? If so, this feels like a legit bug.
There was a problem hiding this comment.
We've known this since we started working on off-threading the loader hooks, it's documented here:
Lines 740 to 743 in 6ad8318
There was a problem hiding this comment.
OH! Sorry, this is for a console log. Sorry, yes.
Wouldn't it be better to use something not console log then?
There was a problem hiding this comment.
Maybe process._rawDebug or fs.writeFileSync(1?
|
The stress test reveals that |
This comment was marked as outdated.
This comment was marked as outdated.
|
Stress test CI: https://ci.nodejs.org/job/node-stress-single-test/413/ |
|
Fast-track has been requested by @aduh95. Please 👍 to approve. |
|
Landed in e68e359 |
PR-URL: nodejs#49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#49105 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #49105 Backport-PR-URL: #50669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs/node#49105 Backport-PR-URL: nodejs/node#50669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs/node#49105 Backport-PR-URL: nodejs/node#50669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
No description provided.