Skip to content

[ci] Remove redundant node_modules caches#36457

Open
eps1lon wants to merge 1 commit into
facebook:mainfrom
eps1lon:sebbie/05-12-_ci_remove_redundant_node_modules_caches
Open

[ci] Remove redundant node_modules caches#36457
eps1lon wants to merge 1 commit into
facebook:mainfrom
eps1lon:sebbie/05-12-_ci_remove_redundant_node_modules_caches

Conversation

@eps1lon
Copy link
Copy Markdown
Collaborator

@eps1lon eps1lon commented May 12, 2026

I did an inventory of our caches and caching of setup-node stood out as redundant. If you use the hash of a lockfile in actions/cache and specify the same lockfile in cache-dependency-path of actions/setup-node, your cache key is equivalent.

The cache keys for these steps used to be not equivalent due to using different restore-keys. Since https://github.com/facebook/react/pull/33578/changes#r2157682889 we no longer use restore keys though.

Bumped the cache keys where I switched between actions/cache and actions/cache/* to ensure caches are consistent and nothing broke.

@meta-cla meta-cla Bot added the CLA Signed label May 12, 2026
@github-actions github-actions Bot added the React Core Team Opened by a member of the React Core Team label May 12, 2026
@react-sizebot
Copy link
Copy Markdown

react-sizebot commented May 12, 2026

Comparing: d5736f0...849243a

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 613.53 kB 613.53 kB = 108.44 kB 108.44 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB +0.05% 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 679.46 kB 679.46 kB = 119.40 kB 119.40 kB
facebook-www/ReactDOM-prod.classic.js = 699.88 kB 699.88 kB = 122.96 kB 122.96 kB
facebook-www/ReactDOM-prod.modern.js = 690.20 kB 690.20 kB = 121.35 kB 121.35 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 849243a

@eps1lon eps1lon force-pushed the sebbie/05-12-_ci_remove_redundant_node_modules_caches branch from b66d119 to 849243a Compare May 12, 2026 21:03
@eps1lon eps1lon marked this pull request as ready for review May 13, 2026 07:11
@eps1lon eps1lon requested review from hoxyq and rickhanlonii May 13, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants