-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 to ginkgo v2 #1977
⚠ Migrate to ginkgo v2 #1977
Conversation
@schrej: GitHub didn't allow me to request PR reviews from the following users: matteoolivi. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
But we only import it in _test.go files and in the printer package, so this shouldn't matter for consumers, right? |
I just tested with the cluster-api project, manually replacing controller-runtime with this branch there. Tests can still run, even though CAPI is still on ginkgo v1. So you're right, it shouldn't matter to consumers in our case. I'll revert the removal of the two helpers in |
2cdde96
to
ccc9e3d
Compare
4b246c2
to
3b34d95
Compare
Ok. This is now using the I've adapted the test scripts to install the One major drawback of the |
Yeah.
The |
It's the runtime which calls klog.Error, which then seems to go to stderr. Does the suite call |
FYI, it is possible to enable JUnit output without using the ginkgo cli. You can either do |
The issue with that was that it made the tests always exit with rc0 even when there are failures |
Which of the two options? |
Hmm, both works for me (PMEM-CSI test/e2e, using ginkgo v2 v2.1.4). FYI, I have to use this fork of the controller-runtime for that project because otherwise I would be stuck at ginkgo v1 and couldn't update to Kubernetes 1.25. I'll have to keep that in a WIP PR until this PR gets merged and released. |
It was reported here, maybe it doesn't happen anymore? onsi/ginkgo#706
Why? Shouldn't we only depend on ginkgo in _test.go files? If anyhow possible, we shouldn't force users to use either version |
Probably because we're currently importing ginkgo v1 in |
But v2 is imported as |
/lgtm |
As seen in: kubernetes-sigs/controller-runtime#1977 Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
…ckage controller-runtime does not provide the pkg/envtest/printer package anymore since it was migrated to Ginkgo v2. Using the package prevents kubernetes-csi-addons from moving to a more recent version of controller-runtime (and other dependencies). See-also: kubernetes-sigs/controller-runtime#1977 Signed-off-by: Niels de Vos <ndevos@redhat.com>
…ckage controller-runtime does not provide the pkg/envtest/printer package anymore since it was migrated to Ginkgo v2. Using the package prevents kubernetes-csi-addons from moving to a more recent version of controller-runtime (and other dependencies). See-also: kubernetes-sigs/controller-runtime#1977 Signed-off-by: Niels de Vos <ndevos@redhat.com>
As seen in: kubernetes-sigs/controller-runtime#1977 Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
As seen in: kubernetes-sigs/controller-runtime#1977 Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
Revives #1792, thanks to @acumino for all your work on this.
Fixes: #1545
Important Note:
-> Per node timeout has been removed to prevent the wrongly marking a test as failure which is caused by some other test. Read more about it here
-> Custom reporters have been deprecated in ginkgo v2 and will be removed in future releases.
Note: This is a breaking change for two reasons:
pkg/envtest/printer
that were used with ginkgo v1. Since you can't use both versions at the same time, this isn't relevant though.Upstream upgraded already: kubernetes/kubernetes#109111
/cc @matteoolivi @camilamacedo86