-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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/e2e: use fresh network config dir for each test #17975
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note while this works it still needs some cleanup follow-up changes thus I marked it as draft. |
654077e
to
d4a2e8e
Compare
The e2e test are isolated and have their own --root/--runroot arguments. However networks were always shared, this causes problem with tests that do a prune or reset because they can effect other parallel running tests. Over the time I fixed some of of these cases to use their own config dir but containers#17946 suggests that this is not enough. Instead of trying to find and fix these tests just go with the big hammer and make every test use a new clean network config directory. This will also make the use of `defer podmanTest.removeNetwork(...)` unnecessary. This is required at the moment for every test which creates a network. However to keep the diff small and to see if it is even working I will do it later in a follow up commit. Fixes containers#17946 Signed-off-by: Paul Holzinger <[email protected]>
Now that we ran each test with their own custom config there is no need to have the special cases anymore. Signed-off-by: Paul Holzinger <[email protected]>
Now that each test has its own custom network config dir we now longer have to explicitly cleanup the network because it is just a file which will be deleted in the test cleanup anyway. Signed-off-by: Paul Holzinger <[email protected]>
d4a2e8e
to
4f281ec
Compare
Ok this is not going to work, it will introduce much more flakes than it fixes. Thus I am closing this PR as it is incorrect, the correct fix is to manually check for all tests which do a prune or reset and make those are using a custom directory, see the change from the second commit here. |
The e2e test are isolated and have their own --root/--runroot arguments. However networks were always shared, this causes problem with tests that do a prune or reset because they can effect other parallel running tests.
Over the time I fixed some of of these cases to use their own config dir but #17946 suggests that this is not enough. Instead of trying to find and fix these tests just go with the big hammer and make every test use a new clean network config directory.
This will also make the use of
defer podmanTest.removeNetwork(...)
unnecessary. This is required at the moment for every test which creates a network. However to keep the diff small and to see if it is even working I will do it later in a follow up commit.Fixes #17946
Does this PR introduce a user-facing change?