Skip to content
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

Merged
merged 2 commits into from
May 15, 2024
Merged

Install ginkgo "out of the box" #2920

merged 2 commits into from
May 15, 2024

Conversation

chinigo
Copy link
Contributor

@chinigo chinigo commented May 14, 2024

Description of the Change

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.

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 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.

Applicable Issues

n/a

How Urgent Is The Change?

Not urgent.

Related PRs

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.
Copy link

linux-foundation-easycla bot commented May 14, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Makefile Outdated Show resolved Hide resolved
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.
Copy link
Member

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

Copy link
Contributor

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

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

LGTM

@chinigo
Copy link
Contributor Author

chinigo commented May 15, 2024

Looks reasonable to me. You'll want to open this change against v8 and v7 branches as well

@moleske thank you for the reminder. I've opened #2926 and #2927 to add these changes to those branches as well.

Copy link
Contributor

@Samze Samze left a comment

Choose a reason for hiding this comment

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

LGTM

@gururajsh gururajsh merged commit cab7051 into cloudfoundry:main May 15, 2024
12 checks passed
@chinigo chinigo deleted the install-ginkgo-by-default branch May 16, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants