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" (v7 branch) #2926

Merged
merged 2 commits into from
May 15, 2024
Merged

Install ginkgo "out of the box" (v7 branch) #2926

merged 2 commits into from
May 15, 2024

Conversation

chinigo
Copy link
Contributor

@chinigo chinigo commented May 15, 2024

Note

Functionally a duplicate of #2920, applied to the v7 branch.

Description of the Change

This change to the v7 branch 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

chinigo added 2 commits May 15, 2024 10:16
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.
@chinigo chinigo changed the title Install ginkgo by default (v7 branch) Install ginkgo "out of the box" (v7 branch) May 15, 2024
@chinigo chinigo marked this pull request as ready for review May 15, 2024 14:27
Copy link
Member

@gururajsh gururajsh 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 b94457e into cloudfoundry:v7 May 15, 2024
9 of 10 checks passed
@chinigo chinigo deleted the install-ginkgo-by-default-v7 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.

2 participants