PIQP win diag: capture conic.py failure summary #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'))" | |
| echo "==== full conic.py ====" | |
| python conic.py > out.txt 2>&1 || echo "EXIT=$?" | |
| echo "---- failure summary ----" | |
| grep -nE "ERROR:|FAIL:|FAILED|errors=|Ran [0-9]+ tests" out.txt || true | |
| echo "---- traceback context ----" | |
| grep -nA 12 "ERROR: " out.txt | head -60 || true |