Skip to content

ci: isolate recurrent verbosity abort #4

ci: isolate recurrent verbosity abort

ci: isolate recurrent verbosity abort #4

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
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: Install debugger
run: |
sudo apt-get update
sudo apt-get install --yes gdb
- name: Build package
run: |
python -m pip install --upgrade pip
python -m pip install uv
python -m uv pip install -e '.[all]' --verbose
- name: Construct recurrent context with verbose disabled
continue-on-error: true
env:
VERBOSE: "0"
run: python tests/diagnose_recurrent_context.py
- name: Construct recurrent context with verbose enabled
continue-on-error: true
env:
VERBOSE: "1"
run: python tests/diagnose_recurrent_context.py
- name: Run original recurrent test
continue-on-error: true
run: |
python -m pytest -vv -s \
tests/test_llama.py::test_recurrent_model_prompt_cache_reset
- name: Capture verbose-disabled backtrace
continue-on-error: true
env:
VERBOSE: "0"
run: |
gdb --batch \
-ex "set pagination off" \
-ex run \
-ex "thread apply all bt" \
--args python tests/diagnose_recurrent_context.py