Repository navigation
Closed
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.timersIssues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().
Description
- Test: wpt/test-timers
- Platform: freebsd11-x64
- Console Output:
00:23:47 not ok 2832 wpt/test-timers
00:23:48 ---
00:23:48 duration_ms: 0.973
00:23:48 severity: fail
00:23:48 exitcode: 1
00:23:48 stack: |-
00:23:48 ---- type-long-settimeout.any.js ----
00:23:48 [PASS] Untitled
00:23:48 ---- negative-settimeout.any.js ----
00:23:48 [PASS] Untitled
00:23:48 [UNEXPECTED_FAILURE][UNCAUGHT] evaluation in WPTRunner.runJsTests()
00:23:48 assert_unreached: Reached unreachable code
00:23:48 {
00:23:48 message: 'assert_unreached: Reached unreachable code',
00:23:48 stack: ' at listOnTimeout (node:internal/timers:557:17)\n' +
00:23:48 ' at processTimers (node:internal/timers:500:7)'
00:23:48 }
00:23:48 Command: /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/out/Release/node /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/wpt/test-timers.js type-long-setinterval.any.js
00:23:48
00:23:48 ---- type-long-setinterval.any.js ----
00:23:48 [PASS] Untitled
00:23:48 ---- missing-timeout-setinterval.any.js ----
00:23:48 [PASS] Calling setInterval with no interval should be the same as if called with 0 interval
00:23:48 ---- missing-timeout-setinterval.any.js ----
00:23:48 [PASS] Calling setInterval with undefined interval should be the same as if called with 0 interval
00:23:48 ---- negative-setinterval.any.js ----
00:23:48 [PASS] Untitled
00:23:48 ---- cleartimeout-clearinterval.any.js ----
00:23:48 [PASS] Clear timeout with clearInterval
00:23:48 ---- cleartimeout-clearinterval.any.js ----
00:23:48 [PASS] Clear interval with clearTimeout
00:23:48 {
00:23:48 'type-long-setinterval.any.js': {
00:23:48 fail: { unexpected: [ 'assert_unreached: Reached unreachable code' ] }
00:23:48 }
00:23:48 }
00:23:48 Ran 6/6 tests, 0 skipped, 5 passed, 0 expected failures, 1 unexpected failures
00:23:48 (node:22536) TimeoutOverflowWarning: 4294967296 does not fit into a 32-bit signed integer.
00:23:48 Timeout duration was set to 1.
00:23:48 (Use `node --trace-warnings ...` to show where the warning was created)
00:23:48 (node:22536) TimeoutOverflowWarning: 4294967296 does not fit into a 32-bit signed integer.
00:23:48 Timeout duration was set to 1.
00:23:48 (Use `node --trace-warnings ...` to show where the warning was created)
00:23:48 /usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/common/wpt.js:445
00:23:48 throw new Error(
00:23:48 ^
00:23:48
00:23:48 Error: Found 1 unexpected failures. Consider updating test/wpt/status/html/webappapis/timers.json for these files:
00:23:48 type-long-setinterval.any.js
00:23:48 at process.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/common/wpt.js:445:15)
00:23:48 at process.emit (node:events:390:22)
00:23:48 ...
Metadata
Metadata
Assignees
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.timersIssues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().
Activity
Trott commentedon Mar 9, 2021
@targos @joyeecheung
targos commentedon Mar 9, 2021
I thought maybe it could be a race condition under load after #37626 and #37627, but I cannot reproduce it on my computer:
targos commentedon Mar 9, 2021
🤦🏻 I ran the wrong test...
I reproduce easily with
test-timerstargos commentedon Mar 9, 2021
It's definitely a timing issue. We get the worker's
errorevent before themessagethat indicates that the test passed.targos commentedon Mar 9, 2021
I thought about calling
receiveMessageOnPortin the error handler to synchronously get the pending message(s) but it doesn't seem possible to access the worker's port?targos commentedon Mar 9, 2021
I think the main issue is that we have double parallelization with the WPT.
node/test/wpt/testcfg.py
Line 6 in 16151be
Trott commentedon Mar 10, 2021
Happened again today: https://ci.nodejs.org/job/node-test-commit-osx/39393/nodes=osx1014/console
Seems like a good solution would be to remove the parallelization in testcfg.py?
test: address flaky wpt/test-timers
test: address flaky wpt/test-timers