fix: correct PostgreSQL environment variable name in E2E workflow

Why this change is needed:
E2E tests were failing with:
"ValueError: Storage implementation 'PGKVStorage' requires the following
environment variables: POSTGRES_DATABASE"

The workflow was setting POSTGRES_DB but LightRAG's check_storage_env_vars()
expects POSTGRES_DATABASE (matching ClientManager.get_config()).

How it solves it:
Changed environment variable name from POSTGRES_DB to POSTGRES_DATABASE
in the "Run PostgreSQL E2E tests" step.

Impact:
- PGKVStorage, PGGraphStorage, and PGDocStatusStorage can now properly
  initialize using ClientManager's configuration
- Fixes ValueError during LightRAG initialization

Testing:
Next E2E run should pass environment variable validation and proceed
to actual test execution.
This commit is contained in:
BukeLy
2025-11-20 00:35:03 +08:00
parent 38f41daa3d
commit bef7577fd9

View File

@@ -73,7 +73,7 @@ jobs:
POSTGRES_PORT: 5432
POSTGRES_USER: lightrag
POSTGRES_PASSWORD: lightrag_test_password
POSTGRES_DB: lightrag_test
POSTGRES_DATABASE: lightrag_test
run: |
pytest tests/test_e2e_multi_instance.py -k "postgres" -v --tb=short -s
timeout-minutes: 20