-
-
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
Jest takes indefinitely long to finish #11520
Comments
Update: It's happening again - this is where the output froze https://github.com/icecream17/solver/runs/2740077119 Cancelling this one though |
Update: Github Actions has now failed the ci after the 360 minutes. I'm now just going to say that it takes forever.pun Also, this isn't limited to github actions - running on a regular terminal also takes forever. Here's some modified repro steps:
I can now provide envinfo: System:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
Binaries:
Node: 16.2.0 - C:\Program Files\nodejs\node.EXE
npm: 7.15.1 - C:\Program Files\nodejs\npm.CMD
|
I've isolated which test is taking indefinitely long: commit that skips test: icecream17/solver@d803e9d#diff-20c86208e27d2f9659751b9824586495f177d8b41fc5a6a9c7ec0f5842788f90 line @ file @ commit: https://github.com/icecream17/solver/blob/703561b446e94faef36d8f1f0985456375f22420/src/App.test.tsx#L26 Interestingly, the loop finishes, but the test doesn't. (This isn't shown in the logs, just discovered while I was debugging) So maybe there's some weird shenanigans with promises or something. (will post more later) |
i got same long running tests but don't understand root cause |
Just my 2c.
If there is an unresolved Promise in some test, is Jest supposed to be able to ”kill it all” and continue? If so, it clearly doesn’t. That could be the title of the issue, but I’m frankly not sure what the intended behaviour is. What I’m intending to do about this, is to make the Promise aware of timing out, and finish itself. I hope this will ease the problem on my side. Providing the link, in case someone wants to follow up there:
Edit: It wasn't about promises, but the Firebase Admin SDK keeps Jest from returning to OS level, if any listeners are still active. #11464 |
The test now fails instead of taking forever Right now, here's what happens:
(Testing on newer code, icecream17/solver@9292971 but with
|
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
@icecream17 is this still a problem with the latest release of Jest? |
So it isn’t a problem or did you move to vitest? ;) |
it hasn't really happened again |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is quite a random event that happened. Or rather, the event is still happening. When the action finishesdefault github action timeout is 360 minutes, more information will be posted. This is just a pre-report.
🐛 Bug Report
The check before the event took 37 seconds: https://github.com/icecream17/solver/runs/2737435482
But this check lasted 360 minutes (at which point Github auto-cancelled the ci): https://github.com/icecream17/solver/runs/2738671791
To Reproduce
Steps to reproduce the behavior:
Note: I just made these steps up. However, all 3 jobs are taking super long, so this is probably reproducible
Update: See 3rd comment
Expected behavior
There should be a timeout error... but nothing is happening here.
Maybe my code has somehow evaded the default timeout, or there's an infinite loop.
Link to repl or repo (highly encouraged)
Since this is a random event, my repo isn't minimized or anything
Here's the commit link again: icecream17/solver@703561b
envinfo
There's 3 different operating systems. Also the tests are still running. Todo

The text was updated successfully, but these errors were encountered: