Skip to content

chore: use goleak.VerifyNone to identify goroutine leak #5346

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

Closed
wants to merge 1 commit into from

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Dec 8, 2022

Related: #5302

This PR modifies the wsconncache_test.go to run tests synchronized (no parallel) to identify the test case which leaks the goroutine.

I'm afraid that every test case in wsconncache_test.go can be affected, but I don't know why the problem with hanging gvisor routine is caught exactly here.

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've been able to occasionally reproduce the issue with go test ./coderd/wsconncache -race -timeout=5m -count=40 -parallel 3 on Linux (setting parallel limit isn't required).

But I think this PR is good if if helps us narrow down the culprit!

See also #5348.

@mtojek
Copy link
Member Author

mtojek commented Dec 8, 2022

Closing as @mafredri submitted #5348

@mtojek mtojek closed this Dec 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2022
@mtojek
Copy link
Member Author

mtojek commented Dec 8, 2022

But I think this PR is good if if helps us narrow down the culprit!

Let's revive it if we keep seeing the issue. Thanks for your contribution.

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.

2 participants