Skip to content

fix: use netstat over ss when testing unix socket #16103

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
Jan 13, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Jan 13, 2025

Closes coder/internal#274.

TestSSH/RemoteForwardUnixSocket previously used ss for confirming if a socket was listening. ss isn't available on macOS, causing the test to flake.

The test previously passed on macOS as a 2 could always be read on the SSH connection, presumably reading it as part of some escape sequence? I confirmed the test passed on Linux if you comment out the ss command, the pty would always read a sequence ending in [?2.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson force-pushed the ethan/test-unix-socket-macos branch from f6e5e3c to 040cde7 Compare January 13, 2025 09:20
@ethanndickson ethanndickson changed the title fix: use test over ss when testing unix socket fix: use netstat over ss when testing unix socket Jan 13, 2025
@ethanndickson ethanndickson marked this pull request as ready for review January 13, 2025 09:24
@ethanndickson ethanndickson merged commit a7fe35a into main Jan 13, 2025
55 checks passed
@ethanndickson ethanndickson deleted the ethan/test-unix-socket-macos branch January 13, 2025 09:51
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2025
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.

flake: TestSSH/RemoteForwardUnixSocket
2 participants