Skip to content

Update gotestsum and use github actions formatting when appropriate #5013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jmatth
Copy link
Member

@jmatth jmatth commented May 28, 2025

No description provided.

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels May 28, 2025
@jmatth jmatth force-pushed the pretty-test-output branch from d710b71 to 113e78c Compare May 28, 2025 17:40
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels May 28, 2025
@jmatth jmatth force-pushed the pretty-test-output branch from 113e78c to 503c4cd Compare May 28, 2025 17:49
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels May 28, 2025
@jmatth jmatth force-pushed the pretty-test-output branch from ce2a8f7 to 503c4cd Compare May 28, 2025 19:41
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels May 28, 2025
@@ -18,8 +18,13 @@ if [[ "$1" == "race" ]]; then
LOGFILE="--jsonfile json.log"
fi

FORMAT='standard-verbose'
if test -n "$GITHUB_RUN_ID"; then
FORMAT='github-actions'
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing this adds the "start/stop" github directives that group up output in tests? Such that a user can fold/unfold? And I believe the directives assume all of a tests' output is contiguous?

I assume parallel tests are still run in parallel. Does gotestsum buffer in memory all of the parallel test output?

When looking at the json.log file output, are we still able to (roughly) see which tests interleaved?

Nothing I'm raising is a blocker, just curious to know the exact behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants