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

fix: Don't fail on duplicate proguard release association #1762

Merged
merged 1 commit into from Sep 28, 2023

Conversation

loewenheim
Copy link
Contributor

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 returns 409 for identical ProguardArtifactRelease 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.

@loewenheim loewenheim self-assigned this Sep 27, 2023
@loewenheim loewenheim merged commit f4dd518 into master Sep 28, 2023
16 checks passed
@loewenheim loewenheim deleted the fix/proguard-conflict branch September 28, 2023 10:21
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.

None yet

2 participants