Skip to content

go: run selected tests once per module - #84

Merged
tiborvass merged 3 commits into
mainfrom
codex/pr14802-current-go
Nov 2, 2026
Merged

tiborvass merged 3 commits into
mainfrom
codex/pr14802-current-go

Conversation

@tiborvass

@tiborvass tiborvass commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Run selected Go tests in one command per module. Keep a separate result for each test. Read the shared JSON report once and limit the size of each result. Report build and teardown failures even when no named test fails.

Access packages through their module. Remove the root go.packages() API. For example:

go.modules(ws).get(key: "sdk/go").packages(ws)

Replace native batch calls in golangci-lint and staticcheck. Keep checks on individual projects. Both lint suites use per-project calls supported by old and new collection engines. Collection lint helpers return Void; callers that expect a Check must use a project check instead.

Include the updated gobuild SDK and the regression checks in the existing development suites.

The Go module requires Dagger v1.0.0-beta.22 or later, which includes dagger/dagger#14802.

Keep one check per test. Read the shared report once and write a bounded
result for each check. Access packages through their module.
Keep a check on each project. Use per-project calls in both lint suites
to support old and new collection engines.
@tiborvass
tiborvass force-pushed the codex/pr14802-current-go branch from 4a65850 to 68a1c99 Compare November 1, 2026 01:21
@grouville
grouville self-requested a review November 1, 2026 07:53
@tiborvass
tiborvass merged commit 552271d into main Nov 2, 2026
77 checks passed
sipsma added a commit to grouville/dagger that referenced this pull request Nov 2, 2026
dagger/go#84 has merged. Pin its merge commit instead of the PR's head,
so CI's Go checks run the runner as released on dagger/go main. CI's
check discovery now lists the runner's Go test check, which takes the
selected collection, so the tests run again.

Signed-off-by: Erik Sipsma <[email protected]>
sipsma added a commit to dagger/dagger that referenced this pull request Nov 4, 2026
Move the workspace's Go module from dagger/go#84's merge commit to the
v0.4.0 release. That brings in Go 1.27 (dagger/go#90), the faster
workspace scan (dagger/go#91) and the module discovery index and test
check cuts (dagger/go#89).

dagger.lock records the tag and the sub-modules the release resolves,
as written by dagger.

Signed-off-by: Erik Sipsma <[email protected]>
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