-
Notifications
You must be signed in to change notification settings - Fork 1.1k
test: config tests should ignore default runtime environment variable #6280
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: config tests should ignore default runtime environment variable #6280
Conversation
|
Hi @littlejawa. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6280 +/- ##
==========================================
- Coverage 49.54% 49.53% -0.02%
==========================================
Files 153 153
Lines 17088 17088
==========================================
- Hits 8466 8464 -2
- Misses 7558 7559 +1
- Partials 1064 1065 +1 |
|
@haircommander - could you take a look? This is generalizing what we did for your PR #6192 |
|
any reason not to do this in |
I didn't want to go that far, because some of the tests do not need it : it makes sense only for tests that plays with the default config. |
|
/approve |
|
/retest |
1 similar comment
|
/retest |
|
A friendly reminder that this PR had no activity for 30 days. |
|
you've got a shfmt error @littlejawa |
bdef3c9 to
350a9da
Compare
|
/retest |
|
/test kata-containers |
|
@haircommander - this one is pretty old and low priority, but I think it still makes sense. |
|
/retest |
|
/retest |
1bd637b to
aa92004
Compare
|
/retest |
|
/test ci-fedora-kata |
Config tests are meant to verify the configuration code, by exercising it in specific configurations. When run in an environment where the default runtime is modified, these tests fail because the configuration they use do not have this runtime defined. As the runtime itself is not involved in these tests, it seems safe to unset the CONTAINER_DEFAULT_RUNTIME variable in their context. Signed-off-by: Julien Ropé <[email protected]>
aa92004 to
6e98e42
Compare
|
/retest |
|
/test ci-fedora-kata |
1 similar comment
|
/test ci-fedora-kata |
|
/retest |
|
/test ci-fedora-integration |
|
@cri-o/cri-o-maintainers This one has been around for a while, and already approved. Can you have a look? |
|
/lgtm |
|
/retest |
|
/test ci-fedora-integration |
|
/retest |
|
/test ci-fedora-integration |
|
/retest |
1 similar comment
|
/retest |
|
/test ci-fedora-integration |
|
/test ci-cgroupv2-integration |
|
/retest |
|
/test ci-crun-e2e |
|
@littlejawa: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
/override ci/prow/ci-cgroupv2-e2e-crun |
|
@haircommander: Overrode contexts on behalf of haircommander: ci/prow/ci-cgroupv2-e2e-crun, ci/prow/ci-crun-e2e DetailsIn 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-sigs/prow repository. |
What type of PR is this?
/kind ci
What this PR does / why we need it:
Config tests are meant to verify the configuration code, by exercising it in specific configurations.
When run in an environment where the default runtime is modified, these tests fail because the configuration they use do not have this runtime defined.
As the runtime itself is not involved in these tests, it seems safe to unset the CONTAINER_DEFAULT_RUNTIME variable in their context.
Which issue(s) this PR fixes:
None
Does this PR introduce a user-facing change?