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: Ignore 422 response while creating commit statuses #299

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ragnarpa
Copy link

@ragnarpa ragnarpa commented May 21, 2024

Ignore HTTP 422 responses by GitHub while trying to create commit statuses. GitHub limits creating commit statuses to 1000 attempts with the same SHA and context. Currently, when the limit is reached, Argo CD notification controller keeps retrying needlessly which wastes resources. Instead, the notification engine should give up on retrying and signal the caller that the notification attempt has been processed.

@ragnarpa ragnarpa force-pushed the ignore-422-in-commit-status branch from 208181a to 39deccf Compare May 21, 2024 19:32
@ragnarpa ragnarpa marked this pull request as ready for review May 21, 2024 19:36
@ragnarpa
Copy link
Author

@pasha-codefresh, can you review it?

@ragnarpa
Copy link
Author

Hey-hey. @pasha-codefresh, any updates?

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.

1 participant