Skip to content

flake: TestSSH/RemoteForwardUnixSocket #942

@blink-so

Description

@blink-so

CI failure on main branch in macOS test runner.

Workflow: ci
Committer: johnstcn
Commit: 8083d9d5c87fbb7d7d8f018706a8d0769480378a
Failure Link: https://github.com/coder/coder/actions/runs/17247377845/job/48941159145

The test TestSSH/RemoteForwardUnixSocket failed on macOS with a timeout waiting for "results: 1" output.

Error:

--- FAIL: TestSSH/RemoteForwardUnixSocket (28.83s)
    ptytest.go:368: read error
    ssh_test.go:1151: match deadline exceeded: context deadline exceeded (wanted "results: 1"; got output with netstat command)

This test was previously fixed in #16103 and #16141 to use netstat instead of ss on macOS, but appears to be flaking again. The test is trying to verify that a Unix socket remote forward is working by checking if the socket is listening using netstat -an | grep <socket_path> | wc -l | tr -d ' '.

The failure suggests the netstat command may not be finding the expected socket or there could be a timing issue with the socket creation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions