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

🌱 migrate kubebuilder CLI tests to ginkgo/v2 (this pr does not change the scaffolds done by the tool) #2876

Conversation

jakobmoellerdev
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev commented Aug 15, 2022

This PR makes sure to migrate kubebuilder and the corresponding scaffolding to gingko/v2. Currently the entire test suite of kubebuilder itself is migrated, however there are 2 things missing:

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 15, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @jakobmoellersap. 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.

@jakobmoellerdev jakobmoellerdev changed the title kubebuilder ginkgo => v2 migrate kubebuilder and scaffolding to ginkgo/v2 Aug 15, 2022
@jakobmoellerdev jakobmoellerdev changed the title migrate kubebuilder and scaffolding to ginkgo/v2 ⚠️ migrate kubebuilder and scaffolding to ginkgo/v2 Aug 15, 2022
@jakobmoellerdev
Copy link
Contributor Author

Just saw that there is a previous pull for this in #2522 that got closed. Also leaving this in draft until we have dedicated v4 scaffolding

@camilamacedo86
Copy link
Member

/ok-to-test

@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 Aug 16, 2022
@jakobmoellerdev
Copy link
Contributor Author

I would suggest to even open up this PR normally (to upgrade kubebuilder and its test) and then a follow-up PR for the scaffolding. That would make it a bit easier to maintain / review / plan. WDYT @camilamacedo86 ?

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 23, 2022
@camilamacedo86
Copy link
Member

camilamacedo86 commented Aug 23, 2022

Hi @jakobmoellersap that is fine, you can work on this as normal PR. No problem at all.

we can also:

/ok-to-test

/test-all

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2022
@jakobmoellerdev
Copy link
Contributor Author

/retest

@jakobmoellerdev
Copy link
Contributor Author

/test pull-kubebuilder-e2e-k8s-1-19-16

@jakobmoellerdev jakobmoellerdev changed the title ⚠️ migrate kubebuilder and scaffolding to ginkgo/v2 🌱 migrate kubebuilder tests to ginkgo/v2 Aug 30, 2022
@jakobmoellerdev jakobmoellerdev marked this pull request as ready for review August 30, 2022 07:13
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 30, 2022
@jakobmoellerdev
Copy link
Contributor Author

/cc @camilamacedo86

Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

Hi @jakobmoellersap,

I understand that this PR just change the CLI tests and not the tests scaffolded by the tool.

You are right and migrating the scaffold is a breaking change, however, in this case, I think we will not have the choice because controller-runtime and k8s which are dependencies of this project introduced that, see: kubernetes-sigs/controller-runtime#1977. Therefore, to keep the compatibility and look for maintainability it seems that the best approach is in a follow up we also change the default scaffolds and add the warning (⚠️ ). In the changelog, release we can provide the info and steps to help out the users change it in their projects easily.

So, if you would like to work on the follow up please feel free.

Also, thank you for your terrific work and contribution to the project 🥇

For me it is all fine:

/approved

c/c @everettraven @varshaprasad96

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2022
@camilamacedo86 camilamacedo86 changed the title 🌱 migrate kubebuilder tests to ginkgo/v2 🌱 migrate kubebuilder CLI tests to ginkgo/v2 (this pr does not change the scaffolds done by the tool) Sep 1, 2022
@jakobmoellerdev
Copy link
Contributor Author

I will pick up the ginkgo v2 scaffolding migration next

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, jakobmoellersap, varshaprasad96

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

@camilamacedo86
Copy link
Member

/lgtm

Receive 2 approvals

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 2, 2022
@k8s-ci-robot k8s-ci-robot merged commit ed5d217 into kubernetes-sigs:master Sep 2, 2022
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.

4 participants