-
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-process-fatal-execption-tick.js #18461
Conversation
Sample CI failure: https://ci.nodejs.org/job/node-test-commit-linux/15941/nodes=fedora24/console not ok 1242 parallel/test-process-fatal-exception-tick
---
duration_ms: 0.294
severity: fail
stack: |-
assert.js:72
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: 1 strictEqual 2
at process.nextTick (/home/iojs/build/workspace/node-test-commit-linux/nodes/fedora24/test/parallel/test-process-fatal-exception-tick.js:19:33)
at process._tickCallback (internal/process/next_tick.js:89:11)
... |
How to replicate locally: $ tools/test.py -j 96 --repeat 192 test/parallel/test-process-fatal-exception-tick.js
=== release test-process-fatal-exception-tick ===
Path: parallel/test-process-fatal-exception-tick
assert.js:72
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: 1 strictEqual 2
at process.nextTick (/Users/trott/io.js/test/parallel/test-process-fatal-exception-tick.js:19:33)
at process._tickCallback (internal/process/next_tick.js:89:11)
Command: out/Release/node /Users/trott/io.js/test/parallel/test-process-fatal-exception-tick.js
[00:07|% 100|+ 191|- 1]: Done
$ |
@Trott could you instead remove line 21 and replace line 23 with (Would prefer as few sequential tests as possible.) |
I can't make it fail even with I'm fine with using |
It calls into C++ and libuv so it's definitely different semantics from using |
Use common.busyLoop() which happens to make the test robust.
74e48f4
to
f531386
Compare
OK, we'll try it that way. Used |
OMG! First yellow CI in dozens of runs! Let's land this thing! :-D @nodejs/testing |
Use common.busyLoop() which happens to make the test robust. PR-URL: nodejs#18461 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Landed in a025723 |
Test doesn't exist on v9.x, setting as don't land |
Use common.busyLoop() which happens to make the test robust. PR-URL: nodejs#18461 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
test-process-fatal-execption-tick.js is sensitive to load. On a loaded
machine, it will fail. Move it to sequential so that it does not compete
for resources.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test