Repository navigation
ci: make test binaries faster to build - #11735
Merged
Merged
Conversation
vito
approved these changes
Jan 23, 2026
Comment on lines
+2
to
+3
| let testSpecific(run: [String!]!, ebpfProgs: [String!], pkg: String, race: Boolean): Void { | ||
| engineDev().test(race: race, run: run.join("|"), ebpfProgs: ebpfProgs, pkg: pkg ?? "./core/integration") |
Contributor
There was a problem hiding this comment.
nit: You can set default values in args, and make them required on the receiving side which is handy for cases like this:
Suggested change
| let testSpecific(run: [String!]!, ebpfProgs: [String!], pkg: String, race: Boolean): Void { | |
| engineDev().test(race: race, run: run.join("|"), ebpfProgs: ebpfProgs, pkg: pkg ?? "./core/integration") | |
| let testSpecific(run: [String!]!, ebpfProgs: [String!], pkg: String! = "./core/integration", race: Boolean): Void { | |
| engineDev().test(race: race, run: run.join("|"), ebpfProgs: ebpfProgs, pkg: pkg) |
On the calling side, the type for the pkg arg is optional (String).
Comment on lines
+6
to
+7
| let testSkip(skip: [String!]!, ebpfProgs: [String!], pkg: String, race: Boolean): Void { | ||
| engineDev().test(race: race, skip: skip.join("|"), ebpfProgs: ebpfProgs, pkg: pkg ?? "./core/integration") |
Contributor
There was a problem hiding this comment.
Suggested change
| let testSkip(skip: [String!]!, ebpfProgs: [String!], pkg: String, race: Boolean): Void { | |
| engineDev().test(race: race, skip: skip.join("|"), ebpfProgs: ebpfProgs, pkg: pkg ?? "./core/integration") | |
| let testSkip(skip: [String!]!, ebpfProgs: [String!], pkg: String! = "./core/integration", race: Boolean): Void { | |
| engineDev().test(race: race, skip: skip.join("|"), ebpfProgs: ebpfProgs, pkg: pkg) |
We were running all tests with -race, which means that we don't hit earlier go build cache and is generally quite slow to build. It also is not incredibly valuable in that it applies to the client side of integ tests, which isn't the main point of the integ tests. You could see this in telemetry because there was often a large gap between the start of the withExec for `go test ...` and the actual start of spans for tests. This was exacerbated by the fact that we defaulted to running go test against `./...`, which re-built and re-ran a number of test packages that never actually got executed. This change updates us to only run against `./...` and with `-race` in `testBase`. Every other suite doesn't use `-race` and is package specific. Also snuck in a fix to break `TestCgroups` (which is archaic) to TestProvision and TestTelemetry as separate workflows. Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
sipsma
force-pushed
the
faster-test-build
branch
from
January 23, 2026 23:59
266c905 to
9be2020
Compare
sipsma
added a commit
that referenced
this pull request
Oct 8, 2026
The TestClientGenerator suite was deleted from core/integration in the workspace overlay and export change (#13600). Client generation tests are planned to move to the SDK modules, per future/sdk-tests.md. Since then the test-split/test-client-generator check builds a dev engine and runs go test with a selector that matches nothing: testing: warning: no tests to run ok github.com/dagger/dagger/core/integration 0.066s [no tests to run] Remove the check, its release-branch workflow entry, and the now-dead skip entries in the base and package shards. A future TestClientGenerator suite would run in the base catch-all shard by default. Also drop the release-branch workflow entry for test-split/test-cgroups. That check was split into test-provision and test-telemetry in #11735 and no longer exists. Also point a helper comment that named the deleted suite at TestGenerators, which uses the same helper. Signed-off-by: Erik Sipsma <[email protected]>
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.
We were running all tests with -race, which means that we don't hit earlier go build cache and is generally quite slow to build. It also is not incredibly valuable in that it applies to the client side of integ tests, which isn't the main point of the integ tests.
You could see this in telemetry because there was often a large gap between the start of the withExec for
go test ...and the actual start of spans for tests.This was exacerbated by the fact that we defaulted to running go test against
./..., which re-built and re-ran a number of test packages that never actually got executed.This change updates us to only run against
./...and with-raceintestBase. Every other suite doesn't use-raceand is package specific.Also snuck in a fix to break
TestCgroups(which is archaic) to TestProvision and TestTelemetry as separate checks.