Compare commits

...

4 Commits

Author SHA1 Message Date
cs_betty c1147590dd fix(ci): annotate cache.py:38 redis return type (CAR-1330 dev lint fix)
CI / lint (pull_request) Successful in 6s
CI / typecheck (pull_request) Successful in 16s
CI / test (pull_request) Successful in 21s
CI / build-and-push (pull_request) Has been skipped
mypy no-any-return: annotate value: str | bytes | None so mypy doesn't
widen redis client return to Any. Pre-existing dev branch issue blocking
CAR-1356. Mirrors CAR-1340 uat fix (2b20946).
2026-06-09 17:34:21 +00:00
cs_betty 94d6173054 fix(ci): dedupe _public_limiter/_auth_limiter declarations in rate_limit.py (CAR-1330 dev lint fix)
CI / lint (pull_request) Successful in 7s
CI / typecheck (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
CI / build-and-push (pull_request) Has been cancelled
mypy no-redef: the second forward-decl block at line 124 was a duplicate
of the block at line 111. Pre-existing dev branch issue blocking CAR-1356.
Mirrors CAR-1340 uat fix (2b20946).
2026-06-09 17:34:11 +00:00
cs_betty f59668bf0a fix(ci): format tests/conftest.py (CAR-1330 dev lint fix)
CI / lint (pull_request) Successful in 6s
CI / build-and-push (pull_request) Has been cancelled
CI / typecheck (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
Remove extra blank line at line 120. Pre-existing dev branch issue
blocking CAR-1356 PR #50. Mirrors CAR-1340 uat fix (2b20946).
2026-06-09 17:34:02 +00:00
cs_betty 14b0e73cee fix(ci): use REGISTRY_TOKEN for build-and-push registry login (CAR-1330)
CI / lint (pull_request) Failing after 4s
CI / typecheck (pull_request) Failing after 17s
CI / test (pull_request) Successful in 23s
CI / build-and-push (pull_request) Has been skipped
Parity fix with uat. Prevents reintroduction on next dev->uat promotion.
The automatic github.token has no package/registry write scope; auth's
proven-green ci.yml uses secrets.REGISTRY_TOKEN instead.

cc @cpfarhood
2026-06-09 17:27:08 +00:00
4 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ jobs:
echo "CalVer tag: $VERSION"
- name: Log in to Gitea Container Registry
run: echo "${{ github.token }}" | docker login git.farh.net -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.farh.net -u ${{ github.actor }} --password-stdin
- name: Extract metadata
id: meta
+1 -1
View File
@@ -35,7 +35,7 @@ class CacheClient:
async def get(self, key: str) -> str | None:
if not self._client:
return None
value = await self._client.get(key)
value: str | bytes | None = await self._client.get(key)
if value is None:
return None
if isinstance(value, bytes):
@@ -121,10 +121,6 @@ if settings.rate_limit_redis_enabled:
logger.warning("Failed to connect to Redis for rate limiting, using in-memory: %s", e)
_use_redis = False
_public_limiter: RateLimitBackend
_auth_limiter: RateLimitBackend
_auth_strict_limiter: RateLimitBackend
if _use_redis and _redis_client:
_public_limiter = RedisSlidingWindow(
_redis_client, settings.rate_limit_requests, settings.rate_limit_window_seconds
-1
View File
@@ -117,7 +117,6 @@ def _register_event_listeners():
event.listen(cls, "before_insert", _set_timestamp_defaults)
TEST_JWT_SECRET = secrets.token_urlsafe(32)
TEST_SERVICE_KEY = secrets.token_urlsafe(32)
TEST_FERNET_KEY = "7reF42nmTwbdN21PBoubGp7h_FU8qSimstmlaMLoRK8="