Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
TRANSFORMERS_CACHE: ~/.cache/huggingface
HF_HOME: ~/.cache/huggingface
run: pytest tests -v
# Process isolation: run each test file in its own fresh worker process.
# Running the full suite in a single process accumulates native runtimes
# (cocoindex + lancedb Tokio, plus kuzu's scheduler and torch) that corrupt
# the heap, crashing kuzu's NodeTableScanState::scanNext with a SIGSEGV ~53%.
# `--dist loadfile` keeps each file in one worker, so no cross-file state
# accumulates. Verified: 771 passed / 9 skipped, no segfault.
run: pytest tests -n auto --dist loadfile -v
- name: Skip tests (docs-only)
if: steps.changes.outputs.code != 'true'
run: echo "Docs-only change; pytest skipped."
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dependencies = [
dev = [
"pytest>=7",
"pytest-asyncio>=0.21",
"pytest-xdist>=3",
"ruff>=0.4",
]

Expand Down
Loading