-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: fix flaky test-preload #6728
Conversation
Use `close` event rather than `exit` event to make sure all output has been received before checking assertions. Fixes: nodejs#6722
Stress test showing the test flaky on current master on CentOS 7 (64-bit): Stress test showing the test reliable on this PR's branch on CentOS 7 (64-bit): |
I can reproduce the problem locally on LGTM |
LGTM. I just noticed this locally and was trying to figure out what was up. :] |
LGTM |
LGTM, should we add comments for this, or is this expected? |
@Fishrock123 asked:
Not sure... According to the docs for
So, expected behavior, hooray! Except... On the other hand, the docs for
Multiple processes sharing stdio...we don't have that here, right? Hmmm... It might also be a manifestation of a known issue around |
Anyone else think it's a good idea to land this soon rather than giving it the 72 hours that it would require if it were non-trivial? I'm thinking about:
|
It fixes the CI and the related issue have been open for at least a day? Trivial enough to land imo. (Also it's not the weekend yet, 48 hours.) |
LGTM and go ahead, please :) |
It may also be worth noting that the behavior might change with the upcoming |
Use `close` event rather than `exit` event to make sure all output has been received before checking assertions. PR-URL: nodejs#6728 Fixes: nodejs#6722 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Landed in b5a75ba. |
Use `close` event rather than `exit` event to make sure all output has been received before checking assertions. PR-URL: #6728 Fixes: #6722 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Checklist
Affected core subsystem(s)
test
Description of change
Use
close
event rather thanexit
event to make sure all output hasbeen received before checking assertions.
Fixes: #6722
/cc @Fishrock123 @mhdawson
h/t @santigimeno