-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: investigate failing test-timers-unrefed-in-beforeexit #18047
Comments
I think the test is flaky the way it is written anyway, 1ms might just be too short to make sure the event loop iteration is finished before the timer runs. I guess increasing the timeout value to some much larger number should be okay, the test should still exit immediately. |
Interesting... there's really nothing that I can see that would trigger this to be failing all of a sudden. I'm adding a commit in the PR where I'm seeing the failure that extends the timeout a bit. We'll see what happens :-) |
Ugh. Ok, setting the timeout up to |
Are you sure that this is what you did? It passes for me irrespective the duration. The only way that could happen is if |
We should just be able to set it to |
@Fishrock123 I don't think that's necessary. The failure has to do with the http2 binding. |
You mean the HTTP2 binding is keeping the loop alive? What's the parent issue for this? |
Parent issue: #18020 (Please look for other instances of the same test failure in the future! 😉) |
Will close this as it does appear to be an issue in the referenced PR... though certainly not an obvious one. |
This is a legitimate bug although the test that it affects doesn't make the cause obvious (and |
Wow. Nice catch |
Scheduling a PerformanceGCCallback should not keep the loop alive but due to the recent switch to using the native SetImmediate method, it does. Go back to using uv_async_t and add a regression test. PR-URL: nodejs#18051 Fixes: nodejs#18047 Refs: nodejs#18020 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Scheduling a PerformanceGCCallback should not keep the loop alive but due to the recent switch to using the native SetImmediate method, it does. Go back to using uv_async_t and add a regression test. Backport-PR-URL: #18050 PR-URL: #18051 Fixes: #18047 Refs: #18020 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Scheduling a PerformanceGCCallback should not keep the loop alive but due to the recent switch to using the native SetImmediate method, it does. Go back to using uv_async_t and add a regression test. Backport-PR-URL: #18050 PR-URL: #18051 Fixes: #18047 Refs: #18020 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Scheduling a PerformanceGCCallback should not keep the loop alive but due to the recent switch to using the native SetImmediate method, it does. Go back to using uv_async_t and add a regression test. PR-URL: #18051 Fixes: #18047 Refs: #18020 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Scheduling a PerformanceGCCallback should not keep the loop alive but due to the recent switch to using the native SetImmediate method, it does. Go back to using uv_async_t and add a regression test. PR-URL: #18051 Fixes: #18047 Refs: #18020 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Scheduling a PerformanceGCCallback should not keep the loop alive but due to the recent switch to using the native SetImmediate method, it does. Go back to using uv_async_t and add a regression test. PR-URL: #18051 Fixes: #18047 Refs: #18020 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
parallel/test-timers-unrefed-in-beforeexit is suddenly failing in CI:
https://ci.nodejs.org/job/node-test-commit-linux/15434/nodes=alpine35-container-x64/console
@AndreasMadsen ... could this, by any chance, have anything to do with #18005?
The text was updated successfully, but these errors were encountered: