Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clusteragent/autoscaling] Fix flaky DCA target test #29816

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jennchenn
Copy link
Member

What does this PR do?

Check that DPA is added to store before continuing to test that the proper error status is set.

Motivation

This test has flaked a few times. The error seems to be caused by the object not being found "in kubernetes". This moves the call to add the object to f.Objects earlier, better matching the logic used in the TestLeaderCreateDeleteLocal test.

Describe how to test/QA your changes

Check that test does not flake.

Possible Drawbacks / Trade-offs

Additional Notes

It has been quite difficult to test this change as I am not able to reproduce the same failure locally, so not 100% sure this will fix the flake but probably a change we would want to make anyway.

@jennchenn jennchenn added team/containers qa/no-code-change Skip QA week as there is no code change in Agent code labels Oct 4, 2024
@jennchenn jennchenn requested a review from a team as a code owner October 4, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa/no-code-change Skip QA week as there is no code change in Agent code team/containers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant