UTC: 2026-11-04T22:03:47.272430+00:00
Command: python3 student-tests/run_all.py
RUN: make check
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
RUN: make test
python3 tests/smoke.py --base-url "http://localhost:8080" 
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
RUN: /opt/codex/runtimes/codex-primary-runtime/dependencies/python/bin/python3 student-tests/security.py
PASS: malformed JSON, strict fields/types, whitespace, limits, cursor resource binding, invalid chat atomicity, concurrent username uniqueness
RUN: /opt/codex/runtimes/codex-primary-runtime/dependencies/python/bin/python3 student-tests/lab1_own_tests.py
PASS: own negative, access-control and multi-page tests
RUN: /opt/codex/runtimes/codex-primary-runtime/dependencies/python/bin/python3 student-tests/lab1_concurrency.py
PASS: 10 concurrent clients -> 100 successful messages -> 100 unique messages
RUN: /opt/codex/runtimes/codex-primary-runtime/dependencies/python/bin/python3 student-tests/level4.py
PASS: actual cached public profile, TTL <=60 seconds, at least 3 Redis cache hits
 Container mtusi2026lab2-cache-1  Stopping
 Container mtusi2026lab2-cache-1  Stopped
Cache outage diagnostic: profile_matches=True elapsed_seconds=0.007
PASS: Redis down: PostgreSQL fallback 0.007s, ready=200, invalid/absent/revoked sessions=401
 Container mtusi2026lab2-cache-1  Starting
 Container mtusi2026lab2-cache-1  Started
PASS: ephemeral Redis restart: cache is rebuilt; no session source of truth lost
PASS: injected failure AFTER chat INSERT: HTTP 503, transaction rolled back chat and members
PASS: same API remains usable after rollback
RUN: /opt/codex/runtimes/codex-primary-runtime/dependencies/python/bin/python3 student-tests/infrastructure.py
Before full restart:
api 9ae2e8de18d5a000eb0bef30af317c67e92bc0ee1db5455e646a29262aec9e1a 2026-11-04T22:01:53.486440398Z 0
db 9714c57601ade4f1458923203e668eee6ae1f45cf97382a1fc669f564da39317 2026-11-04T21:48:09.56075614Z 0
cache 438fe5a917be32774249ad31467c43ec1309c28a6fd7e9c50955384fcee3838b 2026-11-04T22:03:30.50288512Z 0
DB postmaster: 2026-11-04 21:48:09.71223+00
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080" 
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
After full restart:
api 9ae2e8de18d5a000eb0bef30af317c67e92bc0ee1db5455e646a29262aec9e1a 2026-11-04T22:03:37.04495913Z 0
db 9714c57601ade4f1458923203e668eee6ae1f45cf97382a1fc669f564da39317 2026-11-04T22:03:36.308873498Z 0
cache 438fe5a917be32774249ad31467c43ec1309c28a6fd7e9c50955384fcee3838b 2026-11-04T22:03:36.096145205Z 0
DB postmaster: 2026-11-04 22:03:36.469068+00
Already applied 001_initial.sql
Already applied 001_initial.sql
PASS: two migration reruns; users/chats/messages/sessions/migrations counts unchanged: 83|27|327|74|1
PASS: a real short-lived session authenticates before expiry and returns 401 after expiry
 Container mtusi2026lab2-db-1  Stopping
 Container mtusi2026lab2-db-1  Stopped
PASS: DB down: live=200, ready=503, authenticated request=503; no anonymous fallback
 Container mtusi2026lab2-db-1  Starting
 Container mtusi2026lab2-db-1  Started
PASS: DB recovered; same session works
PASS: all required functional checks completed

Exit code: 0
