Slow test suite in Github Actions (long setup) #6223
Replies: 8 comments 4 replies
-
|
I also have a similar problem. On github actions: And locally on my laptop: The weird thing is that for all sub timings, github is actually faster! But the total duration is still much larger than locally. P.S. running the same test suite on google cloudbuild works well. I only see this problem when using github actions @nlarusstone Did you find a solution for this? |
Beta Was this translation helpful? Give feedback.
-
|
We're really suffering from the same problem, any solution for it? |
Beta Was this translation helpful? Give feedback.
-
|
same problem |
Beta Was this translation helpful? Give feedback.
-
|
facing the same issue (237 test files, 2541 tests). My local (Mac M1 pro, 10 core) In GHA (4core ubuntu machine) |
Beta Was this translation helpful? Give feedback.
-
|
Ya same here. It takes upwards of 5-7 times longer. I wonder if it has to do with the reporter? |
Beta Was this translation helpful? Give feedback.
-
|
Not sure if it's related but I'm seeing vitest effectively hang in GHA when running vitest browser mode with chromium, only firefox seems to work for my team's codebase. The weird thing is that I can't reproduce the issue at all outside of standard runners, even with https://github.com/nektos/act and the container image that is the most literal clone of official standard runners available, including setting memory constraints. Note: It's a private repo, and there's a lot of complexity, e.g. storybook, so I don't have reproductions, but I noticed this thread is missing reproduction steps or any narrowing of relevant packages so I thought I should give that a nudge either way! |
Beta Was this translation helpful? Give feedback.
-
|
We have >300 tests in one of our repos, many of them using fake timers. I've migrated them from Jest to Vitest (v4.0.18) and was fine with ~2m running the tests locally - but in GH Actions where the Jest tests took 3m, the Vitest ones took 11m. I've tried disabling coverage and fileParallelism, as well as turning up the maxConcurrency to 10. None of that worked, so we're not able to migrate to Vitest at the moment. 😢 I've created a new post with this content - as our issue is slightly different (no long setup - just slow everything): #9683 |
Beta Was this translation helpful? Give feedback.
-
|
I implemented Vitest sharding in my previous project, reducing test execution time from 20 minutes to 6 minutes. The GitHub Actions example is included in the Vitest documentation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm seeing really slow test runs on Github Actions. My test suite (~80 files, 500 tests) takes about 1.5min locally on my laptop, but over 12min on Github Actions:
I've tried threads, forks, vmThreads, and vmForks and nothing seems to make a significant difference.
I've noticed that the setup is strangely long, but I haven't been able to figure out where or why that is so slow.
Any advice on how I can profile this/speed it up?
Beta Was this translation helpful? Give feedback.
All reactions