[llvm] [lldb][Windows][CI] refine timeouts (PR #206942)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 03:50:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-infrastructure
Author: Charles Zablit (charles-zablit)
<details>
<summary>Changes</summary>
Add/refine timeouts on each step of the lldb on Windows CI script. This should help avoid runaway builds which timeout after 24h.
---
Full diff: https://github.com/llvm/llvm-project/pull/206942.diff
1 Files Affected:
- (modified) .ci/green-dragon/lldb-windows.groovy (+17-9)
``````````diff
diff --git a/.ci/green-dragon/lldb-windows.groovy b/.ci/green-dragon/lldb-windows.groovy
index 1c05b6eabb993..bec44d39f8961 100644
--- a/.ci/green-dragon/lldb-windows.groovy
+++ b/.ci/green-dragon/lldb-windows.groovy
@@ -20,7 +20,9 @@ pipeline {
stages {
stage('Pull Docker Image') {
steps {
- bat 'docker pull swiftlang/swift-ci:lldb-windowsservercore-1809'
+ timeout(10) {
+ bat 'docker pull swiftlang/swift-ci:lldb-windowsservercore-1809'
+ }
}
}
@@ -36,17 +38,19 @@ pipeline {
stage('Print Machine Info') {
steps {
- bat '''
- docker run --rm ^
- swiftlang/swift-ci:lldb-windowsservercore-1809 ^
- powershell -Command "cmake --version; ninja --version; python --version; swig -version"
- '''
+ timeout(5) {
+ bat '''
+ docker run --rm ^
+ swiftlang/swift-ci:lldb-windowsservercore-1809 ^
+ powershell -Command "cmake --version; ninja --version; python --version; swig -version"
+ '''
+ }
}
}
stage('Build and Test') {
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
@@ -101,10 +105,14 @@ ninja check-lldb -C ..\\llvm-build || exit /b 1
post {
always {
- junit allowEmptyResults: true, testResults: 'llvm-build/test/results-no-lldb-server.xml,llvm-build/test/results-lldb-server.xml'
+ timeout(5) {
+ junit allowEmptyResults: true, testResults: 'llvm-build/test/results-no-lldb-server.xml,llvm-build/test/results-lldb-server.xml'
+ }
}
cleanup {
- deleteDir()
+ timeout(5) {
+ deleteDir()
+ }
}
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/206942
More information about the llvm-commits
mailing list