ci: retry transient Chroma reader initialization failure

This commit is contained in:
Igor Lins e Silva 2026-08-03 20:22:51 -03:00
parent 67dcaf3164
commit 047d7333df
1 changed files with 10 additions and 5 deletions

View File

@ -30,13 +30,18 @@ jobs:
python-version: "3.13"
cache: 'pip'
- run: pip install -e ".[dev]"
# ChromaDB's rust HNSW core intermittently fails compaction on Windows
# ("Failed to apply logs to the hnsw segment writer") regardless of our
# code — a long-standing, non-reproducible-on-Linux/macOS flake. Retry
# ONLY that specific transient error (via --only-rerun) so real,
# ChromaDB's rust HNSW core intermittently fails compaction or reader
# initialization on Windows ("Failed to apply logs to the hnsw segment
# writer" / "Error creating hnsw segment reader: Nothing found on disk")
# regardless of our code — long-standing, non-reproducible-on-Linux/macOS
# flakes. Retry ONLY those specific transient errors (via --only-rerun) so real,
# deterministic failures still fail on the first run. Linux/macOS jobs
# deliberately run with no reruns so genuine regressions surface there.
- run: python -m pytest tests/ -v --ignore=tests/benchmarks --cov=mempalace --cov-report=term-missing --cov-fail-under=80 --durations=10 --reruns 2 --reruns-delay 5 --only-rerun "Failed to apply logs to the hnsw segment writer"
- run: >-
python -m pytest tests/ -v --ignore=tests/benchmarks --cov=mempalace
--cov-report=term-missing --cov-fail-under=80 --durations=10 --reruns 2
--reruns-delay 5 --only-rerun
"Failed to apply logs to the hnsw segment writer|Error creating hnsw segment reader: Nothing found on disk"
test-macos:
runs-on: macos-latest