Add internal ConnectionAwareAdapter base class with shared context-manager behavior, TTL-cached is_connected(), and _require_connected() helper
Refactor RedisAdapter and MinioAdapter to inherit from the base class, removing ~70 lines of duplicated connection/health-check logic
Update connection health unit tests to patch time.monotonic in the base module
Sync uv.lock with pyproject.toml version 0.4.0
Test plan
uv run pytest tests/unit/connection_health_test.py tests/integration/
Verify pre-commit / CI passes on the PR
## Summary
- Add internal `ConnectionAwareAdapter` base class with shared context-manager behavior, TTL-cached `is_connected()`, and `_require_connected()` helper
- Refactor `RedisAdapter` and `MinioAdapter` to inherit from the base class, removing ~70 lines of duplicated connection/health-check logic
- Update connection health unit tests to patch `time.monotonic` in the base module
- Sync `uv.lock` with `pyproject.toml` version 0.4.0
## Test plan
- [x] `uv run pytest tests/unit/connection_health_test.py tests/integration/`
- [ ] Verify pre-commit / CI passes on the PR
Move duplicated context-manager, health-check cache, and connection guards from Redis and Minio adapters into an internal base class.
Co-authored-by: Cursor <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
ConnectionAwareAdapterbase class with shared context-manager behavior, TTL-cachedis_connected(), and_require_connected()helperRedisAdapterandMinioAdapterto inherit from the base class, removing ~70 lines of duplicated connection/health-check logictime.monotonicin the base moduleuv.lockwithpyproject.tomlversion 0.4.0Test plan
uv run pytest tests/unit/connection_health_test.py tests/integration/Test Coverage Report: