Repository navigation
Open
Labels
Description
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
inputsdeclarations:{ "files": ["cmd/server/**", "internal/api/**"], "tests": ["e2e/**/*.spec.ts"] }says a Go change must also run those TS specs. Decide here whetherinputsis enough or whether a dedicatedcrossLanguagekey 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) andweb/(TS, Vitest + Playwright) shows: a Go-only change runsgo testplus 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.mdis updated.
Activity