abctl cost --by currency: a withheld (mixed) cell is unexplained on that axis
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 90/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- cli, testing-qa
Línea de trabajo
Comienza en cmd/abctl/cmd_cost.go alrededor de las líneas 1321-1324 e inspecciona TestRunCost_ByCurrencyWithholdsACappedRowOnAMixedWindow para ver el fixture existente. Ejecuta esa prueba para el caso de ventana mixta, fila limitada y --by currency; estará terminado cuando la celda retenida vaya acompañada de la explicación “these rows hold” y la prueba cubra este comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found by the round-3 strict review of #1153. Introduced by that PR's own review round 2 (26a1ad75), so it ships with it.
Before 26a1ad75 no cell on the currency axis could be (mixed): the byUnit arm took the row label unconditionally. It now gates on isReportedUnit, so a capped row (one minute past maxLabelsPerMinute, which carries (other) on every axis) in a mixed window falls through to default and renders (mixed). But the explanatory caveat is gated if !byUnit && !labelled — cmd/abctl/cmd_cost.go:1324 — so on --by currency it is suppressed:
CURRENCY REQUESTS TOKENS COST
USD 1000 0 $146.36
(other) 57 0 (mixed)
credits 57 0 0.08 credits
these rows hold is absent. The reader followed the advice in the summary above the table and one row is still withheld with nothing here saying why. Two rules from the PR's own prose:
cmd_cost.go:1321-1323, three lines up: "A column of(mixed)with no explanation reads as a defect in the tool."mixedCostCell's godoc: "the first wants a pricing entry, the second wants--by currency" — prescribing what the reader already did.
The candidate fix is unguarded. Mutant HOLE_bycurrency_withheld_cell_unexplained applies it (gate on !labelled alone) and SURVIVES — no test outcome changes. TestRunCost_ByCurrencyWithholdsACappedRowOnAMixedWindow already carries the fixture; extend it rather than adding a fourth --by currency test.
Reachable set: a genuinely mixed window and a minute past maxLabelsPerMinute and --by currency.
Assisted-By: Claude (Anthropic AI) [email protected]
- Lenguaje dominante
- Go
- Estrellas
- 13
- Forks
- 40
- Merge medio
- 12 h 3 min
- PR fusionados (30 d)
- 199
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 rossoctl/cortex
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Bob Shell supportPosiblemente ocupada @esnible la tomó hace 6 días. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
rossoctl/cortex#1119 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de rossoctl/cortex
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NVIDIA/k8s-device-plugin#2076 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
agentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area/release kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kubernetes-sigs/kueue#16455 · 1 comentario ·
Los mantenedores suelen responder en 1 día