mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:49:51 +08:00
The v1.4.6 squash shipped three CI-red issues that the release pre-commit gate could not see (ruff hook runs with --exit-zero; the release process never runs pytest): - partners WS chat referenced an undefined `mgr` (ruff F821, and a real runtime NameError on the partner WebSocket chat path) — bind `mgr = get_partner_manager()` in the handler, matching the file's idiom. - GraphRAG initialize/search tests drove write_settings() through the real catalog, which has no active embedding model in CI — pin fake llm + embedding configs in `_stub_build`, the same way the LightRAG test does. - PageIndex `test_factory_dispatches_by_provider` constructed a real LlamaIndexPipeline whose __init__ resolves the embedding catalog — stub `_configure_settings`, matching the LlamaIndex pipeline tests. - New `test_chat_does_not_auto_start_stopped_partner` spawned a real PartnerRunner task and cancelled it across TestClient per-request event loops — drive the start/stop/chat sequence through one shared loop via a context-managed TestClient. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>