Skip to content

Commit 3656d2a

Browse files
MNT: do not let one Python version cancel the other in the slow matrix (#1100)
* MNT: do not let one Python version cancel the other in the slow matrix #1084 added fail-fast: false to the main test matrix while this was open, so the only half left is the slow one. Same reason: 3.10 failing says nothing about 3.14, so cancelling it costs a result and saves nothing worth having. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com> * MNT: retry the VTK tests on SIGSEGV, not only on macOS SIGBUS #1084 retries the animation tests when they die on 138, which is SIGBUS on macOS. Counting the last 40 Tests runs, the crash was 139 eight times and 138 twice, so the common case fell straight through the retry. Linux SIGBUS is 135 rather than 138, so that missed as well. Also sets fail-fast: false on the slow matrix, which #1084 left out. 3.10 failing says nothing about 3.14, so cancelling it costs a result and saves nothing worth having. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com> --------- Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com> Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com>
1 parent d74bf3f commit 3656d2a

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎.github/workflows/test-pytest-slow.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
pytest:
2121
runs-on: ubuntu-latest
2222
strategy:
23+
# Same reason as the main matrix: 3.10 failing tells you nothing about
24+
# 3.14, so cancelling it costs a result and saves nothing worth having.
25+
fail-fast: false
2326
matrix:
2427
python-version: ["3.10", "3.14"]
2528
env:
@@ -75,7 +78,10 @@ jobs:
7578
else
7679
status=$?
7780
fi
78-
if [[ "$status" != "138" || "$attempt" == "$attempts" ]]; then
81+
# 138 is SIGBUS on macOS, 135 is SIGBUS on Linux, 139 is SIGSEGV on
82+
# both. The measured split on this test was eight SIGSEGV to two
83+
# SIGBUS, so keying on 138 alone let the common case through.
84+
if [[ ! "$status" =~ ^(135|138|139)$ || "$attempt" == "$attempts" ]]; then
7985
exit "$status"
8086
fi
8187
done

‎.github/workflows/test_pytest.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
Pytest:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
20+
# One platform's result should not decide the other five. Added in #1084;
21+
# kept explicit here so it does not get tidied away later.
2022
fail-fast: false
2123
matrix:
2224
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -85,7 +87,10 @@ jobs:
8587
else
8688
status=$?
8789
fi
88-
if [[ "$status" != "138" || "$attempt" == "$attempts" ]]; then
90+
# 138 is SIGBUS on macOS, 135 is SIGBUS on Linux, 139 is SIGSEGV on
91+
# both. The measured split on this test was eight SIGSEGV to two
92+
# SIGBUS, so keying on 138 alone let the common case through.
93+
if [[ ! "$status" =~ ^(135|138|139)$ || "$attempt" == "$attempts" ]]; then
8994
exit "$status"
9095
fi
9196
done

0 commit comments

Comments
 (0)