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 setup-caches skip-pnpm-cache behaviour #8614

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

angusbayley
Copy link
Contributor

@angusbayley angusbayley commented Dec 5, 2024

Changes setup-caches to:

  • respond to skip-pnpm-cache input correctly (i.e. if true it should skip the cache, if false it should not - not the other way around)
  • change the default value of this parameter to true. Currently we want setup-caches to skip pnpm caches by default because our cache retrieval mechanism is much slower than doing a fresh download each time. When we fix this, I recommend switching the default back to false

Deployment considerations

A ⌘+F of the repo shows that skip-pnpm-cache isn't actually specified in any setup-caches invocations, therefore these 2 changes combined have no effect on existing workflows - it just makes the skip-pnpm-cache parameter do what it says it'll do now, not the opposite

A test PR is set up here nevertheless, with build-web-tools-reusable forced to run (it uses setup-caches)

Copy link

vercel bot commented Dec 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Dec 5, 2024 2:57pm
native-ui-storybook ⬜️ Ignored (Inspect) Dec 5, 2024 2:57pm
react-ui-storybook ⬜️ Ignored (Inspect) Dec 5, 2024 2:57pm
web-tools ⬜️ Ignored (Inspect) Dec 5, 2024 2:57pm

@live-github-bot live-github-bot bot added the tools Has changes in tools label Dec 5, 2024
@angusbayley angusbayley marked this pull request as ready for review December 5, 2024 15:27
@angusbayley angusbayley merged commit 8bfddb1 into develop Dec 6, 2024
43 of 45 checks passed
@angusbayley angusbayley deleted the support/fix-caches-bug branch December 6, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Has changes in tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants