-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Nx + Next.js E2E target fails on GitHub Actions and creates "ghost" node processes #17395
Comments
at least partially related: vercel/next.js#45508 can confirm locally when running e2e jest-workers are orphaned, but running serve they are correctly killed. unsure why as the |
Hey I dont this jest-worker has anything to do with testing @barbados-clemens |
@BuddhiAbeyratne the jest-workers are used when running the dev server for background processing, you can see them spin up when running serve. If they aren't supposed to be used then that would explain why they are probably sticking around when the dev server stops. |
@BuddhiAbeyratne Since this is a Next.js CLI issue and not an Nx one, I suggest watching that issue and adding additional info if you have any to provide. For current workarounds, you can run I think the timeout issue is related if the machine is running out of resources it could hang. |
Going to close this issue, but if you think it is an Nx problem please re-open. |
I've just conducted another test: I updated Nx from version 16.2.1 (where this type of issue doesn't occur) to the latest version, 16.4.0, while retaining the same version of Next. Upon executing the I'm currently at a standstill with this issue, and I believe it's significant, given that Nx officially supports the Next framework. What steps can I take to assist in resolving this problem? |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
After updating Nx and NextJS to the latest versions, E2E tests consistently timeout on Github Actions. Also, "ghost" node processes persist post E2E tests, causing CPU usage spikes.
Expected Behavior
E2E tests should run successfully on Github Actions, without any lingering "ghost" processes causing CPU usage spikes.
GitHub Repo
No response
Steps to Reproduce
To check Github Actions failure:
nx affected --target e2e --parallel 1 --configuration e2e
in workflow, e2e does not run successfully because the application does not go up in time.To check "ghost" node processes:
nx affected --target e2e --parallel 1 --configuration e2e
on the local environment.Nx Report
Failure Logs
Operating System
Additional Information
I'm having issues with my Nx monorepo when running E2E tests on GitHub Actions. They consistently timeout on GitHub Actions but work fine locally.
Moreover, each E2E run spawns hanging node processes that do not terminate, increasing CPU usage significantly and slowing down my machine. These "ghost" processes appear only when E2E tests are run and persist even after the test execution ends.
I suspect these processes could be affecting the E2E test execution on GitHub Actions by consuming excessive resources.
Reference
Here's the link to the Slack thread where we began discussing this issue:
https://nrwlcommunity.slack.com/archives/C015WMB2A8P/p1685603562714809
Images
The text was updated successfully, but these errors were encountered: