[quality] removeFixedLabels' no-op and failed-labels-read arms are never driven through dist/index.js
Los mantenedores suelen responder en 1 día
@hivecommons-hive ya está trabajando en esto.
Desde el 4/10/2026.
- #300 de @hivecommons-hive — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- github-actions, typescript
- Área
- testing
Línea de trabajo
Start with src/labels/fixed.ts and the existing bundle tests under __tests__/bundle/; the issue names __tests__/bundle/fixedLabelArms.test.ts as the proposed test file. Run npm run test:coverage:e2e to check the shipped bundle behavior. Done means the no-label case exits successfully without a DELETE or POST, and the failed GET case exits with an error naming could not get labels from issue and no DELETE.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Finding
src/labels/fixed.ts removeFixedLabels (the /remove-help and /remove-good-first-issue forms) has two arms that the end-to-end bundle suite never reaches:
- lines 54–56: a failed
getCurrentLabelsread is wrapped and rethrown ascould not get labels from issue: … - lines 58–60: none of the command's labels are on the issue → debug log and return without any
DELETE
Unit evidence: npx vitest run --coverage on main @ 3fc21f2 (vitest 5.0.3, @vitest/coverage-v8): src/labels/fixed.ts 100 % lines / 100 % branches (__tests__/label/help.test.ts covers both arms with mocked octokit).
End-to-end evidence: npm run test:coverage:e2e on main @ 3fc21f2 (local run, 5 files / 142 tests, source-mapped bundle from __tests__/bundle/coverageEntry): src/labels/fixed.ts 33.33 % lines (7/21) / 25 % branches; uncovered lines 43–63 and 70, i.e. all of removeFixedLabels. The whole src/ tree sits at 77.9 % lines e2e.
Held PR #246 drives the happy path of /remove-help (lines 43–53, 63). The two arms above are disjoint from it: nothing open exercises a 5xx on GET /issues/1 or a /remove- form with none of its labels present through the shipped bundle.
Recommendation
- add
__tests__/bundle/fixedLabelArms.test.tsdriving/remove-good-first-issuewith none of its labels on the issue (exit 0, oneGET /issues/1, noDELETE/POST) and/remove-helpwithGET /issues/1→ 500 (exit 1, error namescould not get labels from issue, noDELETE)
Expected after the fix (measured): fixed.ts e2e 19/21 lines (90.5 %); line 63 is left to #246 and line 70 (requireIssueNumber throw) is unreachable from an issue_comment payload.
Priority
- Impact: medium — covered by unit tests, not by the e2e suite (priority 2 per the coverage evidence rules)
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 3fc21f2
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88
- Lenguaje dominante
- TypeScript
- Estrellas
- 132
- Forks
- 23
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 98
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 cncf/prow-github-actions
-
agent/quality hive/hosted-available-lke648397-260827-5q9t kind/failing-test quality testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
cncf/prow-github-actions#329 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[quality] bundle e2e never drives plain /close or the /milestone refusals through dist/index.jsPosiblemente ocupada @hivecommons-hive la tomó hace 3 días. Abiertoagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t kind/cleanup quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
cncf/prow-github-actions#295 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[quality] the cron dispatcher's jobs-input error arms and the push event route are never driven through dist/index.jsPosiblemente ocupada @hivecommons-hive la tomó hace 7 días. Abiertoagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
cncf/prow-github-actions#241 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
agent/quality hive/hosted-available-lke648397-260827-5q9t kind/cleanup quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
cncf/prow-github-actions#213 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
agent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t kind/cleanup needs-decision quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cncf/prow-github-actions#209 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de cncf/prow-github-actions
Issues similares
-
bug DUP Reservations
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
bcgov/reserve-rec-public#952 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
daufderheide/racecoordinator_ai#948 ·
Los mantenedores suelen responder en 1 día
-
Bug pulumi/pulumi
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
api bug claude
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
diegosouzapw/OmniRoute#15764 ·
Los mantenedores suelen responder en 2 días