Skip to content

Commit 44305ce

Browse files
committed
[CI] Add more Windows hung test checks
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent cda8572 commit 44305ce

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

.github/workflows/sycl-windows-build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ jobs:
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

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
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()

0 commit comments

Comments
 (0)