Skip to content

Optimize delete operations: inline sibling donation checks #122

Optimize delete operations: inline sibling donation checks

Optimize delete operations: inline sibling donation checks #122

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
cd python
pip install -e .[test]
- name: Build C extension
run: |
cd python
BPLUSTREE_BUILD_C_EXTENSION=1 python setup.py build_ext --inplace
- name: Run fast tests
run: |
cd python
python -m pytest tests/ -m "not slow" -x -v
- name: Run critical reliability tests
run: |
cd python
echo "Running memory leak test (CRITICAL)..."
timeout 5m python -m pytest tests/test_memory_leaks.py::TestMemoryLeaks::test_insertion_deletion_cycle_no_leak -v --tb=short
echo "Running performance regression test (CRITICAL)..."
timeout 3m python -m pytest tests/test_performance_benchmarks.py::TestPerformanceBenchmarks::test_insertion_performance_small -v --tb=short
echo "Running invariant stress test (CRITICAL)..."
timeout 3m python -m pytest tests/test_bplus_tree.py::TestSetItemSplitting::test_many_insertions_maintain_invariants -v --tb=short
echo "Running C extension segfault tests (CRITICAL)..."
timeout 2m python -m pytest tests/test_c_extension_segfault_fix.py -v --tb=short