-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: v8 coverage lowers when more tests are executed #14766
Comments
Hi |
Yep, confirmed 20.9.0 -> 20.10.0 causes it. Raised nodejs/node#51251 |
+1 also getting code coverage failure after updating to 20.10.0. |
Verified that commenting out both lines fixes the issue. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Still an issue. |
still an issue |
Still a issue and same problem with the upgrade |
Seems it can be fixed with |
This is still an issue. Is there any progress? |
I posted this originally on: nodejs/node#51251 Reposting here in case it's helpful... I have been facing the same issue: my coverage report was 100% with 20.9.0, but as of 20.10.0, it now reports less than 100% coverage and somewhat randomly flags lines not covered. I noticed that I get the same coverage reporting flakiness with 18.20.2 (I initially saw this issue when my GitHub actions started to fail). Coverage works fine with 18.19.1. So there seems to be a change between 18.19.1 and 18.20.0 that causes the issue as well as between 20.9.0 to 20.10.0. This is now causing my GitHub CI/CD actions to fail since GitHub is using 18.20.2. |
@kmccammon - we are facing exactly the same issue. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Can't call it closed stale without a triage... |
Agreed, I'm stuck on node version 18.19.1 until this coverage issue is resolved. |
I think we can safely say this project is abandoned: A ton of them are auto-closed without a single comment. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
. |
Also stuck on node version 18.19 or 20.9 until this coverage issue is resolved. |
Can confirm still happening; For those of you whom don't need to
|
Running with more than one worker did not fix the problem for me. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
. |
also hit this. certainly not stale ! Adding the comments worked for me |
@SimenB any chance to pick this up? |
not stale |
Hi, |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
. |
I think the render is overlaping |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
🤷 |
do we have any workaround for this? This is blocking us heavily. @SimenB |
See nodejs/node#51251 (comment) for an explanation of the behavior change in Node. Correct resolution may require work from the Node side, but the workaround is to, after starting a session with |
Version
29.7.0
Steps to reproduce
npm install
npm test -- --runInBand wrapped.test.js
-> tests pass, coverage 100%npm test -- --runInBand
-> tests pass, coverage missing linesExpected behavior
Everything passes and coverage is better or equivalent to when only a single test is executed.
Actual behavior
File that is covered by a single test file to 100% loses coverage when an additional test is executed. The additional test calls the original function.
Additional context
Anything relevant changed in the repro will make it work correctly. So:
v8
->babel
✅<
->>
) ✅We used a
testSequencer
to consistently reproduce the issue, otherwise it was flaky!--runInBand
✅We also used this to consistently reproduce the issue, otherwise it was flaky!
Environment
System: OS: macOS 14.1.2 CPU: (12) arm64 Apple M2 Pro or (10) arm64 Apple M1 Pro Binaries: Node: 20.10.0 - /opt/homebrew/opt/node@20/bin/node npm: 10.2.3 - /opt/homebrew/opt/node@20/bin/npm npmPackages: jest: ^29.7.0 => 29.7.0 Also on github actions ubuntu-latest (so Ubuntu 22.04 and x64).
The text was updated successfully, but these errors were encountered: