Skip to content

fix(go): omit benchmark headers from failure context - #5216

Open
zhangkom wants to merge 1 commit into
rtk-ai:developfrom
zhangkom:codex/ignore-go-benchmark-headers
Open

zhangkom wants to merge 1 commit into
rtk-ai:developfrom
zhangkom:codex/ignore-go-benchmark-headers

Conversation

@zhangkom

Copy link
Copy Markdown

Summary

  • Filter Go's standard benchmark environment headers from the failure context while keeping the user output and failure details.
  • Add regression coverage for failed benchmarks with and without user output.

Fixes #5215.

Test plan

  • The new regression failed before the fix because goos: linux was emitted as failure context.
  • cargo test --locked --lib cmds::go::go_cmd::tests --no-default-features passed (31 tests).
  • rustfmt --edition 2024 --check src/cmds/go/go_cmd.rs and git diff --check passed.

AI assistance: OpenAI Codex.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

go-test: a failing benchmark in -v=false JSON shows Go's benchmark header as failure context

3 participants