fix: read-only baseline queries skip _runs upsert (register_run flag)
This commit is contained in:
@@ -797,7 +797,9 @@ def build_or_load_pools(
|
||||
# 增量构建新类别
|
||||
paths = resolve_paths(config.workspace_dir)
|
||||
questions = load_benchmark(paths.questions_dir)
|
||||
with HarnessLog(str(db_path), baseline_run_id) as hlog:
|
||||
with HarnessLog(
|
||||
str(db_path), baseline_run_id, register_run=False
|
||||
) as hlog:
|
||||
rows = hlog.query(
|
||||
"SELECT question_id, prediction, answer "
|
||||
"FROM predictions WHERE run_id=?",
|
||||
@@ -872,7 +874,7 @@ def build_or_load_pools(
|
||||
# ── 全新构建 ──
|
||||
paths = resolve_paths(config.workspace_dir)
|
||||
questions = load_benchmark(paths.questions_dir)
|
||||
with HarnessLog(str(db_path), baseline_run_id) as hlog:
|
||||
with HarnessLog(str(db_path), baseline_run_id, register_run=False) as hlog:
|
||||
rows = hlog.query(
|
||||
"SELECT question_id, prediction, answer FROM predictions WHERE run_id=?",
|
||||
(baseline_run_id,),
|
||||
|
||||
Reference in New Issue
Block a user