Skip to content

evaluation: count each run once in eval set summaries - #385

Open
yqia03 wants to merge 1 commit into
trpc-group:mainfrom
yqia03:fix/evaluation-run-status-counts
Open

yqia03 wants to merge 1 commit into
trpc-group:mainfrom
yqia03:fix/evaluation-run-status-counts

Conversation

@yqia03

@yqia03 yqia03 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

An evaluation run with one passing case and one failing case has a failed overall status. The set summary currently counts both case outcomes as runs. Count each run's existing overall status once, so the top-level counts match the individual run summaries, including expected runs with no results.

Two regression cases failed before the fix and passed after it. All 51 tests in the three result and summary modules passed locally.

AI disclosure: OpenAI Codex identified the discrepancy, prepared the patch and test assertions, and ran the local checks.

RELEASE NOTES: Evaluation set summaries now report the number of passed, failed, and unevaluated runs correctly.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T13:39:17.093464Z 5724147 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@helloopenworld

Copy link
Copy Markdown
Contributor

AI Code Review

审查结论

通过

审查范围:base 1590e17..head 5724147,共 2 个文件(4 增 1 删),核心变更是 _eval_set_results_manager_utils.py:180-181 将 run_status_counts 的累计方式从「按 case 逐个计状态」改为「每个 run 汇总后计一次」,并同步补充 3 条测试断言。

计划符合性:变更与计划「count each run once in eval set summaries」一致——run_status_counts 现在等于各 run 汇总状态的分布,总和恒等于 num_runs,即使存在空 run 也保持计数一致(这同时修正了旧实现中空 run 造成的潜在不一致,与文档描述的「各轮状态计数」语义相符)。

验证过程:追踪了 run_status_counts 的全部生产者与消费者(仅本函数生产、_local_eval_set_results_manager 通过 create_eval_set_result 序列化写出,无调用方依赖旧的按 case 计数语义);确认 _overall_status_from_counts 的优先级与 overall_status 派生关系不变;确认 EvalStatusCounts 已公开导出、新增测试断言与变更意图直接对应。

风险与测试充分性:无正确性、安全性、兼容性或稳定性风险;测试补充覆盖了混合状态 run 与计数语义的关键路径。未发现置信度达 80 的可操作缺陷,comments 为空,门禁结论为通过。

发现的问题

未发现需要反馈的代码问题。

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@1590e17). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             main        #385   +/-   ##
==========================================
  Coverage        ?   87.62020%           
==========================================
  Files           ?         556           
  Lines           ?       54702           
  Branches        ?           0           
==========================================
  Hits            ?       47930           
  Misses          ?        6772           
  Partials        ?           0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants