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

ci: Even better cache keys and granular caching #3534

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

BYK
Copy link
Member

@BYK BYK commented Jan 16, 2025

Just starting up services for Snuba or Sentry migrations takes up to a minute sometimes and we do this even when there are no migrations, just because one of the Sentry or Snuba migrations change. This patch splits the caches up so only the necessary one runs, saving further time. It also uses the LATEST_TAG as the cache key for upgrade tests as the image versions or data will never change for a certain tag once it is release.

New records (down from 6:22 for upgrade and 12:24 for integration):

image

Just starting up services for Snuba or Sentry migrations takes up to a minute sometimes and we do this even when there are no migrations, just because one of the Sentry or Snuba migrations change. This patch splits the caches up so only the necessary one runs, saving further time. It also uses the `LATEST_TAG` as the cache key for upgrade tests as the image versions or data will never change for a certain tag once it is release.
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.45%. Comparing base (c075cf5) to head (df3360a).
Report is 2 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3534   +/-   ##
=======================================
  Coverage   99.45%   99.45%           
=======================================
  Files           3        3           
  Lines         184      184           
=======================================
  Hits          183      183           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BYK BYK marked this pull request as ready for review January 16, 2025 11:35
@BYK BYK requested a review from hubertdeng123 January 16, 2025 11:35
@BYK BYK enabled auto-merge (squash) January 16, 2025 11:48
@BYK BYK merged commit 3913a9f into master Jan 16, 2025
10 checks passed
@BYK BYK deleted the byk/ref/granular-docker-volume-cache branch January 16, 2025 18:10
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants