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

TestKubernetesClient.waitForPodsDeletion is a flaky test #9367

Open
benoitf opened this issue Oct 14, 2024 · 0 comments
Open

TestKubernetesClient.waitForPodsDeletion is a flaky test #9367

benoitf opened this issue Oct 14, 2024 · 0 comments

Comments

@benoitf
Copy link
Collaborator

benoitf commented Oct 14, 2024

Bug description

I see from time to time a failure when executing the test

here is the latest run where I noticed it
https://github.com/containers/podman-desktop/actions/runs/11329390864/job/31504825675?pr=9366

Operating system

linux

Installation Method

None

Version

1.13.0

Steps to reproduce

hard to reproduce but happens on CI env

 FAIL  src/plugin/kubernetes/kubernetes-client.spec.ts > Should return false if the timeout is reached but pods still exist
TypeError: Cannot read properties of undefined (reading 'items')
 ❯ TestKubernetesClient.waitForPodsDeletion src/plugin/kubernetes/kubernetes-client.ts:1695:19
    1693|     while (Date.now() - startTime < timeout) {
    1694|       const podList = await coreApi.listNamespacedPod({ namespace, lab…
    1695|       if (podList.items.length === 0) {
       |                   ^
    1696|         return true;
    1697|       }
 ❯ src/plugin/kubernetes/kubernetes-client.spec.ts:1804:18

Relevant log output

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants