[quality] the bundle suite never drives the tide merge gate's missing_labels block or labelMatch wildcards
I maintainer di solito rispondono entro 2 giorni
Una pull request collegata è già stata integrata.
- #289 di @hivecommons-hive — integrata
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, typescript
Direzione di ricerca
Start with the existing tests under tests/bundle/ and the merge-gate behavior in dist/index.js, then inspect src/utils/labelMatch.ts and src/utils/mergeGate.ts. Run the bundle coverage command and add the three labeled pull-request scenarios described in the issue, verifying the blocked messages, absence of PUT for the default block, and merge behavior when missing_labels replaces defaults.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Finding
The tide merge gate's missing_labels arm is never driven end-to-end. Every pull_request labeled lgtm case in __tests__/bundle/ either merges or stops on missing lgtm / missing approved; no bundle test produces skipping pr #N: blocked by <label>.
Evidence (main @ 3fc21f2, Node v26.10.0, vitest 5.0.3):
- Unit:
npx vitest run --coverage—src/utils/labelMatch.tsandsrc/utils/mergeGate.ts100 % lines (unit suite 1639 tests, 100 / 99.81 / 100 / 100). - End-to-end:
npm run test:coverage:e2e(the four__tests__/bundle/*.test.ts, 142 tests,src/77.9 % lines) —labelMatch.ts66.66 % lines / 58.33 % branches, uncovered 24, 31-35, 47: the*-suffix mismatch and the middle-part loop ofmatchesLabelPattern, i.e. every wildcard shape beyondprefix/*.grep 'blocked by' __tests__/bundlematches nothing, someetsMergeGate's second return is unit-only too. - Combined: both suites land in one istanbul map per #274, and the unit run already saturates these files, so this is a priority-2 (unit-covered, no e2e) gap, not a priority-1 one.
Why it matters: do-not-merge/* is the default that keeps held PRs out of the merge path (docs/automatic-merging.md), and the documented rule that a configured missing_labels list replaces the defaults has no shipped-bundle check either.
Recommendation
One new bundle file, __tests__/bundle/mergeGateLabels.test.ts, with three pull_request labeled lgtm runs through dist/index.js:
- default configuration, PR labeled
lgtm+do-not-merge/invalid-owners-file→skipping pr #1: blocked by do-not-merge/invalid-owners-file, noPUT -
tide.missing_labels: ["do-not-merge/*", "*-wip", "*wip*"], PR labeledlgtm+wip-docs→ blocked (driveslabelMatch.ts24 and 31-35) - same configuration, PR labeled
lgtm+needs-rebase→ merges (the configured list replaces the default one)
Note: anyLabelMatches (labelMatch.ts:46-48) has no caller under src/; it will stay unit-only.
Priority
- Impact: medium
- 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
- 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
-
[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/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] bundle e2e never drives plain /close or the /milestone refusals through dist/index.jsForse 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 88/100
cncf/prow-github-actions#295 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[quality] the cron dispatcher's jobs-input error arms and the push event route are never driven through dist/index.jsForse già presa @hivecommons-hive l’ha presa 1 giorno fa. Apertaagent/quality hive/hosted-available-lke648397-260827-5q9t hive/verified-open needs-kind quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
cncf/prow-github-actions#241 · 2 commenti ·
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/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
-
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 · 6 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di cncf/prow-github-actions
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
lukilabs/beautiful-mermaid#160 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
rescript-lang/rescript-lang.org#1420 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
chthollyphile/folia-major#520 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
databuddy-analytics/Databuddy#1106 ·
I maintainer di solito rispondono entro 1 giorno