ci: create an empty cache by including extra key data when loading cache #3131
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
As per google/wireit#71 the Wireit cache can grow... forever. This negates the caching benefits in CircleCI when you need to load/save many MB of data after a couple of weeks of leveraging the cache. This PR creates a parameter that can be passed the build so that when pointed to someting other than the default the cache will not get loaded and the install workflow will create a new cache from scratch. It is possible to inject a parameter as part of a chron based triggering of a CircleCI, so I've scheduled a weekly run that creates a new cache so that we can benefit from the speed of the caching generally without allowing the cache to grow to large. If at some point the issue in question is addressed and there is a "wireit-native" cache management strategy, then we can remove this workaround.
How has this been tested?
main
and merge this PR.Types of changes
Checklist