[quality] the bundle suite never drives the tide merge gate's missing_labels block or labelMatch wildcards
Los mantenedores suelen responder en 2 días
Ya se ha fusionado un pull request relacionado.
- #289 de @hivecommons-hive — fusionado
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- github-actions, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 132
- Forks
- 23
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 134
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 needs-kind quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
cncf/prow-github-actions#393 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[quality] test.yml never runs on main after a tide merge — github.token merges don't trigger push; add workflow_dispatch + schedulePosiblemente ocupada @mrbobbytables la tomó hoy. Abiertoagent/quality hive/covered-by-pr 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 2 días
-
[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/covered-by-pr 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 2 días
-
[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.jsPosiblemente ocupada @hivecommons-hive la tomó hoy. Abiertoagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
Dificultad 3/5 Medio día Aptitud para principiantes 22/100
cncf/prow-github-actions#405 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
agent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
cncf/prow-github-actions#404 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de cncf/prow-github-actions
Issues similares
-
Mondriaan
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
knaw-huc/textannoviz#709 ·
Los mantenedores suelen responder en 1 día
-
Add: YRF Music NepalAbiertostreams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
walletbeat/walletbeat#1558 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hawk-digital-environments/HAWKI#438 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OktoLabsAI/okto-pulse#114 ·
Los mantenedores suelen responder en 1 día