-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
⚠️ Update ginkgo@v2.1.1 and gomega@v1.18.0 #1792
Conversation
Welcome @acumino! |
Hi @acumino. 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 Once the patch is verified, the new status will be reflected by the 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: acumino The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/invite @FillZpp |
/ping @alvaroaleman |
/ok-to-test |
/test pull-controller-runtime-test-master |
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.
It seems this doesn't build?
The error you are seeing in CI is apparently golangci-lints way of saying "Your code doesn't" build, i.E. retesting is not going to help. Ref: golangci/golangci-lint#825 |
5c3fcbb
to
bba0864
Compare
/retest all |
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.
From what I can see, the removal of those two helpers for gingko v1 in pkg/envtest/printer
makes this a breaking change.
Yes, Ginkgo does a major bump, but it is possible to have both v1 and v2 as a dependency in the same project. Bumping Ginkgo alone only influences the tests of controller-runtime, but not the tests of dependant projects. Cluster API is still using Ginkgo v1 and works fine when running its test with this PR.
Since Cluster API doesn't use the two removed helpers, it's not affected by this PR at all.
The removal of those helpers are also the only changes happening in files that do not end with _test.go
. Any change inside of _test.go
files will not have an effect on projects using controller-runtime as a dependency.
cc @camilamacedo86 (thanks for staying persistent! I totally missed those helpers on the first review.)
// see https://github.com/onsi/ginkgo/issues/706 | ||
// When using this you must make sure to grep for failures in your junit xmls and fail the run | ||
// if there are any. | ||
func NewProwReporter(suiteName string) ginkgo.Reporter { |
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.
Removing this makes it a breaking change.
https://cs.github.com/?scopeName=All+repos&scope=&q=+printer.NewProwReporter
// NewlineReporter is Reporter that Prints a newline after the default Reporter output so that the results | ||
// are correctly parsed by test automation. | ||
// See issue https://github.com/jstemmer/go-junit-report/issues/31 | ||
type NewlineReporter struct{} |
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.
Removing this makes it a breaking change.
https://cs.github.com/?scopeName=All+repos&scope=&q=+printer.NewLineReporter
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.
See that you are changing the test_.go files. Those with controller runtime projects will also need to change their _test.go files as well, right? They might use methods that will be affected or not. For example, the default scaffolds done by Kubebuilder will be affected if we need to bump v2.
So, the correct mojo here would be
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.
They will need to change their tests if they are using either printer.NewLineReporter()
or printer.NewProwReporter()
.
Any change that we do in our _test.go
files does not affect any users of controller-runtime. Code in _test.go
files can't be imported, so it also can't affect their implementation. That's why I initially thought this is not a breaking change.
I would propose to move the removal of these two reporters to a separate PR, so this one does not have to be breaking. And then maybe postpone the removal of those helpers a bit to allow more time for migration to v2.
This is only a temporary adaption, as we are using the temporary compatibility layer, which will be removed again soon. Hence, we have to rework this and adapt for the long-term.
@acumino: 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. |
@acumino: PR needs rebase. 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. |
Why was this closed? Can someone provide an explanation/a status update? |
@matteoolivi presumably bceause @acumino didn't have the cycles to finish it |
@alvaroaleman . Oh. I can definitely relate to that. |
Migrate ginkgo to v2.
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.