Merge pull request #92234 from alejandrox1/add-cleanup-time-node-perf

Added a buffer period in the node performance tests
This commit is contained in:
Kubernetes Prow Robot 2020-06-18 06:04:10 -07:00 committed by GitHub
commit 99019502bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,15 @@ var _ = SIGDescribe("Node Performance Testing [Serial] [Slow] [Flaky]", func() {
GracePeriodSeconds: &gp,
}
f.PodClient().DeleteSync(pod.Name, delOpts, framework.DefaultPodDeletionTimeout)
// We are going to give some more time for the CPU manager to do any clean
// up it needs to do now that the pod has been deleted. Otherwise we may
// run into a data race condition in which the PostTestExec function
// deletes the CPU manager's checkpoint file while the CPU manager is still
// doing work and we end with a new checkpoint file after PosttestExec has
// finished. This issues would result in the kubelet panicking after we try
// and set the kubelet config.
time.Sleep(15 * time.Second)
ginkgo.By("running the post test exec from the workload")
err := wl.PostTestExec()
framework.ExpectNoError(err)