Repository navigation
test-error-serdes times out #52630
Description
Activity
- addedflaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.
on Apr 21, 2024 - addedlinuxIssues and PRs related to the Linux platform.Issues and PRs related to the Linux platform.
on Apr 21, 2024 It's possible V8 12.3 introduced it.
I think I'm able to reproduce on my mac, but I got one timeout out of 1000 runs, which makes it difficult to debug.
I've gotten the timeout on several CI runs for #52509, so it's not system specific.
- removedlinuxIssues and PRs related to the Linux platform.Issues and PRs related to the Linux platform.
on Apr 22, 2024 Report from nodejs/reliability#842
Example
not ok 1397 parallel/test-error-serdes --- duration_ms: 120079.51800 severity: fail exitcode: -15 stack: |- timeout ...On container builds where this does pass, the test finishes in 3-5 seconds, so this is likely a bug with V8.
Looking at other recent flakes that are at the top of the list, it seems the V8 update introduced quite a lot of timeouts, it could be some kind of deadlock.
Another clue - I don't see this flaking in the V8 CI (Linux x64 only), so it should be our bug.
Not sure what's the root cause, but it could be that the update made exceeding the max stack size less stable.
node/test/parallel/test-error-serdes.js
Lines 88 to 93 in 708bffa
let e = cycle(new ErrorWithCyclicCause('Error with cause')); while (e.cause) { e = e.cause; depth++; } assert(depth > 1);
When I run this part with Node.jsv20.12.1, I observe pretty much reproducibledepth === 1542.
When I run it with currentmainbuild, the cycle ends with fluctuating numbers like1717,1649, etc.
Increasing stack size leads to exponential increase in time, e.g.node --stack-size=4096 test/parallel/test-error-serdes.jseasily exceeds 120 seconds for me (ulimit -sis8192).
Maybe under some "lucky" conditions this cycle can go abnormally deep?- added 2 commits that reference this issue
on Apr 28, 2024 - added 2 commits that reference this issue
on May 2, 2024 - added a commit that references this issue
on Jun 20, 2024 - added a commit that references this issue
on Sep 11, 2024 - added 3 commits that reference this issue
on Sep 12, 2024 github-actions commented
on May 22, 2026 on May 22, 2026 – with GitHub ActionsContributorMore actionsThis issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on May 22, 2026 github-actions commented
on Jun 21, 2026 on Jun 21, 2026 – with GitHub ActionsContributorMore actionsThis issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.
Test
test-error-serdes
Platform
Linux x64
Console output
Build links
Additional information
No response