From edfa9a5bd28876c860d5a16edf5cbc1c8b1cf817 Mon Sep 17 00:00:00 2001 From: yliao Date: Tue, 29 Jul 2025 20:07:05 +0000 Subject: [PATCH] added WithFlaky() to the device plugin test case: supports extended resources together with ResourceClaim --- test/e2e/dra/dra.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e/dra/dra.go b/test/e2e/dra/dra.go index 5dfd2e14cd3..115a7f19030 100644 --- a/test/e2e/dra/dra.go +++ b/test/e2e/dra/dra.go @@ -921,9 +921,14 @@ var _ = framework.SIGDescribe("node")(framework.WithLabel("DRA"), func() { }).WithTimeout(f.Timeouts.PodDelete).Should(gomega.HaveField("Status.Allocation", (*resourceapi.AllocationResult)(nil))) }) + // https://github.com/kubernetes/kubernetes/issues/133488 + // It conflicts with "must run pods with extended resource on dra nodes and device plugin nodes" test case, + // because device plugin does not clean up the extended resource "example.com/resource", and kubelet still + // keeps "example.com/resource" : 0 in node.status.Capacity. + // add WithFlaky to filter out the following test until we can clean up the leaked "example.com/resource" in node.status. if withKubelet { // Serial because the example device plugin can only be deployed with one instance at a time. - f.It("supports extended resources together with ResourceClaim", f.WithSerial(), func(ctx context.Context) { + f.It("supports extended resources together with ResourceClaim", f.WithSerial(), f.WithFlaky(), func(ctx context.Context) { extendedResourceName := deployDevicePlugin(ctx, f, nodes.NodeNames[0:1]) pod := b.PodExternal()