Skip to content

fix(tests): scheduler conftest passes uncredentialed REDIS_URL after #589 #659

Closed

Description

@vybe

Summary

The #589 Redis auth hardening introduced a runtime check in `SchedulerConfig` that raises if `REDIS_URL` lacks credentials. The `test_config` fixture in `tests/scheduler_tests/conftest.py` passes `redis_url="redis://localhost:6379"` (no user/password), causing all 5 scheduler config unit tests to fail.

Context

Discovered during post-#589 test suite run on 2026-05-05. The main `tests/conftest.py` already handles this with `os.environ.setdefault("REDIS_URL", "redis://test:test@redis:6379")` (line 28), but the `test_config` fixture in `scheduler_tests/conftest.py` explicitly passes a bare URL, bypassing that patch.

Acceptance Criteria

  • Change `redis_url="redis://localhost:6379"` to `redis_url="redis://test:test@localhost:6379"` in the `test_config` fixture in `tests/scheduler_tests/conftest.py` (~line 300)
  • All 5 scheduler config tests pass: `test_default_values`, `test_env_override`, `test_agent_timeout`, `test_publish_events_default`, `test_publish_events_disabled`
  • No other scheduler tests regress

Technical Notes

File: `tests/scheduler_tests/conftest.py` ~line 300 — `test_config` fixture
Change: `redis_url="redis://localhost:6379"` → `redis_url="redis://test:test@localhost:6379"`

This is a one-line fix.

Activity

  1. added
    priority-p0
    type-bug
    on May 5, 2026
  2. vybe commented on May 5, 2026

    @vybe
    ContributorAuthor

    /claim

  3. github-actions commented on May 5, 2026

    @github-actions

    Claimed by @vybe. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/659-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #659
  4. added
    status-in-progress
    on May 5, 2026
  5. added a commit that references this issue on May 5, 2026
    0beb9e7
  6. added
    status-in-dev
    and removed
    status-in-progress
    on May 5, 2026
  7. added a commit that references this issue on Jun 1, 2026
    7b64bb4
  8. added
    complexity-low
    theme-reliability
    on Jun 3, 2026
  9. removed
    status-in-dev
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p0theme-reliabilitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions