[quality] handlePullReq's jobs-input error arms are never exercised end-to-end through dist/index.js
Los mantenedores suelen responder en 1 día
@hivecommons-hive ya está trabajando en esto.
Desde el 4/10/2026.
- #310 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
- typescript
- Área
- testing
Línea de trabajo
Start with __tests__/bundle and read src/pullReq/handlePullReq.ts and src/pullReq/onPrLgtm.ts to understand the existing end-to-end test setup and the uncovered branches. Run npm run test:coverage:e2e to establish the baseline. Done when bundle-level tests exercise the listed jobs-input error cases and the coverage increases as described.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Finding
src/pullReq/handlePullReq.ts runs the jobs input after the registered pull-request handlers. Three of its arms are reached by no __tests__/bundle suite, so the shipped bundle's behaviour on them is unmeasured:
- lines 62-66: the
lgtmjob'scatch(anonPrLgtmfailure is returned as a value) and thedefaultarm (could not execute <job>. May not be supported) - lines 75-80: the
TypeError: error handling pull request: …rethrow and thecore.setFailedthat ends the run src/pullReq/onPrLgtm.tsline 30:could not get labels from issuewhen the labels read fails
Evidence
- Unit:
npx vitest run --coverageonmain@ 3fc21f2 —handlePullReq.ts100 / 100 / 100 / 100,onPrLgtm.ts100 / 100 / 100 / 100 (__tests__/pullReqTest/handlePullReq.test.ts,onPrLgtm.test.ts). - End-to-end:
npm run test:coverage:e2eonmain@ 3fc21f2 (Node v26.10.0, vitest 5.0.3, local run 2026-10-04) —handlePullReq.ts80.76 % lines, uncovered46,62-66,75-80;onPrLgtm.ts83.33 % lines, uncovered19,30.
Covered by unit tests but not end-to-end → medium.
Line 46 (jobs empty and no registered handlers) and onPrLgtm.ts line 19 (a pull_request payload without pull_request.number) are not reachable from a real pull_request event and are out of scope.
Recommendation
-
__tests__/bundle/pullReqJobsArms.test.ts: apull_requestsynchronizerun with an unsupportedjobsentry fails naming the job after the handlers have run; one whoselgtmjob'sGET /issues/1answers 500 fails withcould not get labels from issueand deletes nothing;jobs: lgtm <unsupported>removes the label and still fails the run
Measured with that file: handlePullReq.ts 80.76 → 96.15 % e2e lines (only 46 left), onPrLgtm.ts 83.33 → 91.66 % (only 19 left).
Priority
- Impact: medium
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 709cb6c
— 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 9 h
- PR fusionados (30 d)
- 122
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
-
[quality] test.yml never runs on main after a tide merge — github.token merges don't trigger push; add workflow_dispatch + schedulePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoagent/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 4 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 1 día. Abiertoagent/quality hive/hosted-available-lke648397-260827-5q9t hive/verified-open needs-kind quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
cncf/prow-github-actions#241 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[quality] test.yml runs build-test twice per commit on every PR branch — narrow push to main and add a concurrency groupPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoagent/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 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de cncf/prow-github-actions
Issues similares
-
bug(sight): the dashboard's text truncations split surrogate pairs and show broken charactersAbiertocomponent:sight
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
agentic-os-org/ANOLISA#6738 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug Durable Agents Observability (AI Telemetry) status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
mastra-ai/mastra#26470 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
paperclipai/paperclip#15630 ·
Los mantenedores suelen responder en 1 día
-
[good first issue, hacktoberfest] ⛩️ Add new Theme: Sakura Latte (good-first-issue)Posiblemente ocupada @PGrayCS la tomó hoy. Abiertocommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
lingdojo/kana-dojo#31937 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
feature/cohorts feature/feature-flags team/feature-flags
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día