[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 |
targos
left a comment
There was a problem hiding this comment.
I think you can remove --no-package-lock now
|
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 |
Trott
left a comment
There was a problem hiding this comment.
Don't forget to update vcbuild.bat too. (You can dismiss this review once that's happened.)
There was a problem hiding this comment.
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 ofmarked`. 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 ciis 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