Skip to content

fix(ahma_mcp): gate a UDS-only restart test behind cfg(unix) - #556

Merged
paulirotta merged 1 commit into
mainfrom
fix/windows-unix-socket-test-gate
Aug 8, 2026
Merged

fix(ahma_mcp): gate a UDS-only restart test behind cfg(unix)#556
paulirotta merged 1 commit into
mainfrom
fix/windows-unix-socket-test-gate

Conversation

@paulirotta

Copy link
Copy Markdown
Owner

handle_restart_ignores_retired_unix_socket_env_var binds a
tokio::net::UnixListener unconditionally, which fails to compile on
Windows (E0433: UnixListener is configured out under cfg(unix)) and
broke the windows-latest leg of the post-merge matrix.

handle_restart itself only ever attempts a UDS connection when
cfg!(unix) is true, so the property this test proves - the retired
AHMA_UNIX_SOCKET is never contacted - holds trivially and unreachably
on non-Unix platforms, with no cross-platform equivalent to gate
instead. Per AGENTS.md, #[cfg(unix)] is the correct fix here: the test
genuinely needs a Unix-only API.

handle_restart_ignores_retired_unix_socket_env_var binds a
tokio::net::UnixListener unconditionally, which fails to compile on
Windows (E0433: UnixListener is configured out under cfg(unix)) and
broke the windows-latest leg of the post-merge matrix.

handle_restart itself only ever attempts a UDS connection when
cfg!(unix) is true, so the property this test proves - the retired
AHMA_UNIX_SOCKET is never contacted - holds trivially and unreachably
on non-Unix platforms, with no cross-platform equivalent to gate
instead. Per AGENTS.md, #[cfg(unix)] is the correct fix here: the test
genuinely needs a Unix-only API.
@paulirotta
paulirotta enabled auto-merge (squash) August 8, 2026 12:26
@paulirotta
paulirotta merged commit 20d0782 into main Aug 8, 2026
4 checks passed
@paulirotta
paulirotta deleted the fix/windows-unix-socket-test-gate branch August 8, 2026 12:32
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.

1 participant