-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Tests are not running anymore with C8 on node 18.11 #45013
Comments
I'm on macOS 12.6 and not having a problem with [email protected] with Node.js 18.11.0. What version of c8 are you running? @bcoe Any suggestions for how @w3nl might determine if this is a Node.js bug, a c8 bug, or something else? |
Latest version of c8: 7.12 |
@Trott Here a test with a package in Github actions: https://github.com/hckrnews/objects/actions/runs/3255633842/jobs/5345156351
|
That's running on Ubuntu Linux, but you reported macOS in the Platform information in the original post. Are you seeing the problem on macOS too or just on Linux? |
On both platforms, on my local Mac and also in Linux in the GitHub action. FYI Originally found in a repo that isnt public (of the company i work), but in this public package it's the same issue. |
Here a test with and without c8: https://github.com/hckrnews/objects/actions/runs/3256091485/jobs/5346101809 |
I can reproduce this on macOS: const test = require('node:test');
test('test');
It looks like there hasn't been a new version of c8 in a few months so this is almost certainly a node bug. |
@nodejs/test_runner |
I will take a look soon, I am with a temp computer so might take more time. |
It looks like beb0520 introduced the problem, assuming I bisected correctly. |
More specifically, commenting out this |
this also reproduces when passing
@cjihrig - the if you have mentioned is there to make |
@MoLow do you think you'll be able to fix it before the next release? Is there anything I can help with? If we can't get it fixed, I think we should either revert the relevant changes, or reintroduce logic to make |
@cjihrig I'l try fixing before the next release, indeed. regarding the cluster module - I find the behavior there a little less friendly then #44520 - forcing a concurrency of 1 makes the inspector port be the port you specified, and in |
@cjihrig If you want to take a look - My plan was to figure out how to start a v8 inspector agent that does not expose/run a websocket server and enable that when |
PR-URL: #45055 Fixes: #45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #45055 Fixes: #45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
@RafaelGSS any idea when a new release of node will be published? 18.12 doesn't had the fix |
Probably next week or the one after. We'll update nodejs/Release#737 according |
PR-URL: #45055 Fixes: #45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#45055 Fixes: nodejs#45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs#45055 Fixes: nodejs#45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
Still not available in node 18.x, only in 19.x |
PR-URL: #45055 Fixes: #45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #45055 Fixes: #45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #45055 Fixes: #45013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
I have fixed my issue by moving to node:20 image in my github actions |
Version
18.11.0
Platform
Darwin CLC02DRB4AMD6R 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 29 04:31:06 PDT 2022; root:xnu-7195.141.39~2/RELEASE_X86_64 x86_64
Subsystem
Mac OS 11.7, zsh 5.8
What steps will reproduce the bug?
When i run
node --test src/
my tests are running.When i use C8
c8 node --test src/
, no tests are running, and no coverage.And I see an error:
.nycrc
Tested with node 18.10.0, and it was working
Has node 18.11.0 a breaking change or bug, or is it a C8 issue?
How often does it reproduce? Is there a required condition?
Only when combined with C8.
Doesnt work anymore since node 18.11.0
What is the expected behavior?
Like node 18.10.0, run the tests
What do you see instead?
ERROR: Coverage for lines (0%) does not meet global threshold (90%)
zsh: segmentation fault c8 node --test src/
Additional information
It looks like a breaking change in node 18.11.0, or is it a bug in c8?
The text was updated successfully, but these errors were encountered: