-
Notifications
You must be signed in to change notification settings - Fork 30k
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
[WIP] tools: s/npm install/npm ci #21538
Conversation
`npm ci` is substantially faster than `npm install`.
Before w/ hot cache
after w/ cold cache
After w/ hot cache
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove --no-package-lock
now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with @targos's comment addressed.
It would appear that this PR may actually slow things down based on how things are currently set up. I noticed when testing on master that we are currently calling to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to update vcbuild.bat
too. (You can dismiss this review once that's happened.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A second blocker on this is that make tools/doc/node_modules/js-yaml/package.json
will pollute checked-in files currently. (We float patches on the marked
module--something we probably started doing only after this PR was opened already--anyway, that make`` command will overwrite those patches if we use
npm ci. This will be a non-issue if/when we move to
remarkinstead of
marked`. There's a PR for that.)
So if someone using a source tarball runs make doc-only
, it will overwrite marked
with an unpatched version and produce a broken all.html
file. Subsequent runs will have breakage in other doc files too. 😱
Because of this, I'm going to label this one blocked
.
@Trott should we perhaps close this? |
@MylesBorins My second objection has been fixed (I think by work done by @rubys). So it's just about This still might be worth closing (or at least modifying) because there is now a |
@MylesBorins I've followed up on this in #22399 |
Completed in d320511 |
npm ci
is substantially faster thannpm install
.Can't see why we wouldn't want to do this... only catch would be if we don't support package-lock... but we have those currently checked in afaik