Skip to content

Commit 1dc6bf3

Browse files
[lldb][lldb-dap] Disable all lldb-dap tests on Windows on Arm (#159542)
This reverts the following commits: a0a82ee 757bb36 83b48b1 b45f1fb d2e1539 e2d1bbe 71cae12 7dd879b f3b542e Where I had disabled specific tests due to them being flakey on our Windows on Arm bot. Clearly this strategy isn't working because every day I see a new random test failing. Until something can be done about this, disable every lldb-dap test on Windows on Arm. The coverage we get is just not worth spamming contributors who have nothing to do with lldb-dap. See #137660
1 parent 8fcb073 commit 1dc6bf3

File tree

9 files changed

+4
-13
lines changed

9 files changed

+4
-13
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55

66
import dap_server
77
from dap_server import Source
8+
from lldbsuite.test.decorators import skipIf
89
from lldbsuite.test.lldbtest import *
910
from lldbsuite.test import lldbplatformutil
1011
import lldbgdbserverutils
1112
import base64
1213

1314

15+
# DAP tests as a whole have been flakey on the Windows on Arm bot. See:
16+
# https://github.com/llvm/llvm-project/issues/137660
17+
@skipIf(oslist=["windows"], archs=["aarch64"])
1418
class DAPTestCaseBase(TestBase):
1519
# set timeout based on whether ASAN was enabled or not. Increase
1620
# timeout by a factor of 10 if ASAN is enabled.

lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def set_and_hit_breakpoint(self, continueToExit=True):
4040
self.continue_to_exit()
4141

4242
@skipIfNetBSD # Hangs on NetBSD as well
43-
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
4443
def test_by_pid(self):
4544
"""
4645
Tests attaching to a process by process ID.
@@ -56,7 +55,6 @@ def test_by_pid(self):
5655
self.set_and_hit_breakpoint(continueToExit=True)
5756

5857
@skipIfNetBSD # Hangs on NetBSD as well
59-
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
6058
def test_by_name(self):
6159
"""
6260
Tests attaching to a process by process name.
@@ -95,7 +93,6 @@ def test_by_name_waitFor(self):
9593
self.set_and_hit_breakpoint(continueToExit=True)
9694

9795
@skipIfNetBSD # Hangs on NetBSD as well
98-
@skipIfWindows
9996
def test_commands(self):
10097
"""
10198
Tests the "initCommands", "preRunCommands", "stopCommands",

lldb/test/API/tools/lldb-dap/cancel/TestDAP_cancel.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def async_blocking_request(self, duration: float) -> int:
3737
def async_cancel(self, requestId: int) -> int:
3838
return self.send_async_req(command="cancel", arguments={"requestId": requestId})
3939

40-
@skipIfWindows
4140
def test_pending_request(self):
4241
"""
4342
Tests cancelling a pending request.
@@ -70,7 +69,6 @@ def test_pending_request(self):
7069
self.assertEqual(cancel_resp["success"], True)
7170
self.continue_to_exit()
7271

73-
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
7472
def test_inflight_request(self):
7573
"""
7674
Tests cancelling an inflight request.

lldb/test/API/tools/lldb-dap/console/TestDAP_console.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def check_lldb_command(
3838
),
3939
)
4040

41-
@skipIfWindows
4241
def test_scopes_variables_setVariable_evaluate(self):
4342
"""
4443
Tests that the "scopes" request causes the currently selected

lldb/test/API/tools/lldb-dap/io/TestDAP_io.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def test_incorrect_content_length(self):
7676
process.stdin.close()
7777
self.assertEqual(process.wait(timeout=5.0), EXIT_FAILURE)
7878

79-
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
8079
def test_partial_content_length(self):
8180
"""
8281
lldb-dap returns a failure exit code when the input stream is closed

lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ def test_termination(self):
9696
# Check the return code
9797
self.assertEqual(self.dap_server.process.poll(), 0)
9898

99-
# Flakey on Windows, https://github.com/llvm/llvm-project/issues/137660.
100-
@skipIfWindows
10199
def test_stopOnEntry(self):
102100
"""
103101
Tests the default launch of a simple program that stops at the
@@ -144,7 +142,6 @@ def test_cwd(self):
144142
)
145143
self.assertTrue(found, "verified program working directory")
146144

147-
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
148145
def test_debuggerRoot(self):
149146
"""
150147
Tests the "debuggerRoot" will change the working directory of

lldb/test/API/tools/lldb-dap/startDebugging/TestDAP_startDebugging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class TestDAP_startDebugging(lldbdap_testcase.DAPTestCaseBase):
11-
@skipIfWindows # https://github.com/llvm/llvm-project/issues/137660
1211
def test_startDebugging(self):
1312
"""
1413
Tests the "startDebugging" reverse request. It makes sure that the IDE can

lldb/test/API/tools/lldb-dap/step/TestDAP_step.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def test_step(self):
8484
# only step one thread that is at the breakpoint and stop
8585
break
8686

87-
@skipIfWindows
8887
def test_step_over_inlined_function(self):
8988
"""
9089
Test stepping over when the program counter is in another file.

lldb/test/API/tools/lldb-dap/stepInTargets/TestDAP_stepInTargets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def test_supported_capability_x86_arch(self):
102102
self.continue_to_exit()
103103

104104
@skipIf(archs=["x86", "x86_64"])
105-
@skipIfWindows
106105
def test_supported_capability_other_archs(self):
107106
program = self.getBuildArtifact("a.out")
108107
self.build_and_launch(program)

0 commit comments

Comments
 (0)