From bd6f5487463e7232491403e474ee556d7cfe12a8 Mon Sep 17 00:00:00 2001 From: Todd Neal Date: Fri, 18 Aug 2023 13:18:50 -0500 Subject: [PATCH] mark the OOM killer as serial to reduce flakes In testing I could only reproduce the flake by running stress-ng to load the CPU. Running it as serial should reduce and hopefully eliminate the flakiness. --- test/e2e_node/oomkiller_linux_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e_node/oomkiller_linux_test.go b/test/e2e_node/oomkiller_linux_test.go index d6353e45642..d78fcf5d680 100644 --- a/test/e2e_node/oomkiller_linux_test.go +++ b/test/e2e_node/oomkiller_linux_test.go @@ -37,7 +37,10 @@ type testCase struct { oomTargetContainerName string } -var _ = SIGDescribe("OOMKiller [LinuxOnly] [NodeConformance]", func() { +// Marked as [Serial] since currently the runtime can miss the OOM event if the pod is killed too quickly. This seems +// to occur more often when the node is highly loaded. + +var _ = SIGDescribe("OOMKiller [LinuxOnly] [NodeConformance] [Serial]", func() { f := framework.NewDefaultFramework("oomkiller-test") f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged