Files
kubernetes/test/e2e_node
Davanum Srinivas 10efa46fbb e2e_node: wait for pod drain before asserting zero pods in Memory Manager Metrics
The Memory Manager Metrics BeforeEach asserts that zero pods are
running on the node after a kubelet config update. This hard assertion
flakes when a preceding serial test's namespace deletion hasn't
completed yet — framework namespace cleanup is async and the kubelet
restart in updateKubeletConfig can delay in-flight pod termination.

CI logs show leftover pods from MemoryQoS tests (memqos-burstable,
memqos-no-limit, etc.), Probe Stress tests (50-container pods), and
Summary API PSI tests (memory-pressure-pod), all still Running when
the assertion fires 4-7ms after the previous test finishes.

Replace the immediate Expect(count).To(BeZero()) with an Eventually
poll (2 minute timeout, 5 second interval) that gives pods time to
drain after the kubelet restart. The existing printAllPodsOnNode
diagnostic output is preserved inside the poll for debugging.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-03-28 15:27:25 -04:00
..
2025-12-10 10:01:39 +05:30
2026-03-05 18:11:02 -05:00
2026-03-12 09:02:24 +01:00
2026-03-12 09:02:24 +01:00
2026-03-18 23:07:37 +00:00
2026-03-23 23:22:44 +00:00