Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Alerting: Fix flaky TestIntegrationHAEvaluation#119367

Draft
alexander-akhmetov wants to merge 1 commit intomainfrom
alexander-akhmetov/fix-flaky-ha-test
Draft

Alerting: Fix flaky TestIntegrationHAEvaluation#119367
alexander-akhmetov wants to merge 1 commit intomainfrom
alexander-akhmetov/fix-flaky-ha-test

Conversation

@alexander-akhmetov
Copy link
Contributor

TestIntegrationHAEvaluation_SingleNodeEvaluates captured one initial evaluation count per node and then expected non-primary nodes to never go above it. But during startup, a non-primary node can briefly evaluate before peer positions settle. This change checks evaluation delta over a short time window instead of comparing to a single startup baseline. It asserts that only the position=0 node increases evaluations in that window.

Previously, TestIntegrationHAEvaluation_SingleNodeEvaluates captured one
initial evaluation count per node and then expected non-primary nodes to never go above it.
But during startup, a non-primary node can briefly evaluate before peer positions settle.
This change checks evaluation delta over a short time window instead of comparing to
a single startup baseline. It asserts that only the position=0 node increases evaluations
in that window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

1 participant