[Lldb-commits] [lldb] [lldb][test] Increase DAP default timeout to 10 minutes (PR #236251)
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 31 08:49:39 PDT 2026
https://github.com/Teemperor updated https://github.com/llvm/llvm-project/pull/236251
>From 0bfbc0bfe62daaee2b698e39af9b7a2a17cb6c0d Mon Sep 17 00:00:00 2001
From: Raphael Isemann <rise at apple.com>
Date: Tue, 27 Oct 2026 14:45:07 -0700
Subject: [PATCH] [lldb][test] Increase DAP default timeout to 10 minutes
This bumps the default timeout used in the DAP tests to 10 minutes. The
reason is that the lower timeout serves no useful purpose aside from
making the DAP tests even more flakey than they already are.
---
.../Python/lldbsuite/test/tools/lldb-dap/dap_server.py | 4 +---
.../Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py | 2 --
.../packages/Python/lldbsuite/test/tools/lldb_dap/testcase.py | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
index 4800a0e661f9de..1fb769c5e60d0a 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py
@@ -34,9 +34,7 @@
)
-# set timeout based on whether ASAN was enabled or not. Increase
-# timeout by a factor of 10 if ASAN is enabled.
-DEFAULT_TIMEOUT: Final[float] = 50.0 * (10.0 if ("ASAN_OPTIONS" in os.environ) else 1.0)
+DEFAULT_TIMEOUT: Final[float] = 600.0
# A quiet period between events, used to determine if we're done receiving
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
index 714a8c228a76b1..a97a37c4a37df5 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py
@@ -19,8 +19,6 @@
# https://github.com/llvm/llvm-project/issues/137660
@skipIf(oslist=["windows"], archs=["aarch64"])
class DAPTestCaseBase(TestBase):
- # set timeout based on whether ASAN was enabled or not. Increase
- # timeout by a factor of 10 if ASAN is enabled.
DEFAULT_TIMEOUT: Final[float] = dap_server.DEFAULT_TIMEOUT
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/testcase.py
index d68d2303d49b51..a644473dbe0074 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/testcase.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb_dap/testcase.py
@@ -28,7 +28,7 @@ class DAPTestCaseBase(Base, metaclass=LLDBTestCaseFactory):
"""Base test case for DAP tests"""
NO_DEBUG_INFO_TESTCASE = True
- DEFAULT_TIMEOUT: Final[float] = 500.0 if "ASAN_OPTIONS" in os.environ else 50.0
+ DEFAULT_TIMEOUT: Final[float] = 600.0
USE_DEFAULT_DEBUG_ADAPTER: bool = True
"""Subclasses can set this to true to avoid creating a debug adapter is will not be used."""
More information about the lldb-commits
mailing list