-
Notifications
You must be signed in to change notification settings - Fork 243
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
PODMAN_USE_NAMESPACES to disable using namespaces on podman integration tests for podman v4.5 #6774
PODMAN_USE_NAMESPACES to disable using namespaces on podman integration tests for podman v4.5 #6774
Conversation
…on tests for podman v4.5
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
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.
Thanks for this! I'll check the workaround suggested by the Podman folks to isolate the tests, to see if that helps.
tests/helper/helper_podman.go
Outdated
@@ -14,6 +14,9 @@ import ( | |||
) | |||
|
|||
func GenerateAndSetContainersConf(dir string) { | |||
if os.Getenv("PODMAN_USE_NAMESPACES") == "false" { |
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.
I believe this can be a workaround for #6773 as well.
tests/helper/helper_podman.go
Outdated
@@ -14,6 +14,9 @@ import ( | |||
) | |||
|
|||
func GenerateAndSetContainersConf(dir string) { | |||
if os.Getenv("PODMAN_USE_NAMESPACES") == "false" { |
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.
if os.Getenv("PODMAN_USE_NAMESPACES") == "false" { | |
useNamespace, _ := strconv.ParseBool(os.Getenv("PODMAN_USE_NAMESPACES")) | |
if !useNamespace { |
Co-authored-by: Parthvi Vala <pvala@redhat.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/override windows-integration-test/Windows-test |
@feloy: Overrode contexts on behalf of feloy: OpenShift-Integration-tests/OpenShift-Integration-tests, windows-integration-test/Windows-test In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…ntegration tests for podman v4.5 (redhat-developer#6774)" We'll completely remove the usage of namespaces in the tests, as this wad removed from Podman v4.5.0, because namespaces on Podman were reportedly not really working [1]. This reverts commit ef9206a. [1] containers/podman@c4fe0af
What type of PR is this:
This PR introduces a new env var for integration tests: PODMAN_USE_NAMESPACES
This is useful when running podman tests on a local system with podman v4.5.0, as namespace feature has been removed from podman v4.5
(tests on github actions are not impacted because running on podman v3)
When using this option, you need to take care of not running tests in parallel, or some tests could fail.
Ex:
/area testing
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #6773
6773 was not the original issue, but this PR still fixes it./=
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: