This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Update the "welcome" package's package-lock.json (eliminates some warnings in CI)#21887
Merged
sadick254 merged 1 commit intoatom:masterfrom Jan 25, 2021
Merged
Conversation
No actual dependencies or dependency versions were updated. Just the "requires" fields and some "optional" fields. This should make welcome's package-lock.json stable through subsequent runs of npm install or apm install. (I'm not sure why every "requires" field had been recorded with absolute version numbers... Modern npm and apm should record the actual semver range for each dependency in each package's respective package.json file... Not the absolute, resolved/final version number.)
Contributor
Author
|
@sadick254 this eliminates the warning messages in CI I introduced in #21884. Explanation: I figured out that one of the packages had an outdated format of data in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Requirements for Contributing a Bug Fix (from template, click to expand):
Identify the Bug
There were warnings about cache keys changing in the
macOS Tests packages-2job. (Follow-up to #21884).Description of the Change
I ran
npm install(andapm install-- the result was the same) in thepackages/welcomefolder, and committed the updated lockfile.No actual dependencies or dependency versions were updated. Just the "requires" fields and some "optional" fields.
(I'm not sure why every "requires" field had been recorded with absolute version numbers... Modern npm and apm should record the actual semver range for each dependency in each package's respective package.json file... Not the absolute, resolved/final version number.)
Alternate Designs
This lockfile was updated when installing its test runner dependencies during
script/test. I tried runningapm ciinstead ofapm installto install these dependencies. That would be more consistent and slightly faster. The problem with that is, some of the packages with test runner dependencies do not ship lockfiles. And you can't runnpm ci/apm ciwithout a lockfile already being present.This alternate design would be doable if we went through all of the packages in Atom core that have test runners specified in their
package.jsonfiles, and made sure each of these packages ship apackage-lock.jsonfile. However, committing a lockfile to a repo is a subjective choice with some tradeoffs. There are times when not having a lockfile is legitimate. So I would rather not enforce every core package have a lockfile just to get rid of these warnings in CI.Possible Drawbacks
None.
Verification Process
I did a CI run; the warnings about
The given cache key has changed . . .went away.https://dev.azure.com/DeeDeeG/b/_build/results?buildId=1019
Release Notes
N/A