Repository navigation
Open
Labels
Description
DiffCI selects the tests a change affects so AI coding agents (and people) can run them before pushing. Go is supported today (src/repo/adapters/go.ts, built on go list), but many real Go repositories still fall back to the full suite on every change. This issue tracks closing those fallbacks, and it's open for contributors.
Today a Go repository runs the full suite when it:
- also has TypeScript/JavaScript code (a Go API with a TS frontend)
- contains a single
//go:generate, cgo, assembly orpluginuse anywhere - uses
go.work, or has more than onego.modwithoutgo.scope - uses a
replacedirective that points inside the repository while scoped - needs build tags (
GOFLAGS=-tags=...) - changes a file under
testdata/ - changes
go.modorgo.sum
Steps (each is one PR; take any that are unblocked):
- Mixed Go + TypeScript repositories #77 Mixed Go + TypeScript repositories
- Scope go:generate, cgo, assembly and plugin fallbacks to the affected package #78 Scope
go:generate, cgo, assembly and plugin fallbacks to the affected package - Support go.work workspaces #79 Support
go.workworkspaces - Support repositories with several go.mod modules #80 Support repositories with several
go.modmodules - Follow replace directives that point inside the repository #81 Follow
replacedirectives that point inside the repository - Support build tags #82 Support build tags
- Select a package's tests when its testdata/ changes #83 Select a package's tests when its
testdata/changes - Select importers when go.mod / go.sum dependencies change #84 Select importers when
go.mod/go.sumdependencies change
Ground rules
- When the adapter is unsure, it records a
blockersentry and DiffCI runs the full suite. An empty graph must never look like "nothing affected". - Every fallback is listed under "Go" in docs/using-diffci.md. A PR that removes one updates that table.
- Discuss design questions here, so every step stays consistent.
Have a Go repository that falls back today? Post the fallback reason below. Real repositories decide the order.
Activity
fix: package-owned testdata selects the owning Go package's tests ins…