spackle bench lists and accepts flags it ignores, and passes --pr into corpus scans
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 70/100
Línea de trabajo
Start in internal/cli/bench.go where g.register(fs) registers the full shared flag set, then compare it with the flag groups in internal/cli/flags.go. Check internal/bench/run.go to see which config fields it reads, and confirm that cfg.Fix.PR reaches engine.Run. Done means spackle bench --help lists only the flags bench reads, unknown flags are rejected, bench never opens a pull request, and docs/config.md matches. Run go test ./internal/cli ./internal/bench to check.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
spackle bench registers the full shared flag set, so its help lists, and it accepts, --authorize, --fail-on, --fail-on-confidence and --format, none of which it reads. --pr is passed through into every corpus fixture scan. docs/config.md:106 says "scan and bench take all of them", and the CHANGELOG says commands "now accept only the flags they read".
Where
internal/cli/bench.go:29-30(g.register(fs))internal/cli/bench.go:139(returnsExitOKwithout checkingfail_on)internal/bench/run.go:100-110(touches onlycfg.Output.Dir;cfg.Fix.PRreachesengine.Run)docs/config.md:106,CHANGELOG.md:46
Impact
Low, because bench is a maintainer command hidden from the main help. Still, spackle bench --fail-on high looks like a CI gate and always exits 0, --format does nothing, and --pr (or [fix] pr = true in a config) sends "push the fix branch and open a pull request" into scans of the corpus fixtures.
Steps to reproduce
spackle bench --helplists--fail-on-confidence.spackle bench --fail-on low --format jsonexits 0 and prints the plain-text summary.
Suggested fix
Register only the groups bench reads, for example g.registerGroups(fs, flagsConfig|flagsModel|flagsBudget|flagsOffline|flagsOutput|flagsYes|flagsExclude), keeping --out for the results directory. Force cfg.Fix.PR = false in bench.Run. List bench's flags separately in docs/config.md:106.
Acceptance criteria
-
spackle bench --helplists only flags bench reads, and the others are rejected as unknown. - Bench never opens a pull request, whatever the config says.
-
docs/config.mdlists bench's flags accurately.
Getting started
- Relevant files:
internal/cli/bench.go,internal/cli/flags.go,internal/bench/run.go,docs/config.md - How to run tests:
go test ./internal/cli ./internal/bench
Related: #47 (narrowed the flags of report, verify, doctor and debug)
Filed by repo-audit/full-audit at fffef43. Severity: low. Effort: S. audit-key: documentation|internal/cli/bench.go|runBench-flags
- Lenguaje dominante
- Go
- Estrellas
- 0
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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
-
enhancement good first issue severity: low
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
TMHSDigital/Spackle#139 ·
-
enhancement good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
TMHSDigital/Spackle#138 ·
-
documentation good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Spackle#135 ·
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
TMHSDigital/Spackle#131 ·
-
runs and runs compare print target text without the control-character cleaning the reports useAbiertobug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Spackle#129 ·
Todos los issues de TMHSDigital/Spackle
Issues similares
-
bug raised-by:reviewer
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
medici-finance/assay#7655 ·
Los mantenedores suelen responder en 1 día
-
helm chart: make DaemonSet pod affinity configurable via values.yamlPosiblemente ocupada @Young-Zen la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
flannel-io/flannel#2632 ·
Los mantenedores suelen responder en 6 días
-
go-vulnerability security-scan
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
teslashibe/agent-go#36 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nwverse/persona#15194 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug flaky-test
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rosskukulinski/tailworks#411 ·
Los mantenedores suelen responder en 1 día