GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: use `npm ci` by refack · Pull Request #22399 · nodejs/node

Conversation

@refack

@refack refack commented Aug 19, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
  • Follow up to [WIP] tools: s/npm install/npm ci #21538
  • In general npm ci is faster and more intune with "black box use" of the packaged tools.
  • Until Produce HTML documentation using unified/remark/rehype #21490 we floated patches on tools/doc/node_modules so we could use the npm ci which completely replaces node_modules
  • H/T: @MylesBorins @Trott @rubys

Ref: #21802
Ref: #21490

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@refack
refack requested a review from rubys August 19, 2018 14:15
@nodejs-github-bot

nodejs-github-bot commented Aug 19, 2018

Copy link
Copy Markdown
Collaborator

@refack build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/592/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. windows Issues and PRs related to the Windows platform. labels Aug 19, 2018
@refack
refack requested review from MylesBorins, TimothyGu, Trott, joyeecheung and richardlau August 19, 2018 14:15
@refack

refack commented Aug 19, 2018

Copy link
Copy Markdown
Contributor Author

/CC @nodejs/build-files @nodejs/documentation

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Aug 19, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-commit/20679/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu approved these changes Aug 19, 2018
View reviewed changes
@refack refack added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 19, 2018
@refack refack mentioned this pull request Aug 19, 2018
[WIP] tools: s/npm install/npm ci #21538
Closed
rubys
rubys approved these changes Aug 19, 2018
View reviewed changes
Trott
Trott previously approved these changes Aug 19, 2018
View reviewed changes
Trott
Trott reviewed Aug 19, 2018
View reviewed changes

@Trott Trott left a comment

Copy link
Copy Markdown
Member

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.

