You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't look like it is related to async hooks.
A child process is spawned but the close event of child process doesn't provide the exit code.
Could be also some issue in child process on aix or some temp resource limitation that child process couldn't be started. properly.
shows that initially the signalCode and exitCode properties on the child process object are both set to null.
On exit:
if signalCode is truthy
just the signalCode property is set with the new value
and the exitCode property remains null
otherwise
just the exitCode property is set with the new value
and the signalCode property remains null
The child process is getting killed with a signal, that's why the 'close' callback is called with a null code and a truthy signal (we don't know what value this holds because it's not being logged). I think the test should log the signal and continue the assertions for now.
This flake was appearing in the reliability report 2-4 times daily from 2025-05-23 - nodejs/reliability#1209 till 2025-06-01 nodejs/reliability#1218. The PR landed on 2025-05-29 and after the PRs where CI was being run on included this change, the flake went away in all recent reliability reports.
Activity
RaisinTen commentedon May 27, 2025
cc @nodejs/async_hooks
Flarna commentedon May 27, 2025
This doesn't look like it is related to async hooks.
A child process is spawned but the close event of child process doesn't provide the exit code.
Could be also some issue in child process on aix or some temp resource limitation that child process couldn't be started. properly.
RaisinTen commentedon May 27, 2025
The child_process implementation in
node/lib/internal/child_process.js
Lines 262 to 275 in c969649
On exit:
The child process is getting killed with a signal, that's why the 'close' callback is called with a null code and a truthy signal (we don't know what value this holds because it's not being logged). I think the test should log the signal and continue the assertions for now.
test: account for truthy signal in flaky async_hooks tests
RaisinTen commentedon May 27, 2025
Submitted a PR: #58478
doc: explain child_process code and signal null values everywhere
RaisinTen commentedon May 28, 2025
I have also created a PR to update the child process docs with this info - #58479
test: account for truthy signal in flaky async_hooks tests
doc: explain child_process code and signal null values everywhere
test: account for truthy signal in flaky async_hooks tests
doc: explain child_process code and signal null values everywhere
RaisinTen commentedon Jun 3, 2025
I can confirm that #58478 has fixed this issue.
This flake was appearing in the reliability report 2-4 times daily from 2025-05-23 - nodejs/reliability#1209 till 2025-06-01 nodejs/reliability#1218. The PR landed on 2025-05-29 and after the PRs where CI was being run on included this change, the flake went away in all recent reliability reports.
test: account for truthy signal in flaky async_hooks tests
doc: explain child_process code and signal null values everywhere
test: account for truthy signal in flaky async_hooks tests
test: account for truthy signal in flaky async_hooks tests
test: account for truthy signal in flaky async_hooks tests