Repository navigation
ci: run unit tests with -race, pin test tooling, add a ci-ok aggregate check - #14321
Merged
Merged
Conversation
The unit and e2e test runs fetched gotestsum@latest and `make fmt` gofumpt@latest at execution time, so a new upstream release could break the build with no change in this repository. Pin both to explicit versions. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
The unit suite ran without -race, so data races in the concurrent code paths (scheduler, watch, executor) were only caught if they happened to corrupt a result. Build the test stage with cgo (gcc + musl-dev) and pass -race to gotestsum. The suite is race-clean: 1100 tests, no report. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
…ming test TestBuildTLS slept a fixed second after the dind daemon logged that it listens, hoping the client certificates were written; poll for them instead. TestForwardKeepsStreamingAfterHalfClose had 150ms of margin between each chunk and the 300ms idle grace, which a loaded CI runner can eat; use 100ms chunks against a 1s grace. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Branch protection currently has to list each job and every entry of the e2e matrix, so changing the matrix means changing repository settings. Add a single ci-ok job that fails if any gating job failed or was cancelled and accepts jobs skipped by their own condition, so it can be the only required check. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
docker-agent
reviewed
Oct 9, 2026
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
docker-agent
reviewed
Oct 9, 2026
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does, in one sentence
Makes the unit-test CI stricter and less dependent on outside factors: races are now detected, test tooling is pinned, two timing-fragile tests get a safe margin, and a single
ci-okcheck summarizes the gating jobs.Context
gotestsumandgofumptare fetched at@latestwhen the tests ormake fmtrun, so an upstream release can break the build without any change in this repository.TestBuildTLSwaits a fixed second for the dind certificates, and the relay streaming test leaves only 150ms between a chunk and the 300ms idle grace. Both can fail on a loaded runner.What the PR brings
-race(theteststage now builds with cgo). The suite is race-clean today: 1100 tests, no report.gotestsumandgofumptare pinned to explicit versions.TestBuildTLSpolls for the client certificates instead of sleeping, and the relay test streams 100ms chunks against a 1s grace.ci-okjob fails if any gating job failed, was cancelled or was skipped; only the pull-request-only image tests may be skipped.coverage(external service) andrelease(tags only) are deliberately left out. It changes nothing by itself: a maintainer can make it the required check afterwards.The other
time.Sleepcalls in the tests were left alone: they either run undersynctest, deliberately widen a race window, or assert that nothing happens.🤖 Generated with Claude Code