fix: Don't fail on duplicate proguard release association #1762
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.
As reported on Slack, calling
upload-proguard
twice with the exact same arguments causes an error, even though it's perfectly benign. The issue is that Sentry returns409
for identicalProguardArtifactRelease
objects: https://github.com/getsentry/sentry/blob/4882e79cd67363cb40e9d3f08b161783f21eb4e8/src/sentry/api/endpoints/debug_files.py#L136-L151(Strictly speaking, a duplicate (release, debug file, uuid) triple will cause an error. I don't think the distinction matters in practice.)
We should just log a message in this case and otherwise succeed.