You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): set credentialed REDIS_URL in scheduler config test fixtures #755
5 tests in `tests/scheduler_tests/test_config.py` fail because `SchedulerConfig()` now raises:
```
RuntimeError: REDIS_URL must include credentials
```
The test environment sets `REDIS_URL=redis://localhost:6379` (no credentials), but the scheduler config validation (added per `docs/migrations/REDIS_AUTH.md`) now requires credentials in the URL.
Context
Discovered via full test suite run on 2026-05-10. The Redis ACL enforcement was added to production config but the scheduler test fixtures were not updated to use a credentialed URL.
Acceptance Criteria
Update `tests/scheduler_tests/conftest.py` (or `test_config.py`) to set `REDIS_URL=redis://:testpassword@localhost:6379` before constructing `SchedulerConfig`
Alternatively, monkeypatch `SchedulerConfig._validate_redis_credentials` to skip the check in test context
The simplest fix is a `monkeypatch` or environment override in the test fixture:
```python
@pytest.fixture(autouse=True)
def redis_url_with_creds(monkeypatch):
monkeypatch.setenv("REDIS_URL", "redis://:testpassword@localhost:6379")
```
Or update the existing `REDIS_URL` env var in `tests/scheduler_tests/conftest.py` if one is already set there.
Activity
vybe commentedon May 10, 2026
/claim
github-actions commentedon May 10, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/755-<short-slug>Fixes #755fix(tests): set credentialed REDIS_URL in scheduler config test fixtu…
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).