Skip to content
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

flaky test parallel/test-worker-eventlooputil #35844

Closed
gireeshpunathil opened this issue Oct 28, 2020 · 3 comments
Closed

flaky test parallel/test-worker-eventlooputil #35844

gireeshpunathil opened this issue Oct 28, 2020 · 3 comments
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. test Issues and PRs related to the tests. worker Issues and PRs related to Worker support.

Comments

@gireeshpunathil
Copy link
Member

fail: https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd11-x64/36185/console
pass: https://ci.nodejs.org/job/node-test-commit-freebsd/nodes=freebsd11-x64/36184/console

11:49:30 not ok 2731 parallel/test-worker-eventlooputil
11:49:30   ---
11:49:30   duration_ms: 0.855
11:49:30   severity: fail
11:49:30   exitcode: 1
11:49:30   stack: |-
11:49:30     node:events:304
11:49:30           throw er; // Unhandled 'error' event
11:49:30           ^
11:49:30     
11:49:30     AssertionError [ERR_ASSERTION]: 266.02071380615234 <= 380.5895614624024
11:49:30         at MessagePort.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/parallel/test-worker-eventlooputil.js:107:12)
11:49:30         at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:355:41)
11:49:30         at MessagePort.exports.emitMessage (node:internal/per_context/messageport:18:26)
11:49:30     Emitted 'error' event on process instance at:
11:49:30         at emitUnhandledRejectionOrErr (node:internal/event_target:544:11)
11:49:30         at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:359:9)
11:49:30         at MessagePort.exports.emitMessage (node:internal/per_context/messageport:18:26) {
11:49:30       generatedMessage: false,
11:49:30       code: 'ERR_ASSERTION',
11:49:30       actual: false,
11:49:30       expected: true,
11:49:30       operator: '=='
11:49:30     }
11:49:30   ...

/cc @nodejs/workers @trevnorris

@gireeshpunathil gireeshpunathil added flaky-test Issues and PRs related to the tests with unstable failures on the CI. worker Issues and PRs related to Worker support. labels Oct 28, 2020
@gireeshpunathil gireeshpunathil added the test Issues and PRs related to the tests. label Oct 28, 2020
@gireeshpunathil
Copy link
Member Author

I am yet to fully understand the logic at the assertion site, just wondering in:

assert.ok(idleActive(wElu) > idleActive(w2),

is wElu actually w? I ask this because w is unused in the entire section:

function checkWorkerActive() {
const w = workerELU();
metricsCh.port2.postMessage({ cmd: 'spin', dur: 50 });
metricsCh.port2.once('message', (wElu) => {
const w2 = workerELU(w);
assert.ok(w2.active >= 50, `${w2.active} < 50`);
assert.ok(idleActive(wElu) > idleActive(w2),
`${idleActive(wElu)} <= ${idleActive(w2)}`);
metricsCh.port2.postMessage({ cmd: 'close' });
});
}

@Trott
Copy link
Member

Trott commented Oct 30, 2020

This test is failing a lot in CI.

https://ci.nodejs.org/job/node-test-commit-freebsd/36245/nodes=freebsd11-x64/console on test-digitalocean-freebsd11-x64-2

00:19:11 not ok 2731 parallel/test-worker-eventlooputil
00:19:11   ---
00:19:11   duration_ms: 0.777
00:19:11   severity: fail
00:19:11   exitcode: 1
00:19:11   stack: |-
00:19:11     node:events:304
00:19:11           throw er; // Unhandled 'error' event
00:19:11           ^
00:19:11     
00:19:11     AssertionError [ERR_ASSERTION]: 173.09381866455078 <= 272.75743865966797
00:19:11         at MessagePort.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/parallel/test-worker-eventlooputil.js:107:12)
00:19:11         at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:367:41)
00:19:11         at MessagePort.exports.emitMessage (node:internal/per_context/messageport:18:26)
00:19:11     Emitted 'error' event on process instance at:
00:19:11         at emitUnhandledRejectionOrErr (node:internal/event_target:558:11)
00:19:11         at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:371:9)
00:19:11         at MessagePort.exports.emitMessage (node:internal/per_context/messageport:18:26) {
00:19:11       generatedMessage: false,
00:19:11       code: 'ERR_ASSERTION',
00:19:11       actual: false,
00:19:11       expected: true,
00:19:11       operator: '=='
00:19:11     }
00:19:11   ...

@gireeshpunathil
Copy link
Member Author

looks like, at least the failing site is consistent.

MylesBorins added a commit to MylesBorins/node that referenced this issue Oct 30, 2020
This is consistently failing in CI right now. Lets mark it flaky
while we figure out what is going on.

Refs: nodejs#35844
nodejs-github-bot pushed a commit that referenced this issue Oct 31, 2020
This is consistently failing in CI right now. Lets mark it flaky
while we figure out what is going on.

Refs: #35844

PR-URL: #35886
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
targos pushed a commit that referenced this issue Nov 3, 2020
This is consistently failing in CI right now. Lets mark it flaky
while we figure out what is going on.

Refs: #35844

PR-URL: #35886
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
targos pushed a commit that referenced this issue Nov 4, 2020
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: #35891
Fixes: #35844
Refs: #35886
Refs: #35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this issue Dec 8, 2020
This is consistently failing in CI right now. Lets mark it flaky
while we figure out what is going on.

Refs: #35844

PR-URL: #35886
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
BethGriggs pushed a commit that referenced this issue Dec 10, 2020
This is consistently failing in CI right now. Lets mark it flaky
while we figure out what is going on.

Refs: #35844

PR-URL: #35886
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
BethGriggs pushed a commit that referenced this issue Dec 15, 2020
This is consistently failing in CI right now. Lets mark it flaky
while we figure out what is going on.

Refs: #35844

PR-URL: #35886
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
juanarbol pushed a commit to juanarbol/node that referenced this issue Feb 1, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
juanarbol pushed a commit to juanarbol/node that referenced this issue Feb 1, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37163
juanarbol pushed a commit to juanarbol/node that referenced this issue Feb 10, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
richardlau pushed a commit that referenced this issue Mar 2, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: #35891
Fixes: #35844
Refs: #35886
Refs: #35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: #37163
juanarbol pushed a commit to juanarbol/node that referenced this issue Mar 2, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
juanarbol pushed a commit to juanarbol/node that referenced this issue Mar 2, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
juanarbol pushed a commit to juanarbol/node that referenced this issue Mar 8, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
juanarbol pushed a commit to juanarbol/node that referenced this issue Mar 8, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
richardlau pushed a commit to juanarbol/node that referenced this issue Mar 16, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: nodejs#35891
Fixes: nodejs#35844
Refs: nodejs#35886
Refs: nodejs#35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: nodejs#37165
MylesBorins pushed a commit that referenced this issue Apr 6, 2021
The active worker check compared the time from sending message till
response arrived from worker with the complete time the worker was
running till it responses to the spin request.

If sending back the message is slow for some reason the test fails.

Adapt the test to compare the time seen inside the worker with the
time read from main thread.

PR-URL: #35891
Fixes: #35844
Refs: #35886
Refs: #35664
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Backport-PR-URL: #37163
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. test Issues and PRs related to the tests. worker Issues and PRs related to Worker support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants