Skip to content

chore: removes restore-keys from yarn install to prevent cache pollution#213

Merged
christopherferreira9 merged 1 commit intomainfrom
cferreira/removes-yarn-restore-keys
Feb 4, 2026
Merged

chore: removes restore-keys from yarn install to prevent cache pollution#213
christopherferreira9 merged 1 commit intomainfrom
cferreira/removes-yarn-restore-keys

Conversation

@christopherferreira9
Copy link
Contributor

@christopherferreira9 christopherferreira9 commented Feb 3, 2026

Description

Recently, we've noticed that cache was getting polluted. The restore-keys was 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 behind 70335d9db18a6a8e055147dca032f906c60e15be (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_modules across divergent branches.

Overview
Removes restore-keys from the actions/cache step for the E2E Yarn node_modules cache in .github/actions/setup-e2e-env/action.yml, ensuring caches are only restored on an exact yarn.lock hash 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.

@christopherferreira9 christopherferreira9 merged commit 360703c into main Feb 4, 2026
21 checks passed
@christopherferreira9 christopherferreira9 deleted the cferreira/removes-yarn-restore-keys branch February 4, 2026 11:01
@christopherferreira9 christopherferreira9 mentioned this pull request Feb 4, 2026
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.

2 participants