Skip to content
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

fix(arborist): when reloading an edge, also refresh overrides #4709

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Apr 7, 2022

when we load a virtual tree, we do it based on the package-lock structure setting only the root node in each constructor (not the parent, since we may not even have it yet). these changes ensure that even in this out-of-order scenario we still pick up the overrides on the child node, which means we more consistently apply overrides and identify when they are mismatched.

nlf added 2 commits April 7, 2022 14:38
this fixes some scenarios where overrides were not being properly
applied, especially those where a node_modules or package-lock.json
already exists
@npm-robot
Copy link
Contributor

no statistically significant performance changes detected

timing results
app-large clean lock-only cache-only cache-only
peer-deps
modules-only no-lock no-cache no-modules no-clean no-clean
audit
npm@8 46.975 ±1.22 28.570 ±0.42 16.331 ±0.05 18.347 ±0.87 2.819 ±0.00 2.816 ±0.04 2.225 ±0.02 10.516 ±0.04 2.241 ±0.00 3.244 ±0.03
#4709 48.641 ±0.70 27.941 ±0.55 16.196 ±0.25 18.687 ±0.86 2.823 ±0.01 2.803 ±0.00 2.220 ±0.02 10.509 ±0.04 2.226 ±0.00 3.376 ±0.23
app-medium clean lock-only cache-only cache-only
peer-deps
modules-only no-lock no-cache no-modules no-clean no-clean
audit
npm@8 34.576 ±0.71 21.517 ±0.12 11.876 ±0.05 12.944 ±0.05 2.537 ±0.01 2.567 ±0.00 2.274 ±0.03 7.978 ±0.07 2.119 ±0.00 2.944 ±0.20
#4709 35.356 ±0.81 21.971 ±0.18 12.260 ±0.03 12.981 ±0.36 2.574 ±0.00 2.568 ±0.01 2.240 ±0.01 7.955 ±0.07 2.135 ±0.02 2.829 ±0.03

@fritzy fritzy merged commit 4d676e3 into latest Apr 12, 2022
@fritzy fritzy deleted the nlf/fix-arborist-overrides branch April 12, 2022 00:14
@lukekarrys lukekarrys mentioned this pull request Apr 14, 2022
oshi97 added a commit to yext/answers-search-ui that referenced this pull request Apr 18, 2022
There were a number of issues with npm overrides not being
respected by the npm install command. Supposedly, these issues
have been fixed in npm 8.7.0.

See npm/cli#4709

This PR deletes and regenerates the package-lock so that overrides are respected.

J=SLAP-2022
TEST=manual

see that the unsafe-eval test page loads properly
rerunning npm install does not undo overrides
oshi97 added a commit to yext/answers-search-ui that referenced this pull request Apr 18, 2022
There were a number of issues with npm overrides not being
respected by the npm install command. Supposedly, these issues
have been fixed in npm 8.7.0.

See npm/cli#4709

This PR deletes and regenerates the package-lock so that overrides are respected.

J=SLAP-2022
TEST=manual

see that the unsafe-eval test page loads properly
rerunning npm install does not undo overrides
oshi97 added a commit to yext/answers-search-ui that referenced this pull request Apr 18, 2022
There were a number of issues with npm overrides not being
respected by the npm install command. Supposedly, these issues
have been fixed in npm 8.7.0.

See npm/cli#4709

This PR deletes and regenerates the package-lock so that overrides are respected.

J=SLAP-2022
TEST=manual

see that the unsafe-eval test page loads properly
rerunning npm install does not undo overrides
oshi97 added a commit to yext/answers-search-ui that referenced this pull request Apr 19, 2022
There were a number of issues with npm overrides not being
respected by the npm install command. Supposedly, these issues
have been fixed in npm 8.7.0.

See npm/cli#4709

This PR deletes and regenerates the package-lock so that overrides are respected.

J=SLAP-2022
TEST=manual

see that the unsafe-eval test page loads properly
rerunning npm install does not undo overrides
oshi97 added a commit to yext/answers-search-ui that referenced this pull request Apr 19, 2022
There were a number of issues with npm overrides not being
respected by the npm install command. Supposedly, these issues
have been fixed in npm 8.7.0.

See npm/cli#4709

This PR deletes and regenerates the package-lock so that overrides are respected.

J=SLAP-2022
TEST=manual

see that the unsafe-eval test page loads properly
rerunning npm install does not undo overrides
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants