Skip to content

chore: enable debug logging for gotestsum#5248

Merged
mtojek merged 1 commit into
coder:mainfrom
mtojek:5247-gotestsum-debug
Dec 2, 2022
Merged

chore: enable debug logging for gotestsum#5248
mtojek merged 1 commit into
coder:mainfrom
mtojek:5247-gotestsum-debug

Conversation

@mtojek

@mtojek mtojek commented Dec 2, 2022

Copy link
Copy Markdown
Member

Issue: #5247

This PR enables debug logging for gotestsum. It seems that there is an interleave between some logger calls, so gotestsum can't find the line with the prefix --- PASS:. With the debug mode enabled we should the output from go test.

@mtojek mtojek self-assigned this Dec 2, 2022
@mtojek mtojek requested a review from a team December 2, 2022 11:15
@mtojek mtojek marked this pull request as ready for review December 2, 2022 11:15

@deansheather deansheather left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM as long as it's temporary so we can report a bug upstream

@mtojek mtojek enabled auto-merge (squash) December 2, 2022 11:18
@mtojek mtojek disabled auto-merge December 2, 2022 11:19

@mafredri mafredri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see a problem with enabling debug 👍🏻, but the actual issue may have been due to pty's being left behind (#5250).

@mtojek

mtojek commented Dec 2, 2022

Copy link
Copy Markdown
Member Author

I didn't analyze the PTY logic, rather wanted to see the output. Looking at the test output, we can see that all the last assertions have been matched. It doesn't look to me that something is chopped, but I might be wrong.

Do you think that it is still valid to merge this PR?

@mtojek mtojek merged commit ee4f0fc into coder:main Dec 2, 2022
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants