Promote CAR-1132 (SQLite UUID binding fix) dev -> uat #46
Reference in New Issue
Block a user
Delete Branch "dev"
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?
Promote CAR-1132 to UAT
Promotes the QA-approved SQLite UUID binding / type-handling fix ([CAR-1132]) from
devtouat.cc @cpfarhood
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 push