ci: preserve runner glibc for diagnostics #6
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: Diagnose recurrent Linux abort | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - test/diagnose-linux-recurrent-abort | |
| env: | |
| MODEL_CACHE_KEY: qwen35-q8-mamba130m-q2-falconh1tiny-q2-bge-small-q4 | |
| jobs: | |
| diagnose: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: baseline | |
| install_debugger: false | |
| - name: baseline-gdb | |
| install_debugger: true | |
| name: ${{ matrix.name }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Restore model cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/huggingface/hub | |
| key: ${{ runner.os }}-model-${{ env.MODEL_CACHE_KEY }} | |
| - name: Show runner CPU | |
| run: lscpu | |
| - name: Show glibc before package installation | |
| run: ldd --version | |
| - name: Install debugger without upgrading installed packages | |
| if: matrix.install_debugger | |
| run: | | |
| sudo apt-get install --yes --no-upgrade gdb | |
| - name: Show glibc after package installation | |
| run: ldd --version | |
| - name: Build package | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| python -m uv pip install -e '.[all]' --verbose | |
| - name: Reproduce full test suite | |
| continue-on-error: true | |
| run: python -m pytest | |
| - name: Capture full-suite backtrace | |
| if: matrix.install_debugger | |
| continue-on-error: true | |
| run: | | |
| gdb --batch \ | |
| -ex "set pagination off" \ | |
| -ex run \ | |
| -ex "thread apply all bt" \ | |
| --args python -m pytest |