pregate: a removed test named by a package.json script or Makefile runs that file's unrelated tests (same blind spot on main for edits)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, javascript, python, typescript
Direzione di ricerca
Start with the pregate lane logic changed in #3534 and inspect fixtures P1 and P1py, then trace how package.json scripts, Makefile targets, and workflow run: steps are handled. Reproduce the removed-test and edited-script cases described in the issue. Done when pregate detects tests invoked through runner configuration and the stale removal or breaking edit no longer passes silently.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Pregate lanes: when a removed test is named by a runner-config file, such as a package.json script or a Makefile target, pregate runs that file's own tests, for example a version or format test, instead of the script that names the test. Main has the same blind spot when that script is edited. Found by the GSTA-137 adversarial pass at f943239 (fixtures P1 and P1py).
#3534 makes a removed test run the tests of every remaining non-Markdown file that mentions its name (without the extension). When that file is package.json ("smoke": "node --test test/alpha.test.js") or a Makefile (python3 -m unittest tests.test_alpha), "its tests" are whatever tests exercise package.json or the Makefile. Those are usually version or format checks, not the smoke script. So the removal passes, and running the stale script (npm run smoke, make smoke) then fails. Main 6f27f0c refuses the removal with PREGATE_NO_LANE.
On main, editing that same script so it breaks also runs only package.json's own tests. So this is a general gap: pregate does not know that a runner-config entry invokes a test. It is not specific to removals.
Possible fixes:
- Treat package.json
scripts, Makefile targets and workflowrun:steps that name a test as invoking it. Run that test when it exists; refuse a removed test such an entry names unless adependenciesentry covers it. - Or have pregate run any script or target that names a touched test.
Listed as a known limit in #3534.
- Lingua principale
- TypeScript
- Stelle
- 143k
- Fork
- 21k
- Merge medio
- 5h 25m
- PR unite (30g)
- 791
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di garrytan/gstack
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
garrytan/gstack#4971 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement S3
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
garrytan/gstack#4768 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement S3
Difficoltà 3/5 1-2 giorni Idoneità per principianti 60/100
garrytan/gstack#4766 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
S3
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
garrytan/gstack#4765 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement S3
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
garrytan/gstack#4764 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di garrytan/gstack
Issue simili
-
bug Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
scottbenton/Iron-Link#541 ·
I maintainer di solito rispondono entro 1 giorno
-
hosts settings: the SSH address field and the separate User field are two ways to name one SSH userAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
prime-radiant-inc/evener#8161 ·
I maintainer di solito rispondono entro 1 giorno
-
Ignore Rules is not workingApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nicobailon/pi-subagents#3420 ·
I maintainer di solito rispondono entro 1 giorno
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yAperta01 type: bug 99 tag: UX Accessibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni