Skip to content

Conversation

@aperez
Copy link
Member

@aperez aperez commented Jul 3, 2025

It looks like #146603 broke the lldb-remote-linux-win build bot because MCPUnixSocketCommandTestCase is trying to start a protocol-server via unix domain sockets on windows.
This change makes it so the test is skipped if it is remote.

@aperez aperez requested a review from JDevlieghere as a code owner July 3, 2025 01:00
@llvmbot llvmbot added the lldb label Jul 3, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 3, 2025

@llvm/pr-subscribers-lldb

Author: Alexandre Perez (aperez)

Changes

It looks like #146603 broke the lldb-remote-linux-win build bot because MCPUnixSocketCommandTestCase is trying to start a protocol-server via unix domain sockets on windows.
This change makes it so the test is skipped if it is remote.


Full diff: https://github.com/llvm/llvm-project/pull/146807.diff

1 Files Affected:

  • (modified) lldb/test/API/commands/protocol/TestMCPUnixSocket.py (+1)
diff --git a/lldb/test/API/commands/protocol/TestMCPUnixSocket.py b/lldb/test/API/commands/protocol/TestMCPUnixSocket.py
index de0aec040695f..ea9255cc60ef5 100644
--- a/lldb/test/API/commands/protocol/TestMCPUnixSocket.py
+++ b/lldb/test/API/commands/protocol/TestMCPUnixSocket.py
@@ -12,6 +12,7 @@
 
 class MCPUnixSocketCommandTestCase(TestBase):
     @skipIfWindows
+    @skipIfRemote
     @no_debug_info_test
     def test_unix_socket(self):
         """

Copy link
Contributor

@slydiman slydiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please land it ASAP.

@aperez aperez merged commit da6c7e6 into llvm:main Jul 3, 2025
11 checks passed
@aperez aperez deleted the mcp_unix_test_fix branch July 3, 2025 10:20
@labath
Copy link
Collaborator

labath commented Jul 3, 2025

I think you're looking for @skipIf(hostoslist=["windows"])

@slydiman
Copy link
Contributor

slydiman commented Jul 3, 2025

I think you're looking for @skipIf(hostoslist=["windows"])

Yes, it looks more correct. But can a Unix socket be used for a remote connection?

@labath
Copy link
Collaborator

labath commented Jul 4, 2025

It cannot. However, the MCP connection is done locally (on the machine running lldb). You could argue @skipIfRemote is still a good thing because remote testing is not useful here (you could use the protocol to drive a remote debug session, but for most purposes the two sessions should behave the same way and this is hardly the right way to test that), but checking the host os is still the right thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants