Repository navigation
Wait for history in canceled health check tests - #1610
Merged
matheuscscp merged 1 commit intoOct 12, 2026
Merged
matheuscscp merged 1 commit into
matheuscscp merged 1 commit into
Conversation
The status conditions and the rest of the status are patched in two requests, so a test that waits for the Ready or Remediated condition can read the history from before the second patch. Wait for the latest history entry the same way the other cancellation tests do. Signed-off-by: Ruslan Shaydullin <[email protected]>
matheuscscp
approved these changes
Oct 12, 2026
matheuscscp
left a comment
Member
There was a problem hiding this comment.
LGTM
Thanks @ruslan-shaydullin!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two rollback tests from #1605 wait for the
ReadyorRemediatedcondition and then readstatus.historyfrom the same object. The patch helper sends the conditions and the rest of the status in two requests a few milliseconds apart, so the history can still be the old one. With the 1s poll this is rare; polling every millisecond instead made the reconcile request test fail 3 times out of 3 (Expected 2 to equal 3), and in an earlier run both tests failed 5 times out of 6. With this change the same 1ms poll passes 6 out of 6. The other cancellation tests already wait for the history this way.