File tree Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Original file line number Diff line number Diff line change 76
76
outputs :
77
77
build_conclusion : ${{ steps.build.conclusion }}
78
78
steps :
79
+ - name : Detect hung tests
80
+ if : always()
81
+ shell : powershell
82
+ continue-on-error : true
83
+ run : |
84
+ Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
85
+ powershell.exe -File windows_detect_hung_tests.ps1
86
+ $exitCode = $LASTEXITCODE
87
+ Remove-Item -Path "windows_detect_hung_tests.ps1"
88
+ exit $exitCode
79
89
- uses : actions/checkout@v4
80
90
with :
81
91
sparse-checkout : |
@@ -182,3 +192,12 @@ jobs:
182
192
name : sycl_windows_default
183
193
path : ${{ inputs.artifact_archive_name }}
184
194
retention-days : ${{ inputs.retention-days }}
195
+ - name : Detect hung tests
196
+ if : always()
197
+ shell : powershell
198
+ run : |
199
+ Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
200
+ powershell.exe -File windows_detect_hung_tests.ps1
201
+ $exitCode = $LASTEXITCODE
202
+ Remove-Item -Path "windows_detect_hung_tests.ps1"
203
+ exit $exitCode
Original file line number Diff line number Diff line change 47
47
environment : WindowsCILock
48
48
env : ${{ fromJSON(inputs.env) }}
49
49
steps :
50
+ - name : Detect hung tests
51
+ if : always()
52
+ shell : powershell
53
+ continue-on-error : true
54
+ run : |
55
+ Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
56
+ powershell.exe -File windows_detect_hung_tests.ps1
57
+ $exitCode = $LASTEXITCODE
58
+ Remove-Item -Path "windows_detect_hung_tests.ps1"
59
+ exit $exitCode
50
60
- uses : actions/checkout@v4
51
61
with :
52
62
sparse-checkout : |
@@ -101,17 +111,14 @@ jobs:
101
111
fi
102
112
export LIT_OPTS="-v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests ${{ inputs.extra_lit_opts }}"
103
113
cmake --build build-e2e --target check-sycl-e2e
104
- - name : Detect hung tests
105
- shell : powershell
114
+ - name : Detect hung tests
106
115
if : always()
116
+ shell : powershell
107
117
run : |
108
- $exitCode = 0
109
- $hungTests = Get-Process | Where-Object { ($_.Path -match "llvm\\install") -or ($_.Path -match "llvm\\build-e2e") }
110
- $hungTests | Foreach-Object {
111
- $exitCode = 1
112
- echo "Test $($_.Path) hung!"
113
- Stop-Process -Force $_
114
- }
118
+ Invoke-WebRequest -Uri "https://raw.githubusercontent.com/intel/llvm/refs/heads/sycl/devops/scripts/windows_detect_hung_tests.ps1" -OutFile "windows_detect_hung_tests.ps1"
119
+ powershell.exe -File windows_detect_hung_tests.ps1
120
+ $exitCode = $LASTEXITCODE
121
+ Remove-Item -Path "windows_detect_hung_tests.ps1"
115
122
exit $exitCode
116
123
- name : Cleanup
117
124
shell : cmd
You can’t perform that action at this time.
0 commit comments