openkruise / kruise

Automated management of large-scale applications on Kubernetes (incubating project under CNCF)
https://openkruise.io
Other
4.6k stars 755 forks source link

[BUG] The e2e test (pullimages containerrecreate) is unstable, frequently failing in "recreates containers with postStartHook" #1587

Open ABNER-1 opened 5 months ago

ABNER-1 commented 5 months ago

What happened:

The e2e test failed with error:

• Failure [27.109 seconds]
[apps] ContainerRecreateRequest
/home/runner/work/kruise/kruise/test/e2e/apps/framework.go:24
  [kruise.io] ContainerRecreateRequest
  /home/runner/work/kruise/kruise/test/e2e/framework/framework.go:314
    recreates containers with postStartHook [Conformance] [It]
    /home/runner/work/kruise/kruise/test/e2e/framework/framework.go:319

    Expected
        <[]v1alpha1.ContainerRecreateRequestContainerRecreateState | len:2, cap:4>: [
            {Name: "app", Phase: "Succeeded", Message: "", IsKilled: true},
            {Name: "sidecar", Phase: "Succeeded", Message: "", IsKilled: false},
        ]
    to equal
        <[]v1alpha1.ContainerRecreateRequestContainerRecreateState | len:2, cap:2>: [
            {Name: "app", Phase: "Succeeded", Message: "", IsKilled: true},
            {Name: "sidecar", Phase: "Succeeded", Message: "", IsKilled: true},
        ]

What you expected to happen: This case always passes so that we can find more valuable infos in CI check.

How to reproduce it (as minimally and precisely as possible): In CI test, you can always find this error.

Anything else we need to know?:

Environment:

zmberg commented 5 months ago

/assgin @ABNER-1

ABNER-1 commented 3 months ago

/assign @BH4AWS

stale[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.