Change LGTM. (Avoiding official sign-off because I don't know all the details of how some of this stuff is invoked as well as others know it, and this already has two sign-offs, so it doesn't need mine.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Trott
Trott dismissed their stale review August 19, 2018 16:34

meant to leave a comment...

@rubys

rubys commented Aug 19, 2018

Copy link
Copy Markdown
Member

Meta: just so you know what you are getting with my approval. Essentially, it means that I'm saying "it looks plausible to me that it would work", and "should it break, I will help fix it".

I've been programming continuously since the mid 70s, so I have accumulated a working knowledge of batch files, make files, C, ES5, and the like. That doesn't mean that I have a deep understanding of npm, gyp, acorn, node's repl, etc. What you have seen there is only evidence that I'm a fast learner.

vsemozhetbyt reacted with thumbs up emoji refack reacted with laugh emoji
All reactions
  • 👍 1 reaction
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Aug 19, 2018

Copy link
Copy Markdown
Contributor Author

Meta: just so you know what you are getting with my approval. Essentially, it means that I'm saying "it looks plausible to me that it would work", and "should it break, I will help fix it".

Ditto 😄
There is definite emergent complexity in our build scripts, one that only empirical experiments can uncover.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

richardlau
richardlau approved these changes Aug 19, 2018
View reviewed changes
joyeecheung
joyeecheung approved these changes Aug 20, 2018
View reviewed changes

@joyeecheung joyeecheung left a comment

Copy link
Copy Markdown
Member

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.

(On a side note, I think we should also use --ignore-scripts in the installation commands..)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@refack

refack commented Aug 21, 2018

Copy link
Copy Markdown
Contributor Author

(On a side note, I think we should also use --ignore-scripts in the installation commands..)

I'm not sure about that... Especially since node-gyp build is triggered as the default install script... I trust @zkat that npm ci was optimally designed.

Anyway I leave that to a future PR.

joyeecheung reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack
refack force-pushed the npm-ci branch from 18ee2f6 to 29efe93 Compare August 21, 2018 22:33
@refack refack mentioned this pull request Aug 22, 2018
Investigate flaky test-http2-session-timeout #20628
Closed
@refack

refack commented Aug 22, 2018

Copy link
Copy Markdown
Contributor Author

linux/ubuntu1404 fail is #20628

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack
refack force-pushed the npm-ci branch from 29efe93 to b62ed31 Compare August 22, 2018 14:52
@refack

refack commented Aug 22, 2018

Copy link
Copy Markdown
Contributor Author

Reresume CI: https://ci.nodejs.org/job/node-test-commit/20822/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack
build: use npm ci
d320511
* remove obsolete `node_modules/js-yaml/package.json` target
* remove `@touch` since `npm ci` is always destructive

PR-URL: nodejs#22399
Refs: nodejs#21802
Refs: nodejs#21490
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Sam Ruby <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
@refack
refack force-pushed the npm-ci branch from b62ed31 to d320511 Compare August 23, 2018 00:21
@refack
refack merged commit d320511 into nodejs:master Aug 23, 2018
@refack

refack commented Aug 23, 2018

Copy link
Copy Markdown
Contributor Author

Landed in d320511

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack
refack deleted the npm-ci branch August 23, 2018 01:16
@addaleax

addaleax commented Aug 23, 2018

Copy link
Copy Markdown
Member
$ make format-cpp-build
cd tools/clang-format && if [ -x /home/xxxx/src/node/master/./node ] && [ -e /home/xxxx/src/node/master/./node ]; then /home/xxxx/src/node/master/./node /home/xxxx/src/node/master/./deps/npm/bin/npm-cli.js ci; elif [ -x `which node` ] && [ -e `which node` ] && [ `which node` ]; then `which node` /home/xxxx/src/node/master/./deps/npm/bin/npm-cli.js ci; else echo "No available node, cannot run \"node /home/xxxx/src/node/master/./deps/npm/bin/npm-cli.js ci\""; exit 1; fi;
npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/xxxx/.npm/_logs/2018-08-23T14_41_43_532Z-debug.log
Makefile:1182: recipe for target 'format-cpp-build' failed
make: *** [format-cpp-build] Error 1

🙁

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack refack mentioned this pull request Aug 23, 2018
tools: fix make format-cpp-build #22481
Closed
2 tasks done
targos pushed a commit that referenced this pull request Aug 24, 2018
@refack @targos
build: use npm ci
34af0e8
* remove obsolete `node_modules/js-yaml/package.json` target
* remove `@touch` since `npm ci` is always destructive

PR-URL: #22399
Refs: #21802
Refs: #21490
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Sam Ruby <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
@refack refack mentioned this pull request Aug 29, 2018
tools: don't create package-lock.json #17330
Closed
2 tasks done
targos pushed a commit that referenced this pull request Sep 3, 2018
@refack @targos
build: use npm ci
fc1259b
* remove obsolete `node_modules/js-yaml/package.json` target
* remove `@touch` since `npm ci` is always destructive

PR-URL: #22399
Refs: #21802
Refs: #21490
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Sam Ruby <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
@targos targos mentioned this pull request Sep 5, 2018
Release proposal: v10.10.0 #22716
Merged
This was referenced Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-android-nodejs#236
Closed
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-nodejs#221
Closed
@snyk-bot snyk-bot mentioned this pull request Aug 11, 2020
[Snyk] Upgrade: gatsby, gatsby-image, gatsby-plugin-catch-links, gatsby-plugin-manifest, gatsby-plugin-no-sourcemaps, gatsby-plugin-offline, gatsby-plugin-react-helmet, gatsby-plugin-sharp, gatsby-plugin-styled-components, gatsby-remark-autolink-headers, gatsby-remark-prismjs, gatsby-source-filesystem, gatsby-transformer-remark radiumrasheed/node#4
Open
This was referenced Aug 5, 2021
[Snyk] Fix for 1 vulnerabilities ron-a20/node#37
Open
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#30
Open
[Snyk] Fix for 1 vulnerabilities meghasfdc/node#40
Open
[Snyk] Fix for 1 vulnerabilities Rednickle/node-1#26
Open
[Snyk] Fix for 1 vulnerabilities kissofire/node#40
Open
[Snyk] Fix for 1 vulnerabilities 137717unity/node#31
Open
[Snyk] Fix for 1 vulnerabilities sitedata/node#30
Open
[Snyk] Fix for 1 vulnerabilities molllyn1/node#15
Open
@snyk-bot snyk-bot mentioned this pull request Aug 15, 2021
[Snyk] Fix for 1 vulnerabilities ron-a20/node#39
Open
@molllyn1 molllyn1 mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities molllyn1/node#106
Open
@137717unity 137717unity mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities 137717unity/node#122
Open
@kissofire kissofire mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities kissofire/node#124
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities aliceUnhinged613/node#123
Open
@ron-a20 ron-a20 mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities ron-a20/node#121
Open
@wedataintelligence wedataintelligence mentioned this pull request Mar 23, 2024
[Snyk] Fix for 2 vulnerabilities wedataintelligence/node#105
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Trott Trott Trott left review comments
@watilde watilde watilde approved these changes
@joyeecheung joyeecheung joyeecheung approved these changes
@richardlau richardlau richardlau approved these changes
@MylesBorins MylesBorins Awaiting requested review from MylesBorins
+2 more reviewers
@rubys rubys rubys approved these changes
@TimothyGu TimothyGu TimothyGu approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. build Issues and PRs related to Node.js builds or CI infrastructure. windows Issues and PRs related to the Windows platform.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@refack @nodejs-github-bot @rubys @addaleax @Trott @TimothyGu @watilde @joyeecheung @richardlau
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.