[quality] label-sync's refused-write and description-drift arms are never exercised end-to-end through dist/index.js
I maintainer di solito rispondono entro 2 giorni
Una pull request collegata è già stata integrata.
- #312 di @hivecommons-hive — integrata
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, typescript
- Ambito
- testing
Direzione di ricerca
Read src/cronJobs/labelSync.ts and the existing tests/bundle suites, then inspect the linked pull request before starting because this work is already underway. The issue proposes tests/bundle/labelSyncFailureArms.test.ts; run npm run test:coverage:e2e and verify the refused writes, continued create attempts, description-only PATCH, and final failure are exercised through dist/index.js.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Finding
src/cronJobs/labelSync.ts has three arms that no __tests__/bundle suite reaches, so the shipped bundle's behaviour on them is unmeasured:
- lines 107-109:
write()'scatch— a refused create/update is logged withcore.errorand recorded so the remaining labels are still attempted - line 94: the final
N label(s) could not be synced: …error that fails the run once every label has been tried - line 134:
drift()patching a label whose only difference is its description
Evidence
- Unit:
npx vitest run --coverageonmain@ 3fc21f2 —labelSync.ts100 % lines (__tests__/cronJobs/labelSync.test.ts). - End-to-end:
npm run test:coverage:e2eonmain@ 3fc21f2 (Node v26.10.0, vitest 5.0.3, local run 2026-10-04) —labelSync.ts85.41 % lines, uncovered55,94,107-109,134.
Covered by unit tests but not end-to-end → medium.
Recommendation
-
__tests__/bundle/labelSyncFailureArms.test.ts: aworkflow_dispatchjobs: label-syncrun wherePOST /labelsanswers 403 for every built-in andkind/bugexists with the right colour but a stale description — asserts onecore.errorper refused label, every create still attempted, the description-onlyPATCH, and the singleerror handling cron job: Error: 16 label(s) could not be syncedfailure
Measured with that file: labelSync.ts 85.41 → 97.91 % e2e lines (only line 55 remains).
Priority
- Impact: medium
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: f5e5587
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88
- Lingua principale
- TypeScript
- Stelle
- 132
- Fork
- 23
- Merge medio
- 1g 20h
- PR unite (30g)
- 134
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 needs-kind quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
cncf/prow-github-actions#393 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[quality] test.yml never runs on main after a tide merge — github.token merges don't trigger push; add workflow_dispatch + scheduleForse già presa @mrbobbytables l’ha presa oggi. Apertaagent/quality hive/covered-by-pr 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 2 giorni
-
[quality] test.yml runs build-test twice per commit on every PR branch — narrow push to main and add a concurrency groupForse già presa Una pull request collegata a questa issue è aperta o già unita. 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 84/100
cncf/prow-github-actions#213 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[quality] parseOwners's content-shape arms (owners.ts:39/41/83: whitespace-only, non-mapping and non-string-role OWNERS files) have no bundle test 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 Mezza giornata Idoneità per principianti 22/100
cncf/prow-github-actions#405 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
agent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
cncf/prow-github-actions#404 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di cncf/prow-github-actions
Issue simili
-
Mondriaan
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
knaw-huc/textannoviz#709 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: YRF Music NepalApertastreams:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
About page content is also published as an unstyled duplicate at /about/about/Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
walletbeat/walletbeat#1558 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
hawk-digital-environments/HAWKI#438 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OktoLabsAI/okto-pulse#114 ·
I maintainer di solito rispondono entro 1 giorno