Why this change is needed: E2E tests were failing with TypeError because they used non-existent parameters kv_storage_cls_kwargs, graph_storage_cls_kwargs, and doc_status_storage_cls_kwargs. These parameters do not exist in LightRAG's __init__ method. How it solves it: Removed the three non-existent parameters from all LightRAG initializations in test_e2e_multi_instance.py: - test_legacy_migration_postgres - test_multi_instance_postgres (both instances A and B) PostgreSQL storage classes (PGKVStorage, PGGraphStorage, PGDocStatusStorage) use ClientManager which reads configuration from environment variables (POSTGRES_HOST, POSTGRES_PORT, etc.) that are already set in the E2E workflow, so no additional kwargs are needed. Impact: - Fixes TypeError on LightRAG initialization - E2E tests can now properly instantiate with PostgreSQL storages - Configuration still works via environment variables Testing: Next E2E run should successfully initialize LightRAG instances and proceed to actual migration/multi-instance testing. |
||
|---|---|---|
| .. | ||
| 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 | ||