Skip to content

ci: replace gotestfmt with tparse v0.18.0 - #567

Merged
dennwc merged 2 commits into
mainfrom
claude/replace-gotestfmt-with-tparse
Nov 19, 2026
Merged

dennwc merged 2 commits into
mainfrom
claude/replace-gotestfmt-with-tparse

Conversation

@dennwc

@dennwc dennwc commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

build/test/entrypoint.sh now pipes test output into tparse instead of gotestfmt, for both the integration suite and the unit tests. gotestfmt prints a group per test, so a failure is buried in thousands of lines with no summary. tparse prints the failing test's output and a per-package summary table at the end of the log. tparse is pinned to v0.18.0 rather than installed from @latest.

  • Dropped 2>&1 before each pipe: tparse rejects the whole stream if a non-JSON line follows the first JSON event. For the integration suite only test2json's own stderr leaves the pipe; it already captures the test binary's stdout and stderr as JSON events.
  • The unit tests run as go test -json instead of test2json wrapping go test -v, so each package gets its own row in the summary instead of all of them reporting as one ingress package. Build errors still reach tparse as JSON events (Go 1.24+).
  • Exit handling is unchanged: set -eo pipefail still fails the script on a failing test, and tparse itself exits 1 on any failure.

Verified with bash -n, and by running a scratch module through the same pipelines under set -eo pipefail: exit 0 on pass, 1 on a failing test, 1 on a build error. Not run inside the test image.


Generated by Claude Code

@dennwc
dennwc requested a review from a team as a code owner November 19, 2026 15:30
@CLAassistant

CLAassistant commented Nov 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

The test entrypoint now pipes test output into tparse instead of
gotestfmt, so failing tests' output and a summary table land at the end
of the log instead of being buried among per-test groups. tparse is
pinned rather than installed from @latest.

The unit tests run under `go test -json` instead of test2json wrapping
`go test -v`, so each package gets its own row in the summary rather than
all of them reporting as one "ingress" package.

stderr stays out of the pipe: tparse rejects the whole stream if a
non-JSON line follows the first JSON event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1stDkLA73F1pW3QWkhNVT
@dennwc
dennwc force-pushed the claude/replace-gotestfmt-with-tparse branch from 76b7b5f to 66a3ebe Compare November 19, 2026 15:52
Locks the install to the commit the v0.18.0 tag points to, so a moved
tag cannot change what CI runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1stDkLA73F1pW3QWkhNVT
@dennwc
dennwc merged commit 3c55c46 into main Nov 19, 2026
11 checks passed
@dennwc
dennwc deleted the claude/replace-gotestfmt-with-tparse branch November 19, 2026 20:22
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.

3 participants