Skip to content
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

🌱 Add custom upgrade option to e2e #7341

Merged

Conversation

mboukhalfa
Copy link
Member

What this PR does / why we need it:
Add custom upgrade option to UpgradeManagementClusterAndWait
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 # 7311

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 4, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @mboukhalfa. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 4, 2022
@sbueringer
Copy link
Member

/ok-to-test
/test pull-cluster-api-e2e-full-main

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 4, 2022
@sbueringer
Copy link
Member

Thx!

/lgtm
/assign @fabriziopandini

/cherry-pick release-1.2
(to facilitate adoption)

@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.2 in a new PR and assign it to you.

In response to this:

Thx!

/lgtm
/assign @fabriziopandini

/cherry-pick release-1.2
(to facilitate adoption)

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.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 5, 2022
@mboukhalfa
Copy link
Member Author

/hold
We might want to add this option to ClusterctlUpgradeSpecInput as well

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 5, 2022
@sbueringer sbueringer mentioned this pull request Oct 5, 2022
5 tasks
@mboukhalfa mboukhalfa force-pushed the Add-custom-upgrade-option/mohammed branch from 1b69f90 to 93324a7 Compare October 6, 2022 12:09
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 6, 2022
@mboukhalfa mboukhalfa force-pushed the Add-custom-upgrade-option/mohammed branch 3 times, most recently from 88c7f88 to da12861 Compare October 6, 2022 13:09
@mboukhalfa
Copy link
Member Author

@sbueringer @fabriziopandini I added a test commit to verify that these changes can help with custom upgrade to a pre-release can we run full e2e on that?
if passed I will remove the test commit and unhold the PR

@sbueringer
Copy link
Member

Sure! good idea

/test pull-cluster-api-e2e-full-main

@mboukhalfa
Copy link
Member Author

Hmm 0.4 to custom upgrade v1.2.2 and v1.2.0-rc0 passed but not sure why 0.3 to current timed out ?

@mboukhalfa
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

1 similar comment
@mboukhalfa
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@mboukhalfa mboukhalfa requested review from fabriziopandini and removed request for stmcginnis and JoelSpeed October 7, 2022 12:21
@mboukhalfa
Copy link
Member Author

/unhold
full e2e passed with the test commit
test commit removed and PR ready to go in

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 7, 2022
@mboukhalfa mboukhalfa force-pushed the Add-custom-upgrade-option/mohammed branch 2 times, most recently from aa36cbd to e153d11 Compare October 10, 2022 14:29
@mboukhalfa mboukhalfa force-pushed the Add-custom-upgrade-option/mohammed branch 3 times, most recently from fcef696 to 9845ba5 Compare October 11, 2022 13:02
Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last one from my side

Once we basically have lgtm from me and Fabrizio.

Do you want to do another test with setting providers and ensuring it still works after the changes?

test/e2e/clusterctl_upgrade.go Outdated Show resolved Hide resolved
@mboukhalfa mboukhalfa force-pushed the Add-custom-upgrade-option/mohammed branch from 9845ba5 to 82fbe79 Compare October 11, 2022 14:17
@mboukhalfa
Copy link
Member Author

mboukhalfa commented Oct 11, 2022

Do you want to do another test with setting providers and ensuring it still works after the changes?

Added a test commit I will run full e2e

@mboukhalfa
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@mboukhalfa
Copy link
Member Author

as the full e2e passed I will remove the test commit then the PR will ready to go in

@mboukhalfa mboukhalfa force-pushed the Add-custom-upgrade-option/mohammed branch from 82fbe79 to 48ad7f5 Compare October 11, 2022 15:48
@sbueringer
Copy link
Member

Thank you!

/lgtm
/assign @fabriziopandini

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 11, 2022
@fabriziopandini
Copy link
Member

Great work!
/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 12, 2022
@k8s-ci-robot k8s-ci-robot merged commit e032bec into kubernetes-sigs:main Oct 12, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.3 milestone Oct 12, 2022
@k8s-infra-cherrypick-robot

@sbueringer: #7341 failed to apply on top of branch "release-1.2":

Applying: Add custom upgrade option to e2e
Using index info to reconstruct a base tree...
M	test/e2e/clusterctl_upgrade.go
M	test/framework/clusterctl/client.go
M	test/framework/clusterctl/clusterctl_helpers.go
Falling back to patching base and 3-way merge...
Auto-merging test/framework/clusterctl/clusterctl_helpers.go
CONFLICT (content): Merge conflict in test/framework/clusterctl/clusterctl_helpers.go
Auto-merging test/framework/clusterctl/client.go
CONFLICT (content): Merge conflict in test/framework/clusterctl/client.go
Auto-merging test/e2e/clusterctl_upgrade.go
CONFLICT (content): Merge conflict in test/e2e/clusterctl_upgrade.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Add custom upgrade option to e2e
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

Thx!

/lgtm
/assign @fabriziopandini

/cherry-pick release-1.2
(to facilitate adoption)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants