-
Notifications
You must be signed in to change notification settings - Fork 932
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
Install ginkgo "out of the box" #2920
Install ginkgo "out of the box" #2920
Conversation
This change installs the version of Ginkgo specified in go.mod, modifies the Makefile to do this before each flavor of test, and simplifies the CI tasks that invoke these tests. Prior to this change, the Makefile assumes the presence of a system-level installation of Ginkgo. That installation of Ginkgo will not necessarily match the version specified in our go.mod. This introduces the (slight) possibility of subtle differences in the behavior of the test library. It also complicates spinning up a new environment, either for a developer or in CI.
These matchers are imported as needed in the test files that need them. There is no need to install them as a system-level dependency, so let's not.
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.
Looks reasonable to me. You'll want to open this change against v8 and v7 branches as well
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
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
Description of the Change
This change installs the version of Ginkgo specified in
go.mod
, modifies theMakefile
to do this before each flavor of test, and simplifies the CI tasks that invoke these tests.Why Is This PR Valuable?
Prior to this change, the
Makefile
assumes the presence of a system-level installation of Ginkgo. That installation of Ginkgo will not necessarily match the version specified in ourgo.mod
.This introduces the (slight) possibility of subtle differences in the behavior of the test library. It also complicates spinning up a new environment, either for a developer or in CI.
Applicable Issues
n/a
How Urgent Is The Change?
Not urgent.
Related PRs
v7
branchv8
branch