Skip to content

Alerting: Fix retryable errors #2304

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

Merged
merged 1 commit into from
Aug 14, 2025
Merged

Conversation

JacobsonMT
Copy link
Contributor

Remove the orgID = 1 restriction for RetryableError in all Alerting resource RetryContexts.
Except for the "Alertmanager Not Ready" error, limiting retryability to non-default orgs doesn’t make sense. Even for the default orgID = 1, retries on "Alertmanager Not Ready" remain valid.

Previously, this restriction caused sporadic failures in alerting unit tests, as conflicts between parallel tests for the default org were not retried.

Also switched from the specific *runtime.APIError struct to the more general runtime.ClientResponseStatus interface to accommodate other error types, such as PostContactpointsBadRequest.

@JacobsonMT JacobsonMT requested review from a team as code owners August 13, 2025 17:31
@github-project-automation github-project-automation bot moved this to In review in Alerting Aug 13, 2025
Copy link
Contributor

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@JacobsonMT JacobsonMT force-pushed the jacobsonmt/fix-retryable-errors branch from fb34007 to b50e117 Compare August 14, 2025 14:18
@JacobsonMT JacobsonMT merged commit badd506 into main Aug 14, 2025
50 of 51 checks passed
@JacobsonMT JacobsonMT deleted the jacobsonmt/fix-retryable-errors branch August 14, 2025 15:55
@github-project-automation github-project-automation bot moved this from In review to Done in Alerting Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants