Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: Improve latency network cleanup #8659

Merged
merged 1 commit into from Dec 14, 2023

Conversation

GabyCT
Copy link
Contributor

@GabyCT GabyCT commented Dec 13, 2023

This PR improves the latency network cleanup by removing the pods even if the test fails.

Fixes #8658

Copy link
Contributor

@dborquez dborquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job, just a couple of comments inline

kubectl delete -f latency-client.yaml
}

trap latency_cleanup EXIT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the script ends before the server and clients pods are created, call to latency_cleanup could report error.
I can think of two options, :

  • You can make that the lines that deletes the pods return always true
  • or move the trap line just after the creation of the server and client pods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @dborquez for the feedback changes applied

@GabyCT GabyCT force-pushed the topic/improvecleanuplatency branch 2 times, most recently from ba89fbc to 6350df9 Compare December 13, 2023 17:52
This PR improves the latency network cleanup by removing the pods
even if the test fails.

Fixes kata-containers#8658

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Copy link
Contributor

@dborquez dborquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @GabyCT LGTM

@GabyCT GabyCT merged commit 7a606a1 into kata-containers:main Dec 14, 2023
158 of 172 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/small Small and simple task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metrics: Improve latency network cleanup
4 participants