Skip to content

feat: Add GitHub Actions failure formatter#568

Open
abhinav wants to merge 1 commit into
gotestyourself:mainfrom
abhinav:github-actions-fails-format
Open

feat: Add GitHub Actions failure formatter#568
abhinav wants to merge 1 commit into
gotestyourself:mainfrom
abhinav:github-actions-fails-format

Conversation

@abhinav
Copy link
Copy Markdown

@abhinav abhinav commented May 23, 2026

Large test suites can overload GitHub Actions logs,
slowing down log browsing in the UI.

Add github-actions-fails as a quieter formatter
that keeps package progress visible
while only expanding failed test diagnostics.

Package-level failures still promote buffered package output so
TestMain and init failures keep their error context.

Naming: this is called github-actions-fails to mirror
the precedent set by pkgname-and-test-fails.

Resolves #543

Large test suites can overload GitHub Actions logs,
slowing down log browsing in the UI.

Add `github-actions-fails` as a quieter formatter
that keeps package progress visible
while only expanding failed test diagnostics.

Package-level failures still promote buffered package output so
TestMain and init failures keep their error context.

Naming: this is called github-actions-fails to mirror
the precedent set by pkgname-and-test-fails.

Resolves gotestyourself#543
@abhinav
Copy link
Copy Markdown
Author

abhinav commented May 23, 2026

This change is part of the following stack:

Change managed by git-spice.

@abhinav
Copy link
Copy Markdown
Author

abhinav commented May 23, 2026

I see there's also #558 implementing a similar feature.

abhinav added a commit to abhinav/git-spice that referenced this pull request May 23, 2026
gotestsum's github-actions formatter writes grouped output
for all tests across all packages to the logs.
This ends up really slowing down GitHub Actions log browser
because of the sheer volume of output.

Switch to the github-actions-fails formatter
implemented in gotestyourself/gotestsum#568
to fix this.

[skip changelog]: no user facing changes
abhinav added a commit to abhinav/git-spice that referenced this pull request May 23, 2026
gotestsum's github-actions formatter writes grouped output
for all tests across all packages to the logs.
This ends up really slowing down GitHub Actions log browser
because of the sheer volume of output.

Switch to the github-actions-fails formatter
implemented in gotestyourself/gotestsum#568
to fix this.

[skip changelog]: no user facing changes
abhinav added a commit to abhinav/git-spice that referenced this pull request May 24, 2026
gotestsum's github-actions formatter writes grouped output
for all tests across all packages to the logs.
This ends up really slowing down GitHub Actions log browser
because of the sheer volume of output.

Switch to the github-actions-fails formatter
implemented in gotestyourself/gotestsum#568
to fix this.
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.

Allow GitHub actions formatter to only display failure outputs.

1 participant