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

ginkgo v2 #366

Merged
merged 1 commit into from
Aug 3, 2022
Merged

ginkgo v2 #366

merged 1 commit into from
Aug 3, 2022

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Apr 19, 2022

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

Ginkgo v1 is deprecated and was replaced with the v2 rewrite.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

csi-sanity is now built with ginkgo v2. All camel case flags (e.g. -randomizeAllSpecs) are replaced with kebab case flags (e.g. -randomize-all-specs). The camel case versions continue to work but emit a deprecation warning. The "junitfile" configuration file option was removed because ginkgo now handles JUnit report creation itself.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 19, 2022
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 19, 2022
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 10, 2022
@VirrageS
Copy link

Hey @pohly is there a plan to merge it?

@pohly
Copy link
Contributor Author

pohly commented May 18, 2022

We can probably merge it at the same time as the Kubernetes switch. I want to have that ready first to avoid a situation where we switch in this repo, but then Kubernetes doesn't.

@VirrageS
Copy link

@pohly From what I see, Kubernetes MR to move to Ginkgo V2 has been merged. Could we merge this as well?

@toshipp toshipp mentioned this pull request Jul 26, 2022
4 tasks
@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 3, 2022
@pohly pohly changed the title WIP: ginkgo v2 ginkgo v2 Aug 3, 2022
@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 3, 2022
Ginkgo v1 is deprecated and was replaced with the v2 rewrite.

Ginkgo v2 no longer supports custom reporters, therefore support for the
"junit" configuration option was removed and "csi.junitfile" became
an alias for "gingko.junit-report".
@pohly
Copy link
Contributor Author

pohly commented Aug 3, 2022

@VirrageS: I've updated the PR and think that we can merge it now.

I'm undecided whether I should treat this as a breaking change (thus leading to csi-test v2.0.0). I'm leaning towards not bumping the major version because it doesn't really help with the migration (in contrast to other Go module version changes, ginkgo v1 and v2 cannot co-exist in the same binary) and the difference for command line users might not matter.

@pohly
Copy link
Contributor Author

pohly commented Aug 3, 2022

@VirrageS: any thoughts on this? Can you perhaps review?

@VirrageS
Copy link

VirrageS commented Aug 3, 2022

I've look at the changes, LGTM.

I'm undecided whether I should treat this as a breaking change (thus leading to csi-test v2.0.0). I'm leaning towards not bumping the major version because it doesn't really help with the migration (in contrast to other Go module version changes, ginkgo v1 and v2 cannot co-exist in the same binary) and the difference for command line users might not matter.

I think csi-test is currently at v4 actually. I would say that this is quite breaking change as I think people who are using csi-test right now with Ginkgo v1 in their codebase might stumble upon incompatibilities. I think we should bump csi-test to v5. Wdyt?

@pohly
Copy link
Contributor Author

pohly commented Aug 3, 2022

Okay, let's bump to v5 then.

@msau42
Copy link
Collaborator

msau42 commented Aug 3, 2022

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 3, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msau42, pohly

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 merged commit ac64484 into kubernetes-csi:master Aug 3, 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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants