Skip to content

Go adapter: fewer full-suite fallbacks (tracking issue) #76

Open

Description

@adityankale190895

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 or plugin use anywhere
  • uses go.work, or has more than one go.mod without go.scope
  • uses a replace directive that points inside the repository while scoped
  • needs build tags (GOFLAGS=-tags=...)
  • changes a file under testdata/
  • changes go.mod or go.sum

Steps (each is one PR; take any that are unblocked):

Ground rules

  • When the adapter is unsure, it records a blockers entry 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapterenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions