summaryrefslogtreecommitdiff
path: root/cross-project-tests
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-09-08 10:10:39 +0100
committerGitHub <noreply@github.com>2025-09-08 10:10:39 +0100
commita20fc93a65f763cc3f55988847b7294fcbdcb5db (patch)
tree2560c75ea4dd5c24375c2caf301526c8a2a3d90e /cross-project-tests
parentfe6e17840159f7ae9785d8506ff2987a2df7ab08 (diff)
[Dexter] llvm-lit: always log DAP messages (#157145)
Buildbot cross-project-tests-sie-ubuntu sees sporadic test failures due to missing "stackTrace" "source" "path". The "path" field is optional for "source" according to DAP, so it's well formed. It works most of the time, and doesn't consistently fail for any one test which is all strangely inconsistent. The failures couldn't be reproduced locally after running the feature_tests in a loop for 3 hours. I haven't been able to work out why the "source" is sometimes missing by just looking at LLDB code. With this patch, we might be able to get clues about the flaky tests with well timed log inspection.
Diffstat (limited to 'cross-project-tests')
-rw-r--r--cross-project-tests/lit.cfg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cross-project-tests/lit.cfg.py b/cross-project-tests/lit.cfg.py
index b783f6639c93..8dc0e083b92e 100644
--- a/cross-project-tests/lit.cfg.py
+++ b/cross-project-tests/lit.cfg.py
@@ -121,7 +121,7 @@ def configure_dexter_substitutions():
tools.append(
ToolSubst(
"%dexter_lldb_args",
- f'--lldb-executable "{lldb_dap_path}" --debugger lldb-dap',
+ f'--lldb-executable "{lldb_dap_path}" --debugger lldb-dap --dap-message-log=%t.dap.log',
)
)
@@ -148,7 +148,9 @@ def configure_dexter_substitutions():
dexter_regression_test_c_builder = "clang"
dexter_regression_test_cxx_builder = "clang++"
dexter_regression_test_debugger = "lldb-dap"
- dexter_regression_test_additional_flags = f'--lldb-executable "{lldb_dap_path}"'
+ dexter_regression_test_additional_flags = (
+ f'--lldb-executable "{lldb_dap_path}" --dap-message-log=%t.dap.log'
+ )
dexter_regression_test_c_flags = "-O0 -glldb -std=gnu11"
dexter_regression_test_cxx_flags = "-O0 -glldb -std=gnu++11"