Bazel adapter: hand selected targets to `bazel test` (tracking issue)

Aperta
#116 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing

Direzione di ricerca

Start with src/repo/workflow-test-steps.ts and compare the existing Nx adapter mentioned in issue #111. The issue outlines target discovery with bazel query, running bazel test, and fallback cases, but leaves the adapter design and a public test repository to find. Done means selected Bazel test targets are handed to Bazel, with a reasoned fallback when querying fails or no target owns a changed file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

adapter enhancement help wanted

Same shape as the Nx adapter (#111), for Bazel workspaces.

  • Map changed files to Bazel targets with bazel query (rdeps(//..., set(<files>))), restricted to *_test rules.
  • Emit bazel test <targets> so Bazel's cache and remote execution decide what runs. DiffCI adds pre-push checks and a receipt, not a second build graph.
  • A query failure, or a file that no target owns, falls back with a reason.
  • Today Core only recognises bazel as a test-runner step in CI workflows (src/repo/workflow-test-steps.ts).

Looking for a public Bazel repository with JS/TS, Go or Java tests to try it on.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
18h 41m
PR unite (30g)
48

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiffCI/core

Tutte le issue di DiffCI/core

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.