Skip to content

Conversation

@marun
Copy link
Contributor

@marun marun commented Dec 21, 2024

Why this should be merged

Previously, ginkgo was installed with an explicit version which made it easy for the ginkgo command and the test code to be using different versions.

How this works

  • add new script scripts/ginkgo.sh that wraps go run execution with the go.mod version of ginkgo
  • simplify all test scripts to execute tests with new script
  • also: simplify test execution by running tests directly rather than via a test binary that needs to be built
    • this provides a nicer example for development usage since on-disk changes are always included

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

@marun marun added the testing This primarily focuses on testing label Dec 21, 2024
@marun marun self-assigned this Dec 21, 2024
@marun marun force-pushed the unify-ginkgo-version branch from 41ce3a6 to 96fa133 Compare December 22, 2024 20:49
@marun marun marked this pull request as ready for review December 22, 2024 20:50
@marun marun marked this pull request as draft December 22, 2024 20:53
@marun marun force-pushed the unify-ginkgo-version branch from 96fa133 to c30832b Compare December 22, 2024 20:55
@marun marun marked this pull request as ready for review December 22, 2024 20:55
@marun marun force-pushed the unify-ginkgo-version branch 3 times, most recently from 60f4f5b to 860f29b Compare December 22, 2024 22:09
Previously, ginkgo was installed with an explicit version which made
it easy for the ginkgo command and the test code to be using different
versions. Using `go run` without a tag ensures that the go.mod version
of ginkgo is always used for the command.
@marun marun force-pushed the unify-ginkgo-version branch from 860f29b to 934d00b Compare December 22, 2024 22:12
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Signed-off-by: marun <maru.newby@avalabs.org>

KUBECONFIG="$HOME/.kube/config" PATH="${PWD}/bin:$PATH" ginkgo -v ./tests/fixture/bootstrapmonitor/e2e
KUBECONFIG="$HOME/.kube/config" PATH="${PWD}/bin:$PATH" \
./scripts/ginkgo.sh -v ./tests/fixture/bootstrapmonitor/e2e
Copy link
Contributor

Choose a reason for hiding this comment

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

was this indentation intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 23, 2024
Merged via the queue into master with commit 9b5cea5 Dec 23, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the unify-ginkgo-version branch December 23, 2024 23:07
tsachiherman pushed a commit that referenced this pull request Jan 29, 2025
Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing This primarily focuses on testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants