Skip to content

fix(ci): make gocd asset upload retry-safe#502

Merged
mchen-sentry merged 1 commit into
mainfrom
mingchen/gcs-upload-retry-safe
Jun 19, 2026
Merged

fix(ci): make gocd asset upload retry-safe#502
mchen-sentry merged 1 commit into
mainfrom
mingchen/gcs-upload-retry-safe

Conversation

@mchen-sentry

@mchen-sentry mchen-sentry commented Jun 17, 2026

Copy link
Copy Markdown
Member

Same fix as getsentry/relay#6105, for objectstore's GoCD asset upload.

When the upload fails partway, re-running it fails: the gha-gcr-push SA can only create objects, not replace them, and re-uploading an object that already exists counts as replacing it (which needs delete). We switch to gcloud storage cp --no-clobber, which skips objects that already exist instead of replacing them, so a re-run is safe and needs no delete permission.

The read grant the SA needs for this is in getsentry/devinfra-deployment-service#880. No composite-upload change here, since this step only uploads the small release-name file.

@codecov

This comment has been minimized.

@mchen-sentry mchen-sentry marked this pull request as ready for review June 18, 2026 21:53
@mchen-sentry mchen-sentry requested a review from a team as a code owner June 18, 2026 21:53
@mchen-sentry mchen-sentry enabled auto-merge (squash) June 18, 2026 21:53
@mchen-sentry mchen-sentry disabled auto-merge June 18, 2026 21:53
@mchen-sentry mchen-sentry enabled auto-merge (squash) June 18, 2026 21:53
@mchen-sentry mchen-sentry merged commit d73b0df into main Jun 19, 2026
25 checks passed
@mchen-sentry mchen-sentry deleted the mingchen/gcs-upload-retry-safe branch June 19, 2026 08:25
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