-
Notifications
You must be signed in to change notification settings - Fork 519
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
Flakiness caused by symlink_node_modules #2708
Comments
I am seeing this on Linux machines too |
Also flaky on mac, observing same behavior |
My guess is that we should deprecate and abandon this feature. I recently added a warning on it about this known incorrectness, https://github.com/bazelbuild/rules_nodejs/pull/2946/files |
This issue has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went 30 days without any activity since it was labeled "Can Close?" |
This may be the same issue as #2014, I'm not sure. On our Windows CI machines, in a build with multiple
yarn_install
repos, there appears to be some sort of race condition, as ~half our builds fail with errors like:Where some several thousand input files are missing from
node_modules
. I haven't seen this happen on our Mac machines.Setting
symlink_node_modules = False
on all ouryarn_install
s seems to solve this issue. Perhaps there is some interplay between multiple yarn repos, sandboxing, and/or and bazelbuild/bazel#8487. Nothing on our end would be deleting/modifying the contents of anything in node_modules. I noticed a similar issue alluded to in one of your example packages, where you've used the same workaround:https://github.com/bazelbuild/rules_nodejs/blob/90dc2c2f6f7adf46e051e4c8e3c050279b36f45d/examples/angular_bazel_architect/WORKSPACE#L28-L32
As it would be difficult to share a repro, I'm just opening this issue as suggestion for an expert to proofread the implementation of
symlink_node_modules
for sanity. Especially under various setups: mac/windows, sandboxing on/off, multiple yarn_installs in the same build, etc.The text was updated successfully, but these errors were encountered: