perf(ci): only save ccache on main branch #8822
Merged
+2
−0
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
prevents LRU eviction thrashing of caches since we are near the limit on useful caches for a single CI run
This is a follow-on to the CI perf tuning PR from a few days back, it was the only thing I noticed that wasn't perfect after merging that one - we are saving lots of ccache's, mostly from branches, and it LRUs out useful main-branch caches
Related issues
Release Summary
test only, and just perf on test even - no release
Checklist
AndroidiOSOther(macOS, web)e2etests added or updated inpackages/\*\*/e2ejesttests added or updated inpackages/\*\*/__tests__Test Plan
Look at the caches page after this is implemented, and we should no longer see caches from non-branch that start with ccache https://github.com/invertase/react-native-firebase/actions/caches
Additionally, after other branches update to this workflow or run them and it has been a while, we will hopefully stop seeing our cacches expire so frequently - many of them should be pretty long-lived (weeks+, not just hours/days)
Think
react-native-firebaseis great? Please consider supporting the project with any of the below:React Native FirebaseandInvertaseon Twitter