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

test, jenkinsfile: Clean up natnetworks in CI after test run #22704

Merged
merged 1 commit into from Dec 15, 2022

Conversation

pchaigno
Copy link
Member

We currently have a flake in CI that is caused by some incorrect VirtualBox natnetwork configuration. It is currently unclear why the natnetworks are sometimes created with an incorrect configuration.

Unfortunately, because we don't delete natnetworks at the end of each CI job, those incorrect natnetworks remains for subsequent runs and the tests end up failing with the same flake on every single CI job executed on that node.

This pull request adds a cleanup step for natnetworks in our CI. We still won't run natnetworks when running tests locally, for the same reason we don't clean up VMs. This change doesn't fix the flake but it should limit its impact to a single CI job instead of all jobs running on a node.

Related: #17353 (comment).

@pchaigno pchaigno added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI. labels Dec 13, 2022
@pchaigno pchaigno marked this pull request as ready for review December 13, 2022 22:13
@pchaigno pchaigno requested a review from a team as a code owner December 13, 2022 22:13
@pchaigno pchaigno marked this pull request as draft December 14, 2022 11:47
@pchaigno pchaigno force-pushed the ci-clean-natnetworks branch 2 times, most recently from be81cae to 2a7b157 Compare December 14, 2022 17:27
We currently have a flake in CI that is caused by some incorrect
VirtualBox natnetwork configuration. It is currently unclear why the
natnetworks are sometimes created with an incorrect configuration.

Unfortunately, because we don't delete natnetworks at the end of each CI
job, those incorrect natnetworks remains for subsequent runs and the
tests end up failing with the same flake on every single CI job
executed on that node.

This commit adds a cleanup step for natnetworks in our CI. We still
won't run natnetworks when running tests locally, for the same reason we
don't clean up VMs. This change doesn't fix the flake but it should
limit its impact to a single CI job instead of all jobs running on a
node.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno
Copy link
Member Author

/test-vagrant

@pchaigno pchaigno marked this pull request as ready for review December 15, 2022 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants