px-explorer-v4 / pytest.ini
BuildBot
push_hf: sparse-branch für HF-Push (nur Code, 0 LFS)
9644d0b
Raw
History Blame Contribute Delete
1.9 kB
[pytest]
# Regression-Suite für all_space (px_patches + helpers + relays + infinite_context).
# Ziel: jeder Commit läuft deterministisch die Mock-/Unit-Tests; GPU- und Live-
# Tests als separate Marker, im CI als getrennte Jobs / explizit opt-in.
#
# Marker-Übersicht:
# gpu — Tests, die ein CUDA-Device + ein echtes Gemma3/4-Modell laden
# (langsam, OOM-anfällig auf der RTX 2060 12 GB).
# live — Tests, die einen laufenden FastAPI-Server (Port 7860) brauchen.
# Werden in CI übersprungen (kein Server); lokal via `--live`.
# relay — Tests, die die seite15 verstärkbar-Relay-Implementierung pinnen
# (px_patches/gemma3_270m_px_baseline/relay_inject.py).
# infinite_context — Tests, die das orphaned InfLLM/ReAttention-Modul pinnen
# (infinite_context.py). Pin-only — keine Live-Integration.
# slow — Tests, die > 5 s Laufzeit haben (z.B. Multi-Prompt-Loops).
markers =
gpu: tests requiring CUDA + real HF model load (skipped without --gpu)
live: tests requiring a running FastAPI server on :7860 (skipped in CI)
relay: regression tests for ACTIVE_MANIFOLD_RELAY (px relay_inject.py)
infinite_context: pin-tests for the orphaned InfLLM module
slow: tests with multi-second runtime (run with --runslow)
# Standardmäßig werden gpu und live übersprungen — explizit --gpu / --live
# einschalten, wenn die Umgebung passt. slow bleibt drin (für CI smoke schnell
# genug), mit --runslow opt-in für volle Suite.
addopts =
-ra
--strict-markers
--tb=short
# Test-Discovery: nur tests/ (vermeidet versehentliches Sammeln von
# benchmark_gpu_utilization.py & Co, die nicht zur Suite gehören).
testpaths = tests
# Async-Tests (test_all_models_presets.py, test_gemma4_e2b.py) laufen aktuell
# nur lokal mit Server + GPU. In CI übersprungen via --live-Default-Off.