chore: removes restore-keys from yarn install to prevent cache pollution#213
Merged
christopherferreira9 merged 1 commit intomainfrom Feb 4, 2026
Merged
Conversation
FrederikBolding
approved these changes
Feb 4, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Recently, we've noticed that cache was getting polluted. The
restore-keyswas acting as a fallback for when the actual key was found so in scenarios where a dependency would be bumped and merged into main, other side branches that were not updated with main would get this bundle.Evidences
On mobile, commit
dea4f71aea67372b084ad45359c60bd2caf38d58(calling 1 coming forward) is behind70335d9db18a6a8e055147dca032f906c60e15be(calling 2 coming forward).Timeline
Reference links:
Note
Low Risk
Low risk workflow change; it only affects CI cache restore behavior and may increase cache misses but avoids reusing stale
node_modulesacross divergent branches.Overview
Removes
restore-keysfrom theactions/cachestep for the E2E Yarnnode_modulescache in.github/actions/setup-e2e-env/action.yml, ensuring caches are only restored on an exactyarn.lockhash match.This prevents fallback cache hits from older keys that could introduce stale dependencies and "pollute" CI runs across branches.
Written by Cursor Bugbot for commit 44e3ced. This will update automatically on new commits. Configure here.