Baseline "expires" date takes effect at UTC midnight, not on the local day
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
- 82/100
Línea de trabajo
Read internal/finding/baseline.go around expired and check how the engine clock is supplied in internal/engine/run.go and internal/engine/scaffold.go. Choose and document one expiry time zone in docs/ci.md, then add a fixed-clock test in a non-UTC zone for the boundary. Run make test-short (or .\make.ps1 test-short on Windows) and make lint; done when the test pins the chosen rule and the docs explain it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
A baseline entry's expiry date is parsed as midnight UTC and compared with the current instant, so west of UTC the entry stops accepting on the evening before the date written. The docs name no time zone.
Where
internal/finding/baseline.go:50-55(expired)internal/engine/run.go:122,internal/engine/scaffold.go:34(engine clock)docs/ci.md:182("from that day on it accepts nothing")
Details
expired parses the date with time.Parse(time.DateOnly, e.Expires) and returns !now.Before(d); now is time.Now by default.
Impact
At UTC-8 an entry expires at 16:00 on the previous day, so a local scan or pre-commit hook fails the gate a day early; east of UTC it keeps accepting for the first hours of the expiry day. CI runners in UTC behave as documented, so the same baseline can pass in CI and fail locally on the same evening.
Suggested fix
Decide the rule and state it. Either compare calendar days in one zone (now.UTC().Format(time.DateOnly) >= e.Expires, and say "UTC" in docs/ci.md), or parse the date in the local zone with time.ParseInLocation.
Acceptance criteria
- The rule is one of the two above and docs/ci.md states it
- A test with a fixed clock in a non-UTC zone pins the boundary
Related: #81
Getting started
- Relevant files: docs/ci.md, internal/engine/run.go, internal/finding/baseline.go
- 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, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: bug|internal/finding/baseline.go|BaselineEntry.expired
- 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