Skip to content

Stop the dismissed custom check test racing the endpoint's next report - #5875

Merged
ramonsmits merged 1 commit into
masterfrom
ramon/fix-dismissed-check-race
Sep 10, 2026
Merged

Stop the dismissed custom check test racing the endpoint's next report#5875
ramonsmits merged 1 commit into
masterfrom
ramon/fix-dismissed-check-race

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

Should_come_back_while_the_check_is_still_failing accounted for six of the last nineteen Windows-Raven failures, every time stuck on "Wait until it has gone". The endpoint reports every second, so after the dismissal the check is only ever absent for an instant and a poll cannot be expected to catch it.

The test now waits for the dismissal to be processed, observed through the CustomCheckDeleted domain event with a handler registered via CustomizeHostBuilder, and then for a report with a ReportedAt later than that. Same intent, no dependency on catching a transient state. Passes three runs in a row locally.

The test waited to observe the check gone from the API after dismissing it,
but the endpoint reports every second, so the check is only ever absent for
an instant and the poll regularly missed it. Six of the last nineteen
Windows-Raven failures were this test stuck on that step.

It now waits for the dismissal to be processed, observed through the
CustomCheckDeleted domain event, and then for a report stamped after it,
which proves the same thing without depending on timing.
@ramonsmits
ramonsmits merged commit ce55c2a into master Sep 10, 2026
36 checks passed
@ramonsmits
ramonsmits deleted the ramon/fix-dismissed-check-race branch September 10, 2026 10:31
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.

3 participants