Skip to content

alertmanager: fix regression from update to 0.33 - #7970

Open
timonegk wants to merge 2 commits into
cortexproject:masterfrom
timonegk:fix-alertmanager
Open

timonegk wants to merge 2 commits into
cortexproject:masterfrom
timonegk:fix-alertmanager

Conversation

@timonegk

Copy link
Copy Markdown

What this PR does:
There is a regression in Cortex 1.22 that shows alerts as "unprocessed" in Grafana. This is due to an API breaking change in alertmanager 0.33. This PR adds the fix that was also implemented in Grafana Mimir in grafana/mimir#15733.
The second commit adds an AI-generated regression test. It passes on Cortex 1.21, fails on Cortex 1.22 and passes with the fix. If you don't like it, we can remove it.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

@timonegk
timonegk requested a review from a team as a code owner November 25, 2026 13:04
@timonegk
timonegk requested a review from friedrichg November 25, 2026 13:04
SungJin1212
SungJin1212 previously approved these changes Nov 26, 2026

@SungJin1212 SungJin1212 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Could you rewrite the changelog?

Comment thread CHANGELOG.md Resolved
@SungJin1212
SungJin1212 dismissed their stale review November 26, 2026 02:10

Approved by mistake.

@timonegk

Copy link
Copy Markdown
Author

Test failure looks unrelated

@sandy2008 sandy2008 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the v0.34 API the no-op callback left every alert unprocessed; the new test fails on master and passes here. The failing test-no-race (amd64) job is TestPushRace in pkg/ingester, unrelated. CHANGELOG.md needs a rebase. LGTM.

@SungJin1212

Copy link
Copy Markdown
Member

@timonegk
Could you rebase from master?

@timonegk

Copy link
Copy Markdown
Author

rebased

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants