Skip to content
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

chore: Add (skipped) ptytest test that hangs on Intel Mac (and Windows) #1629

Conversation

mafredri
Copy link
Member

This (draft) PR adds a test that breaks ptytest with unconsumed output on Intel Macs.

This is left open to inform / opportunity to investigate.

To reproduce: go test ./pty/ptytest -v -run=TestPtytest/Do_not_hang -timeout=5s

Here is the trace: trace.txt

// @coder/backend @Emyrk

@mafredri
Copy link
Member Author

This was prompted by macOS test failures in #1591, and investigation using my macOS. The issue was narrowed down to not reading from ptytest specifically on Intel macOS, but the actual underlying issue remains unknown.

If we can confirm that the tests are correct, we could merge this in as skipped tests and open up a new issue to track the progress.

@ammario
Copy link
Member

ammario commented Jun 7, 2022

What's the status of this PR?

@mafredri mafredri force-pushed the mafredri/draft-ptytest-hangs-on-macos-when-output-is-not-consumed branch from ad76f64 to 7692c5d Compare June 7, 2022 09:57
@mafredri mafredri force-pushed the mafredri/draft-ptytest-hangs-on-macos-when-output-is-not-consumed branch from 21bcca7 to 034cfa6 Compare June 7, 2022 10:03
@mafredri mafredri marked this pull request as ready for review June 7, 2022 13:44
@mafredri mafredri changed the title bug: Add test that breaks ptytest on Intel Mac bug: Add test that breaks ptytest on Intel Mac (and Windows) Jun 7, 2022
@mafredri mafredri requested review from Emyrk and a team June 7, 2022 13:45
@mafredri mafredri changed the title bug: Add test that breaks ptytest on Intel Mac (and Windows) chore: Add (skipped) test that breaks ptytest on Intel Mac (and Windows) Jun 7, 2022
@mafredri
Copy link
Member Author

mafredri commented Jun 7, 2022

@ammario With the latest commits, this is now ready to be merged. Fixing this most likely requires a refactor (and decision on how to proceed) of the ptytest package.

I've opened #2122 to track it.

@mafredri mafredri force-pushed the mafredri/draft-ptytest-hangs-on-macos-when-output-is-not-consumed branch from e7fad00 to 487f338 Compare June 7, 2022 13:48
pty/ptytest/ptytest_test.go Show resolved Hide resolved
@mafredri mafredri changed the title chore: Add (skipped) test that breaks ptytest on Intel Mac (and Windows) chore: Add (skipped) ptytest test that hangs on Intel Mac (and Windows) Jun 7, 2022
@mafredri mafredri merged commit 6da4810 into main Jun 7, 2022
@mafredri mafredri deleted the mafredri/draft-ptytest-hangs-on-macos-when-output-is-not-consumed branch June 7, 2022 14:08
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
…ows) (#1629)

Co-authored-by: Steven Masley <stevenmasley@coder.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants