Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

fix(harness-ops): bound the OTEL hot tier's total size, not only each file

Abierto Apto para principiantes
#9,865 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-2 días
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, shell

Línea de trabajo

Lee plugins/harness-ops/skills/observability/otel/prune-otel-store.sh en las líneas referenciadas 41, 104 y 259, donde se aplica el límite CC_OTEL_HOT_MAX_MB por archivo, y la sección correspondiente de operator-setup-retention.md. Decide un knob de límite total, añade una prueba en prune-otel-store.test.sh con tres archivos hot cada uno bajo el límite por archivo cuya suma lo excede, luego ejecuta bash scripts/run-test-file.sh sobre ese archivo más la comprobación de fragmento de changelog. Hecho cuando la suite pasa, los archivos quiet permanecen sin tocar, y el doc de retención nombra el límite total y el predeterminado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

admission-deferred needs-human needs-triage status: needs-decision

Refs: #6637

Parent

#6637

Depends on

  • none: on the frontier now

Outcome

prune-otel-store.sh keeps the hot tier (every cc-*.json file at the store root, taken together) at or under a
total size cap that matches the hot budget provisioning checks (1 GiB across those files). Today the size cap
applies per file, so three files can each stay under 1024 MiB while the tier is well over budget.

Context

  • CC_OTEL_HOT_MAX_MB (default 1024) is a cap "per hot file" (operator-setup-retention.md:50;
    prune-otel-store.sh:41, :104, :259).
  • provisioning's store-size row measures the hot tier as all cc-*.json files together against 1 GiB
    (melodic-software/provisioning#754: 1.09 GiB total with cc-logs.json about 648 MB, so no single file reached the cap).
  • #6637 saw 1.28 GB on both hosts while the prune ran. That is the per-file versus total mismatch above.
  • Pick either a new total knob beside the per-file one or a change to the existing knob; the retention doc's
    table states which, its default, and how it interacts with the age windows. Oldest lines are compacted to cold
    first, as the per-file cap does today.

Done when

  • bash scripts/run-test-file.sh plugins/harness-ops/skills/observability/otel/prune-otel-store.test.sh exits 0.
  • That test file has a case with three hot files each under the per-file cap whose sum is over the total cap;
    it fails on origin/main and passes after the change, and the files' total after the prune is at or under the cap.
  • That test file has a stay-quiet case: files whose total is under the cap are not pruned for size.
  • operator-setup-retention.md names the total cap, its default and its unit.
  • bash scripts/check-changelog-fragments.sh --check-required origin/main exits 0.

Out of scope

Filed by AI while splitting the backlog (owner decisions Q93 to Q95 and C12, 2026-10-24).

Lenguaje dominante
Shell
Estrellas
22
Forks
2
Merge medio
3 h 42 min
PR fusionados (30 d)
938

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de melodic-software/claude-code-plugins

Todos los issues de melodic-software/claude-code-plugins

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.