test: fix stale/environment-fragile tests (nightly check-and-test)#163
Conversation
…nd-test - test_env_loader_mode: isolate ambient BACKEND_PORT (override=False contract) - test_unified_search_floor: enable floor explicitly (default flipped to off in #161) - test_embedding_service_concurrency: assert serialized encode (peak==1) after _MODEL_ENCODE_LOCK serialization in #153 - test_recycle_smoke_integration: raise readiness timeouts for ML model (re)load under CI contention - test_interaction_workflows: add per-test timeout(300) marker so cold embedder + reranker loads under -n auto don't spuriously time out Also includes ruff-format normalization of two source files.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe ChangesBilling, extraction, and test fixes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Companion to ReflexioAI/reflexio-enterprise#240, opened by the nightly check-and-test run.
These tests passed in isolation but failed in the full run because they were stale relative to intentional behavior changes, or fragile to the CI environment:
BACKEND_PORT— the loader isoverride=False, so aBACKEND_PORTexported by the suite's shell wins over the file value.peak == 1); fix(embedding): serialize model inference to stop concurrent-encode tensor race #153 added_MODEL_ENCODE_LOCKto stop the concurrent-encode tensor race, so encodes no longer overlap./healthzreadiness timeouts — a recycled worker reloads the embedder + cross-encoder, which exceeds the old budget on a contended box.timeout(300)marker so cold embedder + reranker loads under the default-n autorun don't spuriously hit the 120s per-test timeout.Also includes ruff-format normalization of two source files.
Verified: the fixed tests pass with and without the ambient env that originally broke them.
Summary by CodeRabbit
Tests
Refactor