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

[Bug] Multi-trace files collapse into one eval case

Aperta
#1,021 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing-qa

Direzione di ricerca

Inizia da BaseEvaluator._build_eval_set_from_tracing_json() e leggi la copertura di regressione mirata in tests/test_evaluator.py. Riproduci prima il fallimento con più trace e span fuori ordine, poi verifica che ogni trace diventi una EvalCase isolata con span ordinati e che il timestamp di EvalSet utilizzi il timestamp del caso generato più vecchio. Al termine, esegui i test dell'evaluator, Ruff e git diff --check.

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

Descrizione

Bug description

BaseEvaluator._build_eval_set_from_tracing_json() groups spans by trace_id, but currently keeps conversation, metadata, and timestamps outside the per-trace loop and appends only one EvalCase after the loop.

For a tracing file containing multiple traces, this can collapse all traces into one case, attach metadata from the last trace, and produce an empty conversation when spans are not already ordered by start_time.

Minimal reproduction

On current main (43f958d), a tracing file with two traces and out-of-order call_llm spans produces:

  • len(eval_set.eval_cases) == 1 instead of 2
  • the only case uses the second trace's app_name and user_id
  • conversation == []

The focused regression fails deterministically with:

assert len(eval_set.eval_cases) == 2
E assert 1 == 2

Expected behavior

Could you confirm whether the intended conversion semantics are:

  1. each trace_id becomes one isolated EvalCase;
  2. spans are ordered by start_time within that trace;
  3. conversation, tool calls, and session metadata never cross trace boundaries;
  4. the EvalSet timestamp is the earliest generated case timestamp?

Validated local fix

A local one-commit patch implements the behavior above and currently passes:

  • tests/test_evaluator.py — 3 passed
  • Ruff 0.11.12 check and format
  • git diff --check

I have not opened a PR yet because this changes the public mapping between tracing files and evaluation cases. If the semantics above are intended, I can submit the tested patch.

AI assistance

The investigation and candidate patch were developed with AI assistance. I verified the failure on a clean origin/main worktree with an isolated Python bytecode cache and reviewed the trace-boundary semantics.

Lingua principale
Python
Stelle
344
Fork
98
Merge medio
8h 17m
PR unite (30g)
152

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 volcengine/veadk-python

Tutte le issue di volcengine/veadk-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.