Why this change is needed: Codex review identified two P1 bugs where vector dimension mismatches during migration cause startup failures. Current tests only validate same-dimension migrations (e.g., 1536d->1536d), missing the upgrade scenario (e.g., 1536d->3072d). These new tests expose the gaps in existing migration logic. How it solves it: Added two E2E tests to test_e2e_multi_instance.py: - test_dimension_mismatch_postgres: 1536d -> 3072d upgrade scenario - test_dimension_mismatch_qdrant: 768d -> 1024d upgrade scenario Both tests create legacy collections/tables with old dimension vectors, then attempt to initialize with new dimension models. Tests verify either graceful handling (create new storage for new model) or clear error messages. Impact: - Exposes dimension mismatch bugs in migration logic - Tests will fail until migration logic is fixed - Provides safety net for future dimension changes - Documents expected behavior for model upgrades Testing: These tests are expected to FAIL in CI, demonstrating the P1 bugs exist. Once migration logic is fixed to handle dimension mismatches, tests will pass. |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| README_WORKSPACE_ISOLATION_TESTS.md | ||
| test_aquery_data_endpoint.py | ||
| test_base_storage_integrity.py | ||
| test_curl_aquery_data.sh | ||
| test_e2e_multi_instance.py | ||
| test_embedding_func.py | ||
| test_graph_storage.py | ||
| test_lightrag_ollama_chat.py | ||
| test_postgres_migration.py | ||
| test_postgres_retry_integration.py | ||
| test_qdrant_migration.py | ||
| test_workspace_isolation.py | ||
| test_write_json_optimization.py | ||