pregate: safe handling of removed non-test paths and source renames (follow-up to #3529)

Aperta
#3,535 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
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
devtools, testing

Direzione di ricerca

Read the GSTA-137 review outputs adversarial-native-5a1577b.txt and fix-check2.txt, then trace how lanes reports PREGATE_NO_LANE for removed paths. The issue calls for a design that detects extensionless, dotted-module, and computed references safely, including old names from source renames. Done means removed source paths and rename old names are handled without waiving paths that remaining tests or code still reference.

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

Descrizione

S3

Follow-up to #3529 / #3534 (GSTA-137). #3534 waives only removed tests. Every other removed path still fails lanes with PREGATE_NO_LANE until a test or a dependencies entry covers it. That includes a deleted source file nothing uses and a renamed source file's old name, so dead-code cleanups and source renames still need a hand-written entry.

Why it was narrowed. Earlier cycles of #3534 waived a removed JS, TS, Python or Dart file when no remaining file imported it or mentioned its basename. Review kept finding references that check missed, and each one passed pregate while a remaining test failed after merge:

  • a computed path.join(__dirname, 'lib', 'value.js')
  • importlib.import_module("app.handlers")
  • python3 -m tools.cli
  • node lib/cli in package.json

Main refuses all four. The controller (GStack Minder) narrowed plan item D3 to removed tests only.

What a safe design needs. It needs reference detection that fails closed for extensionless, dotted-module and computed references. One option is to resolve a removed source file's old name the way an edit to it would be resolved, then run those tests instead of waiving it. It also needs the same treatment for a source rename's old name.

Evidence: GSTA-137 review outputs adversarial-native-5a1577b.txt and fix-check2.txt.

Lingua principale
TypeScript
Stelle
143k
Fork
21k
Merge medio
5h 25m
PR unite (30g)
791

Preparare l'ambiente

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 garrytan/gstack

Tutte le issue di garrytan/gstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.