Skip to content

fix: Improve debuggability of ptytest cleanup #5170

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
Nov 24, 2022

Conversation

mafredri
Copy link
Member

There are sporadic flakes in some tests on Windows related to the use of
ptytest. Since it's not clear why they fail, this commit adds some
more logging and timeouts to the cleanup methods.

Example of failed test: cli/cliui TestWorkspaceResources/SingleAgentSSH
Link: https://github.com/coder/coder/actions/runs/3541232323/jobs/5945245470

The test largely looks successful but for some reason we don't exit the test. This could mean 1) the channel doesn't get closed because cliui.WorkspaceResources doesn't exit, or perhaps more likely, we're stuck waiting for cleanup to happen for ptytest. Or maybe somewhere else.

@mafredri mafredri self-assigned this Nov 24, 2022
@mafredri mafredri requested a review from a team November 24, 2022 14:50
There are sporadic flakes in some tests on Windows related to the use of
`ptytest`. Since it's not clear why they fail, this commit adds some
more logging and timeouts to the cleanup methods.
@mafredri mafredri force-pushed the mafredri/ptytest-improvements branch from 2a527c9 to b202855 Compare November 24, 2022 14:51
@mafredri mafredri enabled auto-merge (squash) November 24, 2022 15:03
@mafredri mafredri merged commit 6ed12ad into main Nov 24, 2022
@mafredri mafredri deleted the mafredri/ptytest-improvements branch November 24, 2022 15:20
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 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.

2 participants