7 — Т2302 — ебедев — на 5

This commit is contained in:
2026-11-22 23:26:17 +03:00
parent 20afc2c790
commit d15f2a3631
179 changed files with 21709 additions and 54 deletions
+15
View File
@@ -0,0 +1,15 @@
# 2026-11-22T19:20:24Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ dc run --rm --no-deps -T -v /home/claude/work7/mtusi2026lab7/student-tests:/app/student-tests:ro --entrypoint python api student-tests/test_cache_race.py
Container mtusi-lab7-api-run-ae4315ec9236 Creating
Container mtusi-lab7-api-run-ae4315ec9236 Created
PASS read-through put makes entry readable
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS pttl=59999ms
PASS invalidate removes entry
PASS late put after logout is refused by tombstone
PASS tombstone outlives any cache entry pttl=74999ms
PASS entry never outlives session expiry pttl=1199ms
PASS expired session not served from cache
cache unavailable; falling back to PostgreSQL
PASS degraded mode: cache is not read until outbox drained
summary: all passed
exit=0