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

ResourceListTest.testCreateOrReplaceWithDeleteExisting flakiness #5953

Closed
shawkins opened this issue Apr 25, 2024 · 2 comments · Fixed by #6004
Closed

ResourceListTest.testCreateOrReplaceWithDeleteExisting flakiness #5953

shawkins opened this issue Apr 25, 2024 · 2 comments · Fixed by #6004
Assignees
Milestone

Comments

@shawkins
Copy link
Contributor

https://github.com/fabric8io/kubernetes-client/actions/runs/8831445429/job/24246684439?pr=5949#step:4:73186 shows a failure with

ResourceListTest.testCreateOrReplaceWithDeleteExisting:178 expected: <6> but was: <7>

We'll need to double check if the condition should look for at least that many requests, not exactly.

@manusa
Copy link
Member

manusa commented Apr 25, 2024

It's been flaky for a while.

Maybe asserting the number of requests is not exactly what we want.

@shawkins
Copy link
Contributor Author

The issue here is a race condition between stopping the reflector due to the condition being satisfied and starting the watch. If an attempt is made to start the watch you end up with a 7th request.

shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 13, 2024
closes: fabric8io#5953

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 13, 2024
closes: fabric8io#5953

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 13, 2024
closes: fabric8io#5953

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
@shawkins shawkins self-assigned this May 13, 2024
shawkins added a commit to shawkins/kubernetes-client that referenced this issue May 20, 2024
closes: fabric8io#5953

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
@manusa manusa added this to the 6.13.0 milestone May 21, 2024 — with automated-tasks
manusa pushed a commit that referenced this issue May 21, 2024
closes: #5953

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants