pregate: removed-test waiver misses Markdown links and tracked symlinks
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- git, typescript
Línea de trabajo
Start with namedBy in lib/pregate/lane-selection.ts and trace how removedPath handles removed files. Read the GSTA-137 decision trail and adversarial repro scripts at commit 9c2821a to understand the known limits and compare with base 6f27f0c. Done means Markdown references are counted only when relevant tests check their link targets, and tracked symlinks pointing to removed paths are detected without reintroducing broad test selection.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
PR #3534 lets pregate waive a removed test file when nothing still in the tree names it. Two kinds of reference are invisible to that check (namedBy in lib/pregate/lane-selection.ts), so the removal is waived with no tests selected while a remaining test still depends on the removed file.
- Markdown references.
namedByexcludes*.mdand*.mdx. If a doc links to the removed test (for example[alpha](../test/alpha.test.js)) and another test link-checks that doc, the removal is waived and the link-check test fails afterwards. main refuses the same diff with PREGATE_NO_LANE. - Tracked symlinks.
git grepnever reads mode-120000 entries, so a tracked symlinked test that points at the removed test (test/current.test.js -> alpha.test.js) is not seen. It dangles after the removal and the runner fails on it.
gstack has no live instance of either today: no test checks Markdown link targets against the filesystem, and its one tracked symlink does not point at a test.
Why it is a known limit rather than a fix in #3534
108 tracked Markdown files name a test. If a Markdown namer's tests had to run, then removing any test that CHANGELOG.md mentions would select 396 tests (CLAUDE.md 362, TODOS.md 335). Refusing on any Markdown mention would bring back most of the original bug. The Captain recorded both as known limits for #3534 (GSTA-137, decision trail rows 38-39).
Possible fixes
- Markdown: count a Markdown file as a namer only when one of its tests reads it by literal path and checks link targets.
- Symlinks: in
removedPath, refuse (or select tests) when a tracked 120000 entry's target resolves to a removed path (git ls-files -s, thengit cat-file -p :<path>, joined against the link's directory).
Repro scripts: the GSTA-137 adversarial pass at 9c2821a (JS and Python fixtures, compared with base 6f27f0c).
Related: #3529, #3534, #3535, #3536, #3537.
- Lenguaje dominante
- TypeScript
- Estrellas
- 143k
- Forks
- 21k
- Merge medio
- 5 h 25 min
- PR fusionados (30 d)
- 791
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de garrytan/gstack
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
garrytan/gstack#4971 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
garrytan/gstack#4768 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 3/5 1-2 días Aptitud para principiantes 60/100
garrytan/gstack#4766 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
S3
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
garrytan/gstack#4765 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
garrytan/gstack#4764 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de garrytan/gstack
Issues similares
-
bug Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
scottbenton/Iron-Link#541 ·
Los mantenedores suelen responder en 1 día
-
hosts settings: the SSH address field and the separate User field are two ways to name one SSH userAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
prime-radiant-inc/evener#8161 ·
Los mantenedores suelen responder en 1 día
-
Ignore Rules is not workingAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nicobailon/pi-subagents#3420 ·
Los mantenedores suelen responder en 1 día
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yAbierto01 type: bug 99 tag: UX Accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días