-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Build Tooling: Reevaluate "Build Artifacts" NPM install script #16157
Comments
Not exactly related to the original comment, but capturing for posterity's sake: The Related: Specifically, I often see local git changes in my environment (macOS) when running Example build: https://travis-ci.com/github/WordPress/gutenberg/jobs/298545635
|
Related to: #16157 (comment) @ItsJonQ had mentioned seeing changes from a valid Edit (2020-03-31): Another instance was encountered. @jorgefilipecosta was using 6.10.1 at the time. Edit (2020-03-31): See #21306 for an attempt to help resolve instances of these issues. Edit (2020-04-03): Another case at #20555 (comment) . @swissspidy may have been using NPM 6.14.4 at the time (the latest version!), but noted to have recalled updating to that latest version in the very recent history (the changes may have been made on an older version). |
Related: #16166
Previously: #14808, #15710 (comment)
The "Build Artifacts" Travis task is meant to capture whether any local changes would occur as a result of installing dependencies or running documentation tasks. For the former, these are largely to cover necessary updates to
package-lock.json
which should be committed.By default, we use
npm ci
as an alternative tonpm install
in Travis, as it is intended to be optimized for use in a continuous integration (CI) environment like Travis.It is also meant to exit with an error status when the
package-lock.json
file is inaccurate:However, as evidenced in the "Previously" links above, this does not occur.
For this reason, the "Build Artifacts" task was updated to use
npm install
as of #16166. Ideally, this can be reverted back tonpm ci
once either upstream bugginess is resolved, or an alternative approach can be determined.For future consideration, the following set of commands should serve as testing for whether
npm ci
is working as we desire it should:If working as desired, this should output a non-zero value.
The text was updated successfully, but these errors were encountered: