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
not ok 1945 sequential/test-timers-block-eventloop
---
duration_ms: 0.440
severity: fail
stack: |-
assert.js:45
throw new errors.AssertionError({
^
AssertionError [ERR_ASSERTION]: eventloop blocked!
at Timeout.mustNotCall [as _onTimeout] (/data/iojs/build/workspace/node-test-commit-linuxone/nodes/rhel72-s390x/test/common/index.js:571:12)
at ontimeout (timers.js:478:11)
at tryOnTimeout (timers.js:302:5)
at Timer.listOnTimeout (timers.js:262:5)
...
@zhangzifa - makes sense, the test seem to be walking on a ridge with high sensitivity on the timing of events that does not account into the environmental factors in the system. While we wait to hear from @nodejs/platform-s390 this experiment and the proposal thereon looks reasonable to me, thanks!
It seems like we are depending on the following fs.stat call to callback within 50 milliseconds. Otherwise the test fails.
fs.stat('./nonexistent.txt',(err,stats)=>{...}
Increasing the timeout is one way to fix this. @zhangzifa , could we stat something like /dev/zero which won't depend on the speed of the filesystem mount?
Activity
gireeshpunathil commentedon Oct 19, 2017
/cc @nodejs/platform-s390
gireeshpunathil commentedon Oct 19, 2017
I guess the reported error is on
RHELonS390zhangzifa commentedon Oct 19, 2017
@targos and @gireeshpunathil
I reproduce this at my laptop(thinkpad x240/ubuntu 16.04) with the following steps:
while(1);So I guess maybe the test server was busy when this happens.
Fix is easy: just change the
t3timeout to 200ms.zhangzifa commentedon Oct 19, 2017
With this fix, failures does not happen after 1000 times running. Is a PR needed?
gireeshpunathil commentedon Oct 19, 2017
@zhangzifa - makes sense, the test seem to be walking on a ridge with high sensitivity on the timing of events that does not account into the environmental factors in the system. While we wait to hear from @nodejs/platform-s390 this experiment and the proposal thereon looks reasonable to me, thanks!
mhdawson commentedon Oct 19, 2017
@jBarz can you take a look and comment.
jBarz commentedon Oct 20, 2017
It seems like we are depending on the following fs.stat call to callback within 50 milliseconds. Otherwise the test fails.
Increasing the timeout is one way to fix this.
@zhangzifa , could we stat something like
/dev/zerowhich won't depend on the speed of the filesystem mount?zhangzifa commentedon Oct 20, 2017
@jBarz I tested just now with
/dev/zero, anyway, it still fails occasionally when cpu is busy. Anyway, I will update the case to/dev/nonexistentgibfahn commentedon Oct 20, 2017
@zhangzifa a PR would be great.
zhangzifa commentedon Oct 20, 2017
@gibfahn 16314 is there now.
1 remaining item
test: update test-timers-block-eventloop.js
test: update test-timers-block-eventloop.js
test: update test-timers-block-eventloop.js
test: update test-timers-block-eventloop.js
test: update test-timers-block-eventloop.js
test: update test-timers-block-eventloop.js