[llvm] [lldb][Windows][CI] split steps (PR #206946)
Charles Zablit via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 03:59:55 PDT 2026
https://github.com/charles-zablit created https://github.com/llvm/llvm-project/pull/206946
Split the lldb green-dragon lldb testing steps into 2:
1. Build and run the tests without `lldb-server.exe`
2. Run the tests with `lldb-server.exe`
This gives better separation in the UI and if the first step fails, the second step will still attempt to run.
>From d03a08597cc3d9b45aa8df6cd44d4743381c24aa Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Wed, 1 Jul 2026 11:56:26 +0100
Subject: [PATCH] [lldb][Windows][CI] split steps
---
.ci/green-dragon/lldb-windows.groovy | 29 ++++++++++++++++++++++++----
1 file changed, 25 insertions(+), 4 deletions(-)
diff --git a/.ci/green-dragon/lldb-windows.groovy b/.ci/green-dragon/lldb-windows.groovy
index 1c05b6eabb993..940b9f894244a 100644
--- a/.ci/green-dragon/lldb-windows.groovy
+++ b/.ci/green-dragon/lldb-windows.groovy
@@ -44,9 +44,9 @@ pipeline {
}
}
- stage('Build and Test') {
+ stage('Build and Test (No LLDB Server)') {
steps {
- timeout(240) {
+ timeout(60) {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
writeFile file: 'build.bat', text: '''@echo off
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" || exit /b 1
@@ -77,6 +77,28 @@ cmake -G Ninja ^
-DLLVM_LIT_ARGS="-v --time-tests --xunit-xml-output=C:\\workspace\\llvm-build\\test\\results-no-lldb-server.xml" ^
-DPython3_EXECUTABLE="C:\\Program Files\\Python313\\python.exe" || exit /b 1
ninja check-lldb -C ..\\llvm-build || exit /b 1
+'''
+ bat '''
+ docker run --rm ^
+ -e BUILD_TYPE=%BUILD_TYPE% ^
+ -v "%CD%:C:\\workspace" ^
+ -w "C:\\workspace\\llvm-project" ^
+ swiftlang/swift-ci:lldb-windowsservercore-1809 ^
+ cmd /C C:\\workspace\\build.bat
+ '''
+ }
+ }
+ }
+ }
+
+ stage('Test (LLDB Server)') {
+ steps {
+ timeout(30) {
+ catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
+ writeFile file: 'test-lldb-server.bat', text: '''@echo off
+call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" || exit /b 1
+
+set "PATH=%PATH%;C:\\Program Files\\Git\\usr\\bin"
cmake -G Ninja ^
-S llvm ^
@@ -91,13 +113,12 @@ ninja check-lldb -C ..\\llvm-build || exit /b 1
-v "%CD%:C:\\workspace" ^
-w "C:\\workspace\\llvm-project" ^
swiftlang/swift-ci:lldb-windowsservercore-1809 ^
- cmd /C C:\\workspace\\build.bat
+ cmd /C C:\\workspace\\test-lldb-server.bat
'''
}
}
}
}
- }
post {
always {
More information about the llvm-commits
mailing list