The coverage floor cannot see a small package losing its tests
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
- 76/100
Línea de trabajo
Read .github/workflows/ci.yml:39-52 and the related test commands in Makefile and make.ps1. Start by checking how the existing coverage step runs and how Go reports per-package coverage and packages with no test files. Update the CI step to enforce the stated per-package floor, allow-list internal/version, and put the package table in the job summary; verify with make test-short or .\make.ps1 test-short and run make lint.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The coverage step exists, by its own comment, so a package that loses its tests is visible. It checks one total, which a small package cannot move.
Where
.github/workflows/ci.yml:39-52(coverage step and floor)
Details
The check is the total of go test -short -coverprofile=coverage.out -coverpkg=./internal/... ./... against a floor about 2 points under the measured total. First, -coverpkg=./internal/... counts a statement as covered when any package's tests run it, so a package whose own tests are deleted keeps most of its coverage through its callers. Second, by statement share (from a profile taken without -coverpkg on Windows): envelope 0.23%, lang 0.30%, target 0.39%, textx 0.49%, budget 0.51%, ledger 0.61%, diffx 1.09%, walk 1.80% of internal/; each could drop to zero without moving the total 2 points. tools/ and cmd/ are outside the measured set. The CI total itself was not re-measured for this issue.
Impact
Removing the tests of internal/envelope or internal/budget would pass CI.
Suggested fix
Keep the total, and add a per-package check in the same step: run go test -short -cover ./internal/... without -coverpkg, parse the coverage: N% of statements column, and fail when any package with statements is under a per-package floor (the lowest own-test figure today is gitx at about 81% on Windows; 75 would pass with margin) or prints [no test files] (allow-list internal/version). Print the table in the job summary.
Acceptance criteria
- CI fails when a package under
internal/has no test files or falls under the per-package floor - The per-package table is in the job summary
Related: #53
Getting started
- Relevant files: .github/workflows/ci.yml, Makefile, make.ps1
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: CONTRIBUTING.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: ci|.github/workflows/ci.yml|COVERAGE_FLOOR
- Lenguaje dominante
- Go
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 8 h 14 min
- PR fusionados (30 d)
- 3
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- 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 TMHSDigital/Spackle
-
ci good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
TMHSDigital/Spackle#206 ·
Los mantenedores suelen responder en 1 día
-
ci severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Spackle#205 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/Spackle#199 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
TMHSDigital/Spackle#195 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue severity: medium
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
TMHSDigital/Spackle#188 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/Spackle
Issues similares
-
deskclose human-decided leaves the legacy decision-needed label and applies no human-decidedAbiertobug effort:s impact:med raised-by:worker risk:low to:worker
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
medici-finance/assay#8120 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
factory:subtask
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
agent-substrate/substrate#4308 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
celestiaorg/celestia-app#8877 ·
Los mantenedores suelen responder en 1 día
-
sweep
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
bketelsen/truenas-mcp#112 ·
Los mantenedores suelen responder en 1 día