Skip to content

PIQP win diag: loop conic.py 5x, dump real test tracebacks #9

PIQP win diag: loop conic.py 5x, dump real test tracebacks

PIQP win diag: loop conic.py 5x, dump real test tracebacks #9

name: PIQP LP failure on Windows (fresh f38ca70abf)
on: [push, workflow_dispatch]
jobs:
diag:
runs-on: windows-2022
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Get casadi test files (piqp2)
shell: bash
run: |
git clone --depth 1 --branch piqp2 https://github.com/casadi/casadi.git src
echo "test files:"; ls src/test/python/conic.py src/test/python/helpers.py
- name: Download fresh PIQP-enabled win64 build
shell: bash
run: |
curl -sSL https://github.com/casadi/debug/releases/download/piqp-win-fresh/casadi-windows64-py311.zip -o casadi.zip
mkdir -p cs && unzip -q casadi.zip -d cs
ls cs/casadi/libcasadi_conic_piqp.dll
- name: Install deps
shell: bash
run: python -m pip install --upgrade pip numpy scipy
- name: Run real conic.py test_linear / test_linear2 (piqp only)
shell: bash
env:
PYTHONPATH: ${{ github.workspace }}/cs
run: |
export SKIP_WORHP_TESTS=1 # known unrelated worhp crash
cd src/test/python
python -c "import casadi; print('casadi',casadi.__version__,'piqp',casadi.has_conic('piqp'))"
for i in 1 2 3 4 5; do
echo "############ conic.py attempt $i ############"
python conic.py > out_$i.txt 2>&1; rc=$?
echo "exit=$rc verdict: $(grep -aE '^OK$|^OK |^FAILED' out_$i.txt | tail -1)"
if [ $rc -ne 0 ]; then
echo "---- real test errors/failures ----"
grep -anE "^(ERROR|FAIL): (test|conic)" out_$i.txt || true
echo "---- traceback ----"
grep -anA 18 -E "^(ERROR|FAIL): test" out_$i.txt | head -40 || true
fi
done