Skip to content

Use new test scripts#418

Merged
chombium merged 2 commits intocloudfoundry:mainfrom
jorbaum:use-new-test-scripts
Feb 24, 2026
Merged

Use new test scripts#418
chombium merged 2 commits intocloudfoundry:mainfrom
jorbaum:use-new-test-scripts

Conversation

@jorbaum
Copy link
Contributor

@jorbaum jorbaum commented Feb 23, 2026

Add test scripts and use them in GH actions. Replaces go run with ginkgo and go vet with golangci-lint.

Does more or less the same as cloudfoundry/loggregator-release@612b9ad with enhancements in cloudfoundry/loggregator-agent-release#717

@jorbaum jorbaum requested a review from a team as a code owner February 23, 2026 08:54
We can do this because:

* golanci-lint already uses go vet internally
* ginkgo command does what `go test -race` did and more
Copy link
Contributor

@chombium chombium left a comment

Choose a reason for hiding this comment

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

LGTM apart from a small objection, to have everything in sync with the other projects.

if [ "${CI:-false}" = 'false' ]; then
flags="${flags} -p"
fi
pushd "${SCRIPT_DIR}/../.." > /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

Run Ginkgo directly as in the other projects like for example in loggregator-agent-release:
go run github.com/onsi/ginkgo/v2/ginkgo $flags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you elaborate why?

My idea was to fix this in loggregator-agent-release as well with PR cloudfoundry/loggregator-agent-release#717 . There I state:

Harmonize with lint script
This avoids recompiling ginkgo every time

Copy link
Contributor

@chombium chombium left a comment

Choose a reason for hiding this comment

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

We can keep the script like this, but we have to change the other project where ginkgo is run.

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Application Runtime Platform Working Group Feb 24, 2026
@chombium chombium merged commit c115fb8 into cloudfoundry:main Feb 24, 2026
3 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Application Runtime Platform Working Group Feb 24, 2026
@jorbaum jorbaum deleted the use-new-test-scripts branch February 26, 2026 08:32
@jorbaum
Copy link
Contributor Author

jorbaum commented Feb 26, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants