Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Jun 19, 2025

The cache wants to restore runtime and compiler dependencies. If we miss, we need to install both.

test plan

$ git clean -fdx
$ yarn install --frozen-lockfile
$ ./scripts/react-compiler/build-compiler.sh && ./scripts/react-compiler/link-compiler.sh
# fails
$ cd compiler
$ yarn install --frozen-lockfile
$ cd ..
$ ./scripts/react-compiler/build-compiler.sh && ./scripts/react-compiler/link-compiler.sh
# passes

@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jun 19, 2025
Comment on lines -304 to -306
restore-keys: |
runtime-and-compiler-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-
runtime-and-compiler-node_modules-v6-
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This leads to growing the cache indefinitely when packages changes: mui/material-ui#29040

Since we don't actively monitor install times, it's safer to deopt in the rare case instead of permanently deopting after dependencies have changed multiple times.

@eps1lon eps1lon requested a review from rickhanlonii June 19, 2025 21:34
@eps1lon eps1lon merged commit a947eba into facebook:main Jun 19, 2025
246 of 247 checks passed
@eps1lon
Copy link
Collaborator Author

eps1lon commented Jun 19, 2025

Sizebot failure is expected because Git base is broken.

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.

3 participants