Skip to content

chore: enable debug logging for gotestsum #5248

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

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Dec 2, 2022

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
Copy link
Member

@deansheather deansheather left a comment

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
Copy link
Member

@mafredri mafredri left a comment

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
Copy link
Member Author

mtojek commented Dec 2, 2022

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