Skip to content

Commit e4103b2

Browse files
Transurgeonclaude
andcommitted
Throwaway repro: make result reporting robust, rerun the two inconclusive jobs
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 1446706 commit e4103b2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/scs-win-repro.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
include:
1919
- cvxpy: conda-1.9.2
2020
scope: alone
21-
- cvxpy: conda-1.9.2
22-
scope: full
2321
- cvxpy: wheel-1.9.3
2422
scope: full
2523
defaults:
@@ -69,6 +67,7 @@ jobs:
6967
7068
- name: Run pytest (${{ matrix.scope }})
7169
run: |
70+
set +e +o pipefail
7271
# Run from site-packages against the installed tests, like the feedstock does
7372
cd "$(python -c 'import cvxpy, os; print(os.path.dirname(os.path.dirname(cvxpy.__file__)))')"
7473
if [ "${{ matrix.scope }}" = alone ]; then
@@ -79,6 +78,7 @@ jobs:
7978
python -m pytest $args -q -rf -p no:cacheprovider > "$RUNNER_TEMP/out.txt" 2>&1 || true
8079
tail -25 "$RUNNER_TEMP/out.txt"
8180
summary=$(grep -E "(passed|failed).* in [0-9.]+s" "$RUNNER_TEMP/out.txt" | tail -1)
82-
pcp=$(grep -q "FAILED .*test_pcp_5" "$RUNNER_TEMP/out.txt" && echo FAILED || (grep -q "test_pcp_5" "$RUNNER_TEMP/out.txt" && echo see-log || echo not-failed))
81+
pcp=$(grep -q "FAILED .*test_pcp_5" "$RUNNER_TEMP/out.txt" && echo FAILED || echo not-failed)
82+
collected=$(grep -E "collected|error" "$RUNNER_TEMP/out.txt" | head -3 | cut -c 1-120 | tr '\n' ';')
8383
failed=$(grep -E "^FAILED " "$RUNNER_TEMP/out.txt" | cut -c 1-90 | tr '\n' ';')
84-
echo "::notice title=pytest ${{ matrix.cvxpy }} ${{ matrix.scope }}::test_pcp_5 $pcp | $summary | $failed"
84+
echo "::notice title=pytest ${{ matrix.cvxpy }} ${{ matrix.scope }}::test_pcp_5 $pcp | $summary | $failed | $collected"

0 commit comments

Comments
 (0)