[quality] the cron dispatcher's jobs-input error arms and the push event route are never driven through dist/index.js
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 84/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, typescript
Direzione di ricerca
Inizia con i test esistenti in tests/bundle e con l’harness di dist/index.js salvato nel repository, quindi esegui la suite bundle con npx vitest. Aggiungi casi di input cron per job mancanti, composti solo da whitespace, sconosciuti e misti in schedule, workflow_dispatch e push; il lavoro è completato quando viene verificato il testo di errore exit-1 atteso e gh.requests rimane vuoto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Finding
src/cronJobs/handleCronJob.ts validates the jobs input before any job runs: an empty/whitespace-only list returns please provide a list of space delimited commands / jobs to run. None found, and an unrecognised name returns could not execute <name>. May not be supported - please refer to docs; either one ends in core.setFailed. src/run.ts routes schedule, workflow_dispatch and push to that dispatcher.
Coverage evidence, main @ c48bd6d, Node v26.10.0, npx vitest run --coverage (local, 69 files / 1447 tests, All files 99.83 | 98.35 | 100 | 99.82):
- Unit:
handleCronJob.tsis 100 % lines/branches —__tests__/cronJobTest/handleCronJob.test.tscovers both error arms with mockedcore. - End-to-end (
__tests__/bundle, the only suite that runs the committeddist/index.js): every cron-path run passesjobs: 'lgtm' | 'sweep' | 'label-sync'; no run omitsjobs, passes an unknown name, or useseventName: 'push'(grep -n "eventName: 'push'" __tests__/bundle/*.ts→ nothing). So whether the shipped bundle actually exits 1 with the::error::line, and makes no API call, on a misconfigured workflow is not asserted anywhere. e2e coverage ofsrc/is not captured in the report (#235), so this is read from the suite's inputs, not from a coverage file.
Priority per the coverage rules: low (unit-covered, not e2e-covered). It is worth a test because a mistyped jobs: value in a consumer's workflow is exactly the failure mode that only the bundle path shows: the error text is what a user sees in the run.
Recommendation
Add __tests__/bundle/cronJobsInput.test.ts driving dist/index.js with:
-
schedule,workflow_dispatch,pushwith nojobsinput → exit 1,::error::…please provide a list of space delimited commands / jobs to run. None found,gh.requestsempty -
jobs: ' \n\t 'treated as missing -
jobs: 'Tide'→ exit 1,could not execute tide(lowercased), no API calls -
jobs: 'bogus\nlabel-sync'→ the run still fails onbogus
Side note for maintainers, not part of this issue: the wrapping text on the cron path reads error handling issue comment: … (handleCronJob.ts:65) — a copy of the issue-comment dispatcher's message. The e2e assertions pin the current text; changing it is a production-code decision.
Priority
- Impact: low
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: c48bd6d
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88
- Lingua principale
- TypeScript
- Stelle
- 123
- Fork
- 24
- Merge medio
- 1g 2h
- PR unite (30g)
- 98
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 cncf/prow-github-actions
-
agent/quality hive/hosted-available-lke648397-260827-5q9t kind/failing-test quality testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
cncf/prow-github-actions#329 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] bundle e2e never drives plain /close or the /milestone refusals through dist/index.jsForse già presa @hivecommons-hive l’ha presa 2 giorni fa. Apertaagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t kind/cleanup quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
cncf/prow-github-actions#295 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
agent/quality hive/hosted-available-lke648397-260827-5q9t kind/cleanup quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
cncf/prow-github-actions#213 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
agent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t kind/cleanup needs-decision quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cncf/prow-github-actions#209 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] the 18 missing-issue/pull-number guards across the command handlers and onPrLgtm have no end-to-end coverage through dist/index.jsForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
cncf/prow-github-actions#342 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cncf/prow-github-actions
Issue simili
-
dx hacktoberfest help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
cloudflare/agents#2498 ·
I maintainer di solito rispondono entro 1 giorno
-
Missing repro Platform: Android
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion/react-native-reanimated#10816 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
redhat-developer/rhdh-plugin-export-overlays#4129 ·
I maintainer di solito rispondono entro 1 giorno