-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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 test-watch-mode #45585
test: fix test-watch-mode #45585
Conversation
41440ce
to
a81c9cc
Compare
Hi, is there something I can do to help move this forward? I've seen Test ASan failing, but it seems unrelated to my changes. |
a81c9cc
to
43e9046
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Landed in 8950240 |
@MoLow Did this indeed fix the flakiness of the test? node/test/sequential/sequential.status Lines 10 to 12 in c3537ae
But the referenced issue #44898 has been closed following this PR. |
I am not sure what is the way to verify that, it does not appear in the latest reports in https://github.com/nodejs/reliability |
This PR fixes flakiness in watch mode tests in
test/sequential/test-watch-mode.mjs
. The changes made introduce a basic synchronization between restarting the process (rewriting the file) and its execution. Previously, it was possible to restart the process while it was still executing which caused logs to appear in an unexpected order, thus failing the assertions in various test cases.With these changes, one problem still persists. Rarely, in less than 1% of runs, logs from the start of the process, until the first restart are missing. Eg. instead of getting
test gets
This behavior seems to be random, and by the looks of it, it's related to watch mode in a more general way, not directly related to these tests. It should probably be addressed in a separate issue and PR.
Refs: #44898