-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Ensure correct IPC mode handling in system tests #25440
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ayato Tokubi <[email protected]>
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.
Wondering if it would be better to use CONTAINERS_CONF_OVERRIDE=
and an empty config file to test if the default shareable is used, but either way, the proposed fix is an improvement, so:
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bitoku, giuseppe 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.
IMO this is the wrong thing to do, the tests are not designed to run with arbitrary containers.conf settings and I am sure many more will fail.
We assume certain defaults and it is a good thing to actual test/use the defaults so we notice what breaks if someone changes the default.
In particular this change turn this test into podman --ipc=shareable
which does the same thing already so we now test the same thing twice which is not good.
So I would strongly prefer to not merge this, or similar patches.
Thanks for the comment!
Then why we have
If we want to care about that, why don't we have the test to ensure that? Currently the test aims to check two things (the config default and ipc flag), which is worse I think.
This is a kind of setup for the next |
If so, don't you have any test sets that ensures that the system has a capability of running podman? |
Because we target a certain amount of envs that we test, local vs remote, fedora vs debian, selinux, etc...
The test is called --ipc=container, the assumption is that this works because the default ipc mode is shareable. And that is how most users would actually use it so I don't see what is wrong with it.
I don't understand what that means, what capabilities? Podman is very complex and what will or will not work totally depends on the underlying environment. I have no idea what you want to test for, Our tests are designed for podman upstream testing and distro gating testing (primarily fedora and RHEL). I am not interested in targeting more envs simply due the high maintenance required. |
ok. |
In environment where the default ipc mode is host, it fails the test.
This PR ensures the ipc mode.
Does this PR introduce a user-facing change?