Skip to content

fix(hsr): 修复彩色日志失败摘要漏掉具体错误 - #2143

Merged
jinghero merged 1 commit into
AUTO-MAS-Project:release/v5.9-stablefrom
jinghero:backport/v5.9-stable-2002
Nov 24, 2026
Merged

jinghero merged 1 commit into
AUTO-MAS-Project:release/v5.9-stablefrom
jinghero:backport/v5.9-stable-2002

Conversation

@jinghero

Copy link
Copy Markdown
Contributor

摘要

Closes #2000

验证

  • Windows 11、Python 3.12.10,提交 c2aa7f117。python -m pytest tests/task/test_hsr_m7a_review.py -q 通过 19 项测试。另用带颜色的错误级别和后续普通日志对照,基线漏掉错误,回补版保留错误。

回补 AUTO-MAS-Project#2002 到 5.9 正式版。

(cherry picked from commit c7e1f24)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T02:02:03.795189Z c2aa7f1 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.

@github-actions github-actions Bot added 专项: HSR 类型: 修复 按更新日志碎片自动设置 labels Nov 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2aa7f1173

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

ERROR 级别行时只保留它们和截图/回溯行,否则退回截尾。
"""

lines = [strip_ansi(line) for line in lines]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Commit a regression test for colored failure summaries

When an ANSI-colored ERROR is followed by more than eight ordinary log lines, the parent drops the actual error while this commit correctly retains it. However, the commit adds no regression test, and searching tests/ found no colored-summary case; the cited test_hsr_m7a_review.py exercises runner lifecycle rather than summary selection. Root AGENTS.md requires deterministic regression tests to accompany the implementation. Include a test asserting that this input retains the error without ANSI codes and that the assertion fails without the new normalization.

AGENTS.md reference: AGENTS.md:L29-L29

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

总体结论:可以合并

看了 c2aa7f1。先去掉颜色控制符,再挑 ERROR、截图和回溯行,这样具体报错不会再被一串重复告警盖住;没有 ERROR 时仍然按原规则取日志末尾。建议用一条真实格式的彩色报错和后续重复告警固化回归。

把真正的报错捞出来了,dot酱

@jinghero
jinghero merged commit d1951bd into AUTO-MAS-Project:release/v5.9-stable Nov 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

专项: HSR 类型: 修复 按更新日志碎片自动设置

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant