Skip to content

Commit 45836c3

Browse files
committed
TO-DROP: ci: only run t5410 and let it time out after 30 seconds
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e5f487d commit 45836c3

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,23 @@ jobs:
3939
with:
4040
name: windows-meson-artifacts
4141
path: build
42-
windows-meson-test:
43-
name: win+Meson test
44-
runs-on: windows-latest
45-
needs: [windows-meson-build]
46-
strategy:
47-
fail-fast: false
48-
matrix:
49-
nr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
50-
steps:
51-
- uses: actions/checkout@v4
52-
- uses: actions/setup-python@v5
53-
- name: Set up dependencies
54-
shell: pwsh
55-
run: pip install meson ninja
56-
- name: Download build artifacts
57-
uses: actions/download-artifact@v4
58-
with:
59-
name: windows-meson-artifacts
60-
path: build
6142
- name: Test
6243
shell: pwsh
63-
run: meson test -C build --list | Select-Object -Skip 1 | Select-String .* | Group-Object -Property { $_.LineNumber % 10 } | Where-Object Name -EQ ${{ matrix.nr }} | ForEach-Object { meson test -C build --no-rebuild --print-errorlogs $_.Group }
44+
run: |
45+
for ($i = 1; $i -le 10; $i++) {
46+
echo "i: $i"
47+
48+
$job = Start-Job -ScriptBlock { meson test -C build --no-rebuild --print-errorlogs t5410-receive-pack }
49+
$job | Wait-Job -Timeout 30
50+
$tookTooLong = ($job.State -ne "Completed")
51+
if ($tookTooLong) {
52+
Stop-Job $job
53+
Write-Output "Command timed out!"
54+
}
55+
# Get command output (if completed)
56+
Receive-Job $job
57+
# Cleanup job resources
58+
Remove-Job $job
59+
60+
if ($tookTooLong) { break }
61+
}

0 commit comments

Comments
 (0)