-
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
nx migrate randomly fails #17588
Comments
same to me in recent updates, My guess that it relates to windows locking some files during a parallel fetching alternatively can be since it fetches the same packages several times Fetching [email protected] To workaround I migrate all @nx/ dependencies one by one and run the migration file once at the end. |
how about set env variable |
Afaict
It fails because of some race condition in the Why closing the issue? Even if Btw |
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
yarn nx migrate
randomly fails, most likely due to some race conditions. It's always some FS error like ENOENT on a random file in yarn cache. I am absolutely positive it's random. You can run it over and over until it eventually succeeds, without making any changes whatsoever. Deleting caches or node_modules has no effect on this. The problem is it takes quite long before it fails and also it tends to fail more often than not.It's a long standing issue, which me and my colleagues have been experiencing for as long as we are using nx - versions 14,15,16.
Examples of my last 2 attemps (see below for full log):
Expected Behavior
yarn nx migrate
doesn't fail randomly.GitHub Repo
No response
Steps to Reproduce
yarn nx migrate latest
Nx Report
Failure Logs
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: