-
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
🐛 Fix clusterctl upgrade test (v1-0 => main) #5689
🐛 Fix clusterctl upgrade test (v1-0 => main) #5689
Conversation
d6f747c
to
32e22a7
Compare
stdErr = string(exitErr.Stderr) | ||
} | ||
} | ||
Expect(err).ToNot(HaveOccurred(), "failed to run clusterctl init:\nstdout:\n%s\nstderr:\n%s", string(out), stdErr) |
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 way we can read the stdErr and don't have to convert the byte array which is printed by printing the err
out, err := exec.Command(clusterctlBinaryPath, "version").Output() | ||
Expect(err).ToNot(HaveOccurred(), "error running clusterctl version") | ||
var clusterctlSupportsGenerateCluster bool | ||
if strings.Contains(string(out), "Major:\"1\"") { |
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.
Not really happy with this detection, but not sure what better alternatives would be
Maybe it's good enough given that we can drop it when we drop v0.3.x support.
/test pull-cluster-api-e2e-full-main |
Thanks for fixing this! |
/hold |
I'll have to take a closer look |
@sbueringer: The following test 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. |
/test pull-cluster-api-e2e-full-main |
Signed-off-by: Stefan Büringer [email protected]
b04e489
to
defe75e
Compare
@@ -1,6 +1,9 @@ | |||
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3 | |||
kind: Metadata | |||
releaseSeries: | |||
- major: 1 |
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.
@fabriziopandini I forgot that part
/test pull-cluster-api-e2e-full-main |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
The recently added clusterctl upgrade test v1-0 to main is currently broken: https://testgrid.k8s.io/sig-cluster-lifecycle-cluster-api#capi-e2e-upgrade-v1-0-to-main
This PR adds the configuration to make it work.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #