-
Notifications
You must be signed in to change notification settings - Fork 2.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
Building apps in parallel fails #16337
Comments
@wimme I have also encountered a similar problem, have you found a solution to the problem? |
It is possible for users to define multiple duplicate outputs. This is leading to fs related issues like `ENOTEMPTY: directory not empty, rmdir`. The reason this occurs is that the src will tried to be copied to the cached directory in parallel for all output paths and is the reason why these errors are seen sporadically. By ensuring output paths are unique, we only ever copy one path which resolves this issue. fixes nrwl#17277, #nrwl#16337
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
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
Since upgrading our monorepo from Nx 14.5.10 to 15.9.2 we experience build issues on our CI build pipeline:
First it builds all Angular publishable libs sequentially by taking dependecies into account. This still works as expected, also the build output is as expected.
Secondly, it builds the apps in parallel. Since the upgrade, this now fails at random times, throwing random error messages (these are 3 examples from separate runs):
It crashes on dependent libs, although (and I verified it) these libs have been build in the first step, so they should be in the Nx cache. I think it rebuilds them for some reason, which causes now issues when building the apps in parallel, because multiple apps depend on the same libs.
Expected Behavior
After building all publishable libs, building apps in parallel shouldn't give issues (used to work in Nx 14 and older).
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: