-
Notifications
You must be signed in to change notification settings - Fork 13
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 #69
Update ginkgo v2 #69
Conversation
d8ed845
to
69da861
Compare
/retest |
Ginkgo v1.16.5 is the last Ginkgo v1 release, Oct 2021, before bumping to a new major release which has been introduced on 2022. Ginkgo v2.8.0 is the latest version and it has been releasd on Jan 2023.
Add missing and remove unused modules, make vendored copy of dependencies, and verify dependencies have expected content.
69da861
to
b308ccd
Compare
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.
/lgtm
Giving others a chance to review as well, feel free to unhold
/hold
Makefile
Outdated
@@ -177,7 +177,7 @@ test: test-no-verify verify-unchanged ## Generate and format code, run tests, ge | |||
|
|||
.PHONY: test-no-verify | |||
test-no-verify: manifests generate go-verify fmt vet envtest ginkgo ## Generate and format code, and run tests | |||
ACK_GINKGO_DEPRECATIONS=$(GINKGO_VERSION) KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --bin-dir $(LOCALBIN))" $(GINKGO) -v -r --keepGoing -requireSuite ./api/... ./controllers/... -coverprofile cover.out | |||
ACK_GINKGO_DEPRECATIONS=$(GINKGO_VERSION) KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --bin-dir $(LOCALBIN))" $(GINKGO) -v -r --keep-going -require-suite ./api/... ./controllers/... -coverprofile cover.out |
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.
probably ACK_GINKGO_DEPRECATIONS can be removed?
hack/functest.sh
Outdated
ACK_GINKGO_DEPRECATIONS=$1 ./bin/ginkgo/$1/ginkgo $NO_COLOR -v -r --keepGoing -requireSuite ./test/e2e | ||
# --keep-going: don't stop on failing suite | ||
# -require-suite: fail if tests are not executed because of missing suite | ||
ACK_GINKGO_DEPRECATIONS=$1 ./bin/ginkgo/$1/ginkgo $NO_COLOR -v -r --keep-going -require-suite ./test/e2e |
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.
same here
Use name for suites
Not supported in Ginkgo v2
Ginkgo v2 supports different naming for flags
b308ccd
to
c2a404b
Compare
c2a404b
to
8d8bd9a
Compare
/retest |
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.
please remove the last line from the description 😉
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: razo7, slintes 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 |
/unhold |
NMO has been using the last Ginkgo v1 version,
v1.16.5
, from Oct 2021.This PR bumps to a new major release of Ginkgo, and to the latest Ginkgo version, v2.8.0.
ginkgo
toginkgo/v2
make go-verify