Skip to content

Conversation

stevesg
Copy link
Contributor

@stevesg stevesg commented Jul 9, 2021

What this PR does:

Fix integration TestAlertmanagerSharding flaking.

This change will make the test reliable until I can spend more time
investigating. It seems that posting alerts is not fully synchronous
as was expected when writing the test, so the test can be fixed by
waiting for all instances to receive the alert.

Signed-off-by: Steve Simpson [email protected]

Which issue(s) this PR fixes:
Fixes #3927

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

This change will make the test reliable until I can spend more time
investigating. It seems that posting alerts is not fully synchronous
as was expected when writing the test, so the test can be fixed by
waiting for all instances to receive the alert.

Signed-off-by: Steve Simpson <[email protected]>
Copy link
Contributor

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci merged commit 733f7de into cortexproject:master Jul 12, 2021
alvinlin123 pushed a commit to ac1214/cortex that referenced this pull request Jan 14, 2022
This change will make the test reliable until I can spend more time
investigating. It seems that posting alerts is not fully synchronous
as was expected when writing the test, so the test can be fixed by
waiting for all instances to receive the alert.

Signed-off-by: Steve Simpson <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
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.

TestAlertmanagerSharding is flaky due to a logic issue

3 participants