-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[WIP] persistent reservation tests: run in ordered container #12434
base: main
Are you sure you want to change the base?
[WIP] persistent reservation tests: run in ordered container #12434
Conversation
this allows us to avoid re-rolling out the feature gate change for each test. BeforeAll and AfterAll readout: x Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
some tests (especially with before/afterall) will want to not have the kubevirt CR reverted after each tests, and instead do so themselves at the appropriate time. Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc @alicefr @xpivarc @mhenriks
wdyt? |
/test pull-kubevirt-e2e-k8s-1.30-sig-storage |
@akalenyu that's a great improvement, many thanks! |
@@ -166,5 +166,10 @@ func resetToDefaultConfig() { | |||
// we can just skip the restore step. | |||
return | |||
} | |||
if ok, _ := CurrentSpecReport().MatchesLabelFilter("kvmanualreset"); ok { |
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.
This reminds me that we probably don't want to blindly skip the serial case but assert the config have not changed.
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.
it did though. with my changes you'll never get equality here
(this is an aftereach as opposed to afterall doing the teardown)
@@ -39,7 +39,7 @@ import ( | |||
// feature gate PersistentReservation. The enablement/disablement of this | |||
// feature gate redeploys virt-handler pod, and this might interfer with other | |||
// tests. | |||
var _ = SIGDescribe("[Serial]SCSI persistent reservation", Serial, func() { | |||
var _ = SIGDescribe("[Serial]SCSI persistent reservation", Label("kvmanualreset"), Serial, Ordered, func() { |
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.
What is the biggest time consumer here?
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.
rerolling the kubevirt installation after enabling/disabling the persistent reservation feature gate
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.
So I would be inclined to enable the feature gate for Kubevirt testsuite as whole and remove the enabling here.
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.
yeah me too.. talking to the ginkgo maintainer this "ordered" container thing is not really advised
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.
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.
@xpivarc we still need to add a configuration for this feature, but in general persistent reservation should always been off by default since it deploys an additional privileged container. Right now, we are wrongly using the fg for enabling/disabling the feature
PR needs rebase. 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 this PR does
Refactor the long persistent reservation suite to only perform teardown once after it's done.
This allows us to avoid re-rolling out the feature gate change for each
test. BeforeAll and AfterAll readout: https://onsi.github.io/ginkgo/#setup-in-ordered-containers-beforeall-and-afterall
Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note