-
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
🌱 E2E tests for self-hosted upgrades #4671
Conversation
[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 |
Hi @tcordeu. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. 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. |
Even tough the tests seem to be running fine I am seeing logs like this when testing the upgrades:
@fabriziopandini, do you have any idea as to why this is happening? |
56803d6
to
70b2a08
Compare
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.
@tcordeu changes looks fine, however, having in mind #4672, I'm wondering if we should change a little bit approach and have two test suites instead of having two test specs inside the same suite.
In practice, we need to change test/e2e/self_hosted_test.go in order to have
var _ = Describe("When testing Cluster API working on single control plane self-hosted clusters", func() {
SelfHostedSpec(context.TODO(), func() SelfHostedSpecInput {
return SelfHostedSpecInput{
...
ControlPlaneMachineCount: 1,
}
})
})
var _ = Describe("When testing Cluster API working on HA self-hosted clusters", func() {
SelfHostedSpec(context.TODO(), func() SelfHostedSpecInput {
return SelfHostedSpecInput{
...
ControlPlaneMachineCount: 3,
}
})
})
And make the new field SelfHostedSpecInput.ControlPlaneMachineCount
to flow down to ApplyClusterTemplateAndWait
(Last but not least, we should revert back to having a single It
statement inside SelfHostedSpec
)
wdyt?
I assume the error happens because when we install providers, we start a go routine that streams logs from the pods hosting our controllers; however, if those pods gets destroyed/re-created to another machine (like during an upgrade), the streaming code in the go routine fails. |
Seems like a good idea considering #4672, I will change it! |
70b2a08
to
5010a23
Compare
@fabriziopandini I implemented the changes you proposed, please give it a look when you're free! |
/ok-to-test |
/lgtm |
@tcordeu the test is failing |
Upon further review
What do you think? |
@tcordeu god catch. |
/lgtm cancel |
@tcordeu: 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/test-infra repository. |
@@ -24,16 +24,28 @@ import ( | |||
. "github.com/onsi/ginkgo" | |||
) | |||
|
|||
var _ = Describe("When testing Cluster API working on self-hosted clusters", func() { | |||
|
|||
var _ = Describe("When testing Cluster API working on single control plane self-hosted clusters", func() { | |||
SelfHostedSpec(context.TODO(), func() SelfHostedSpecInput { |
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.
Lets use the global contest introduced by #4706 instead of context.TODO
@tcordeu do you have time to rebase this PR? |
@tcordeu: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/close |
@fabriziopandini: Closed this PR. 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. |
What this PR does / why we need it:
Add E2E tests:
Which issue(s) this PR fixes
Fixes #3728