File tree Expand file tree Collapse file tree 2 files changed +26
-10
lines changed
Expand file tree Collapse file tree 2 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 7676 outputs :
7777 build_conclusion : ${{ steps.build.conclusion }}
7878 steps :
79+ - name : Detect hung tests
80+ if : always()
81+ shell : powershell
82+ run : |
83+ 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"
84+ powershell.exe -File windows_detect_hung_tests.ps1
85+ exit $LASTEXITCODE
7986 - uses : actions/checkout@v4
8087 with :
8188 sparse-checkout : |
@@ -182,3 +189,10 @@ jobs:
182189 name : sycl_windows_default
183190 path : ${{ inputs.artifact_archive_name }}
184191 retention-days : ${{ inputs.retention-days }}
192+ - name : Detect hung tests
193+ if : always()
194+ shell : powershell
195+ run : |
196+ 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"
197+ powershell.exe -File windows_detect_hung_tests.ps1
198+ exit $LASTEXITCODE
Original file line number Diff line number Diff line change 4747 environment : WindowsCILock
4848 env : ${{ fromJSON(inputs.env) }}
4949 steps :
50+ - name : Detect hung tests
51+ if : always()
52+ shell : powershell
53+ run : |
54+ 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"
55+ powershell.exe -File windows_detect_hung_tests.ps1
56+ exit $LASTEXITCODE
5057 - uses : actions/checkout@v4
5158 with :
5259 sparse-checkout : |
@@ -101,18 +108,13 @@ jobs:
101108 fi
102109 export LIT_OPTS="-v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests ${{ inputs.extra_lit_opts }}"
103110 cmake --build build-e2e --target check-sycl-e2e
104- - name : Detect hung tests
105- shell : powershell
111+ - name : Detect hung tests
106112 if : always()
113+ shell : powershell
107114 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- }
115- exit $exitCode
115+ 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"
116+ powershell.exe -File windows_detect_hung_tests.ps1
117+ exit $LASTEXITCODE
116118 - name : Cleanup
117119 shell : cmd
118120 if : always()
You can’t perform that action at this time.
0 commit comments