Skip to content

Update ginkgo v2#69

Merged
openshift-merge-robot merged 5 commits intomedik8s:mainfrom
razo7:update-ginkgo-v2
Feb 2, 2023
Merged

Update ginkgo v2#69
openshift-merge-robot merged 5 commits intomedik8s:mainfrom
razo7:update-ginkgo-v2

Conversation

@razo7
Copy link
Copy Markdown
Member

@razo7 razo7 commented Jan 2, 2023

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.

  • Replace ginkgo to ginkgo/v2
  • Run make go-verify
  • Apply Ginkgo v2 changes (RunSpecs, removing timeout BeforeSuite, and new flag names)

@razo7
Copy link
Copy Markdown
Member Author

razo7 commented Jan 31, 2023

/retest

razo7 added 2 commits February 1, 2023 10:15
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.
@razo7 razo7 changed the title [WIP] Update ginkgo v2 Update ginkgo v2 Feb 1, 2023
Copy link
Copy Markdown
Contributor

@clobrano clobrano left a 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

Comment thread Makefile Outdated
.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
Copy link
Copy Markdown
Member

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?

Comment thread 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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

razo7 added 3 commits February 1, 2023 16:50
Use name for suites
Not supported in Ginkgo v2
Ginkgo v2 supports different naming for flags
@openshift-ci openshift-ci Bot removed the lgtm label Feb 1, 2023
@razo7
Copy link
Copy Markdown
Member Author

razo7 commented Feb 2, 2023

/retest

Copy link
Copy Markdown
Member

@slintes slintes left a 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 😉

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Feb 2, 2023

[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

Details 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

@razo7
Copy link
Copy Markdown
Member Author

razo7 commented Feb 2, 2023

/unhold

@openshift-merge-robot openshift-merge-robot merged commit 56ed8e7 into medik8s:main Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants