compare: a single PASS/FAIL flip is reported as Fixed or Regressed even when the case is flaky

Aperta
#431 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
tooling

Direzione di ricerca

Read internal/compare/compare.go to see where per-case Fixed/Regressed is decided, then trace how skill-up run --iteration samples a version and what benchmark.json records today (RunsPerConfiguration: 1). The design questions — Wilson vs Clopper-Pearson, minimum N, and how --fail-on-regression treats noise — are still open, so the first step is agreeing on those before writing code. Done means compare can consume per-case k/n samples and label a flip as changed-within-noise when the intervals overlap.

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

Descrizione

Problem / motivation

skill-up compare classifies each case from one run per side: in internal/compare/compare.go, old non-PASS → new PASS is Fixed and the reverse is Regressed, and --fail-on-regression gates on that classification. An LLM agent can flip a case between two runs with nothing changed, so a single flip reads as a fix or a regression.

skill-up run --iteration N already samples a version N times, but its per-case stability summary is printed to the terminal only, and benchmark.json records RunsPerConfiguration: 1, so compare cannot use those samples. skill-upper's own workflow asks to repeat both versions for uncertain or intermittent outcomes, yet compare has no way to consume that evidence.

Proposed solution

  1. Persist per-case k/n from --iteration runs next to the iteration artifacts (for example a stability.json in the run root).
  2. Let compare take an iteration root, or several result files, per side.
  3. Report Fixed / Regressed only when the one-sided 95% Wilson bounds of the two PASS rates separate; otherwise report "changed within noise", flagged flaky when either side has both outcomes.
  4. Keep today's single-run behavior as the default, and label it as single-sample in the output.

Alternatives considered

  • Exact (Clopper-Pearson) intervals instead of Wilson: more conservative at small N.
  • A fixed minimum N per side before compare classifies at all.

Additional context

Open questions: which interval method, the minimum N, and how --fail-on-regression should treat changes within noise. Happy to implement once the direction is agreed.

Lingua principale
Go
Stelle
1.5k
Fork
135
Merge medio
2g 19h
PR unite (30g)
63

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 alibaba/skill-up

Tutte le issue di alibaba/skill-up

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.