Promote uat → main: CI/test fixes + dispose_engine regression test (CAR-1012/CAR-1330/CAR-1135/CAR-1357) #56
Reference in New Issue
Block a user
Delete Branch "uat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Promotes uat to main. All changes are CI/test infrastructure fixes — no application runtime or feature changes.
Changes
date.today()so price history data stays within the 90-day trend window (prevents test_public_trend_returns_data from going stale)CI
completed success(run #3893, commit46e5d985)The conftest was setting rate_limit_redis_enabled=False but the rate_limit module's _redis_client and the RedisSlidingWindow limiters are constructed at module import. Flipping the setting inside the fixture doesn't undo that, so the Redis client was still being constructed and torn down at the end of the test event loop, raising RuntimeError('Event loop is closed'). This swaps the limiters directly on the module in the fixture setup and restores the originals in teardown. Local: 164 passed, 7 skipped. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>mypy complained: 'Unsupported operand types for - ("str" and "float")' on rate_limit.py:87. redis-py's zrange withscores=True returns the score as whatever the codec produces (often str), but we treat it as a numeric millisecond timestamp. Cast to float before subtracting the cutoff. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>76d0bc8before rebase pushCI green. All changes are CI/test infrastructure fixes. Safe to promote.