Skip to content

Mixed Go + TypeScript repositories #77

Open

Description

@adityankale190895

Part of #76.

A repository with Go and TypeScript/JavaScript (for example a Go API with a React or Next.js frontend) always runs the full suite today:

Mixed Go/JavaScript repositories require explicit cross-language dependencies; full validation required

Both halves already work on their own, and the planner already emits a go test command next to the JS runner commands (src/planner/test-command.ts). The blocker exists because the two languages can reach each other without an import: a Playwright spec calls the Go server over HTTP, a Go test serves the JS build output, or both read a shared OpenAPI or protobuf file. The dependency graph can't see those edges.

Proposal

  • Remove the global blocker in src/repo/graph.ts (contributions.some((item) => item.id === "go") && files.some(...)) when the repository declares how the languages connect, and keep it otherwise.
  • Reuse the existing inputs declarations: { "files": ["cmd/server/**", "internal/api/**"], "tests": ["e2e/**/*.spec.ts"] } says a Go change must also run those TS specs. Decide here whether inputs is enough or whether a dedicated crossLanguage key is clearer.
  • Without a declaration, a change confined to one language's directories can still be narrowed only if no test from the other language could reach it. If that can't be shown, keep the fallback.

Must fall back (blocker)

  • No declaration, and a TS test exists that could reach the Go code (or the reverse).
  • Shared contract files (*.proto, openapi.*, generated clients) change and no declaration covers them.

Done when

  • A fixture with server/ (Go) and web/ (TS, Vitest + Playwright) shows: a Go-only change runs go test plus the declared e2e specs, a TS-only change runs only Vitest, and an undeclared layout still falls back.
  • The fallback table in docs/using-diffci.md is updated.

Activity

  1. added
    enhancement
    help wanted
    on Nov 9, 2026
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