Skip to content
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

npm_install runs three times on a clean build #2620

Closed
alexeagle opened this issue Apr 22, 2021 · 1 comment · Fixed by #2621
Closed

npm_install runs three times on a clean build #2620

alexeagle opened this issue Apr 22, 2021 · 1 comment · Fixed by #2621

Comments

@alexeagle
Copy link
Collaborator

alexeagle commented Apr 22, 2021

We run npm_install three times. For a client I'm working with, this makes a 75sec npm install operation require almost 250sec just to bazel query @npm//:all 😱

Repro

Run any npm_install repo rule, such as

t=$(mktemp -d); bazel --output_base=$t build @npm_node_patches//:all; echo "output_base $t"

and then look at the $t/command.profile.gz in chrome://tracing

and see horrifying result
Screen Shot 2021-04-22 at 10 29 13 AM

alexeagle added a commit to alexeagle/rules_nodejs that referenced this issue Apr 22, 2021
@alexeagle
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant