[quality] Gate proposal: values.schema.json rules and chart template arms without a helm-unittest assertion
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- json, typescript, yaml
- Área
- testing-qa
Línea de trabajo
Start with the schema rules in charts/prow-github-app/values.schema.json and the existing failedTemplate cases in charts/prow-github-app/tests/schema_test.yaml and topology_test.yaml. The issue asks for a governance decision first: whether to add a merge-blocking vitest gate (tests/chartAssertions.test.ts) and the eleven missing negative cases. Do not start coding until a maintainer accepts or declines it. If accepted, done means each listed rule has a helm-unittest case that fails when the rule is loosened.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Finding
This proposal was first filed on 2026-11-03 and folded by the hive into #665 (comment <!-- hive-finding-folded -->); #665 was then closed by #666, so the decision it asked for was never taken. Re-filed standalone so it can be accepted or declined.
It is the fourth finding in the same class on charts/prow-github-app — a template arm or schema rule that helm unittest renders but never asserts — so per the quality lane's rules it is a gate proposal, not a fourth tests-only PR.
Prior instances (each landed as a held tests-only PR after being verified by mutating the template and watching the new assertion fail):
-
#665 → #666 (merged): checksum roll annotations, six placement pass-throughs, the release-contains fullname arm.
-
#668 → #669 (merged):
nameOverrideselector agreement, service/pdb/cronjob/prow pass-throughs, common labels. -
#671 (merged): both install-notes arms, the Redis note, the cronjob-disabled arm, probe paths, securityContext, resources.
-
This instance —
charts/prow-github-app/values.schema.jsonrejection rules. Atmain@91a1669(all three PRs above merged) the chart suites contain sevenfailedTemplatecases: six intests/schema_test.yaml(≥2 replicas without Redis, a non-rediss?://URL, empty credentials, an empty schedule, one misspelled key at the root, one undercronjob) and one intests/topology_test.yaml(terminationGracePeriodSeconds: 15). No case asserts that the schema rejects any of:image.pullPolicyoutside["Always","IfNotPresent","Never"]prow.mergeMethodoutside["","merge","squash","rebase"]github.apiUrlnot matching^$|^https?://redis.existingSecretKey: ""(minLength: 1)cronjob.activeDeadlineSeconds: 0(minimum: 1)cronjob.successfulJobsHistoryLimit/failedJobsHistoryLimit: -1(minimum: 0)service.port: 0(minimum: 1)replicaCount: 0(minimum: 1)image.repository: ""(minLength: 1)github.existingSecret: ""with no app credentials (anyOf[0]minLength: 1)- a misspelled key under any of
image,github,prow,redis,service,ingress,serviceAccount,podDisruptionBudget(additionalProperties: false— only the root andcronjobblocks have a negative)
Every existing mention of those paths in
tests/*_test.yamlsets a valid value (grep -n 'pullPolicy\|mergeMethod\|apiUrl\|existingSecretKey\|activeDeadlineSeconds\|JobsHistoryLimit\|service.port\|image.repository' charts/prow-github-app/tests/*_test.yaml), so loosening or deleting any rule above passeshelm unittest,ct lintand both kind installs.
Evidence method (reproducible at main@91a1669): list every enum|pattern|minimum|minLength|additionalProperties|required in values.schema.json; for each, grep tests/*_test.yaml for a case that set:s the path to an invalid value and asserts failedTemplate (grep -c failedTemplate charts/prow-github-app/tests/*.yaml → 6 + 1). Unit evidence: helm unittest charts/prow-github-app. End-to-end evidence: the chart CI job installs charts/prow-github-app/ci/single-values.yaml and the HA values file into kind — both are schema-valid, so no install exercises a rejection rule. The schema rejections are reached by neither suite; the schema is the chart's only input validation.
The missing gate
Nothing in CI measures what the chart suite exercises, which is why this class recurs one file at a time. The repository already gates repository text with vitest contract tests (__tests__/workflows.test.ts "action.yml mirrors the inputs src/ reads"; __tests__/coverageIgnoreHints.test.ts), so the cheapest gate with the same shape is:
__tests__/chartAssertions.test.ts (runs under npm test in the existing build-test job — no workflow change, no new dependency; js-yaml is already in package.json):
- parse
charts/prow-github-app/values.schema.json; collect every property path carryingenum,pattern,minimum,minLength,requiredoradditionalProperties: false(including underif/then/anyOf); - scan
charts/prow-github-app/templates/*for.Values.<path>inside{{ if | with | range | else if }}; - parse
charts/prow-github-app/tests/*_test.yamland collectset:keys, split by whether the case assertsfailedTemplate; - fail with the list of paths that (a) gate a template arm but appear in no test, or (b) carry a schema constraint but appear in no
failedTemplatecase. A path-shaped allowlist constant in the test records any deliberate exception with its reason.
Scope stays additive: no config keys change, no chart files move, the chart job is untouched.
Decision requested
- Accept — the quality lane opens one held PR adding
__tests__/chartAssertions.test.tsplus the eleven schema negatives above intests/schema_test.yaml, so the gate is green on arrival. - Decline — the lane resumes individual chart findings (next: the eleven schema negatives as a plain held PR, no gate).
Risk: governance — this adds a merge-blocking rule on chart contributions, which is the maintainers' call, not the lane's.
Priority
- Impact: medium (a loosened schema rule reaches users as a mis-rendered install with no error)
- Effort: low (one vitest file, ~11 helm-unittest cases)
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 91a1669
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88
- Lenguaje dominante
- TypeScript
- Estrellas
- 135
- Forks
- 24
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 232
Preparar el entorno
- Incluye un Dockerfile o un 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] chart: CronJob name exceeds the 52-character API limit for release names of 32+ characters; no test pins resource-name lengthPosiblemente ocupada @mrbobbytables la tomó hace 2 días. Abiertoagent/quality kind/cleanup stage/040-covered-by-pr testing
Dificultad 3/5 Medio día Aptitud para principiantes 50/100
cncf/prow-github-actions#667 ·
Los mantenedores suelen responder en 1 día
-
🐝 Hive Advisory ReportAbiertohive/advisory kind/cleanup
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
cncf/prow-github-actions#170 · 9 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de cncf/prow-github-actions
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Open-Earth-Foundation/CityCatalyst#3399 ·
Los mantenedores suelen responder en 2 días
-
userReport
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
nkprasad12/morcus-net#631 ·
Los mantenedores suelen responder en 1 día
-
fix(app): fail closed if GetGeneralSetting fails during initializationPosiblemente ocupada @kalavt la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
nekko-labs/nekko-agent#1756 ·
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 2 días