-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Significantly slower tests in pipelines on Node 22 #7302
Comments
Can you check if fixes from #7285 work for you? |
That likely won't help as summary is disabled on CI. I would recommend to try narrowing down the exact Node versions where the slowness starts coming up and then check the Node release notes for that. Is it happening on |
@sheremet-va no, as @AriPerkkio correctly stated, summary is disabled on CI, although I managed to speed up my local tests by replacing @AriPerkkio good idea!! I made some tests and looks like the change happened with Node 22.12.0 - I guess enabling require(esm) by default might probably be the cause of it |
Hello @bakasmarius. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
@hi-ogawa I am not sure what kind of reproduction I could provide, could you elaborate, please? |
On our CI, there doesn't seem to be a significant gap between Node 20 vs 22. So at the moment, I don't think we have any idea what to tackle. We need a reproduction for the issue to be actionable and otherwise, we need to move on and prioritize other issues for now. |
Describe the bug
We have a NestJS backend project (~20k LOC) with 652 tests in 199 test files.
It's a mix of unit and integration tests (nothing fancy, just RabbitMQ and PostgreSQL).
We finally got a chance to upgrade from Node 20 to Node 22 but we noticed that tests are taking ~10 times more time to run on Bitbucket Pipelines (we use 8x size) after simply changing the image from
node:20.18.1-alpine3.21
tonode:22.13.0-alpine3.21
.We are also in the process of migrating from Bitbucket to Gitlab, the difference in Gitlab between node versions is only ~+35% (~2 minutes), but the total time is quite similar.
There is no significant difference between node versions when running tests locally on Windows or Mac laptops.
There is also no significant difference between running tests using
vitest
v2 or v3.I also tried running the tests on the newest Node 23, the numbers are basically the same as with Node 22.
Here is a table of time differences (Mac times are approximated as they came from my coworker):
Is this expected? Maybe someone else had the same experience and knows if there's something we can do to keep the numbers lower?
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: