mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
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:
commit
99019502bd
@ -81,6 +81,15 @@ var _ = SIGDescribe("Node Performance Testing [Serial] [Slow] [Flaky]", func() {
|
|||||||
GracePeriodSeconds: &gp,
|
GracePeriodSeconds: &gp,
|
||||||
}
|
}
|
||||||
f.PodClient().DeleteSync(pod.Name, delOpts, framework.DefaultPodDeletionTimeout)
|
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")
|
ginkgo.By("running the post test exec from the workload")
|
||||||
err := wl.PostTestExec()
|
err := wl.PostTestExec()
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user