Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#9,865 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@melodic-automation-lanes ci sta già lavorando.

Dal 25/10/2026.

  • #10137 di @melodic-automation-lanes — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, shell

Direzione di ricerca

Leggi plugins/harness-ops/skills/observability/otel/prune-otel-store.sh alle righe indicate 41, 104 e 259, dove il limite CC_OTEL_HOT_MAX_MB per file è applicato, e la sezione corrispondente di operator-setup-retention.md. Decidi un knob di limite totale, aggiungi un test in prune-otel-store.test.sh con tre file hot ciascuno sotto il limite per file la cui somma lo supera, poi esegui bash scripts/run-test-file.sh su quel file più il controllo frammento di changelog. Fatto quando la suite passa, i file quiet sono intatti, e il doc di retention nomina il limite totale e il default.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

agent-ready priority: medium status: ready work-class: scoped

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).

Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
2h 45m
PR unite (30g)
940

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.