LightRAG/tests
BukeLy 4742fc8efa test: Add comprehensive workspace isolation test suite for PR #2366
Why this change is needed:
PR #2366 introduces critical workspace isolation functionality to resolve
multi-instance concurrency issues, but lacks comprehensive automated tests
to validate the implementation. Without proper test coverage, we cannot
ensure the feature works correctly across all scenarios mentioned in the PR.

What this test suite covers:
1. Pipeline Status Isolation: Verifies different workspaces maintain
   independent pipeline status without interference
2. Lock Mechanism: Validates the new keyed lock system works correctly
   - Different workspaces can acquire locks in parallel
   - Same workspace locks serialize properly
   - No deadlocks occur
3. Backward Compatibility: Ensures legacy code without workspace parameters
   continues to work using default workspace
4. Multi-Workspace Concurrency: Confirms multiple LightRAG instances with
   different workspaces can run concurrently without data interference

Testing approach:
- All tests are automated and deterministic
- Uses timing assertions to verify parallel vs serial lock behavior
- Validates data isolation through direct namespace data inspection
- Comprehensive error handling and detailed test output

Test results:
All 9 test cases passed successfully, confirming the workspace isolation
feature is working correctly across all key scenarios.

Impact:
Provides confidence that PR #2366's workspace isolation feature is
production-ready and won't introduce regressions.
2025-11-17 12:54:33 +08:00
..
test_aquery_data_endpoint.py Fix conditional logic in streaming response parser of unit test 2025-09-27 21:43:46 +08:00
test_curl_aquery_data.sh Fix linting 2025-10-06 04:57:11 +08:00
test_graph_storage.py Refactor workspace handling to use default workspace and namespace locks 2025-11-17 12:54:33 +08:00
test_lightrag_ollama_chat.py clean comments and unused libs 2025-02-18 21:12:06 +01:00
test_postgres_retry_integration.py Refactor PostgreSQL retry config to use centralized configuration 2025-10-10 03:44:13 +08:00
test_workspace_isolation.py test: Add comprehensive workspace isolation test suite for PR #2366 2025-11-17 12:54:33 +08:00
test_write_json_optimization.py Fix empty dict handling after JSON sanitization 2025-11-17 12:54:32 +08:00