add code for level 4
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
Date: 2026-10-08
|
||||
Command: ./scripts/explain_history.sh
|
||||
|
||||
Dataset: 10,000 synthetic messages in one chat.
|
||||
Query plan:
|
||||
Limit (cost=0.29..4.20 rows=50 width=73) (actual time=0.006..0.010 rows=50 loops=1)
|
||||
Buffers: shared hit=3
|
||||
-> Index Scan using messages_chat_created_id_idx on messages (cost=0.29..783.39 rows=10000 width=73) (actual time=0.006..0.008 rows=50 loops=1)
|
||||
Index Cond: (chat_id = 'bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb'::uuid)
|
||||
Buffers: shared hit=3
|
||||
Planning:
|
||||
Buffers: shared hit=39
|
||||
Planning Time: 0.099 ms
|
||||
Execution Time: 0.016 ms
|
||||
@@ -0,0 +1,11 @@
|
||||
Date: 2026-10-08
|
||||
Commands:
|
||||
make test-grade4
|
||||
SESSION_TTL_SECONDS=2 docker compose --env-file .env.example up -d --force-recreate api
|
||||
python3 student-tests/session_expiry.py
|
||||
|
||||
Results:
|
||||
PASS: registration race, chat rollback and cache read-after-write
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: readiness rejects unavailable PostgreSQL
|
||||
PASS: expired Bearer session was rejected
|
||||
@@ -0,0 +1,6 @@
|
||||
Date: 2026-10-08
|
||||
Command:
|
||||
docker compose exec -T redis redis-cli --scan --pattern 'history:first:*'
|
||||
|
||||
Observed key after public smoke:
|
||||
history:first:b1805682-25ab-4339-b2f1-6c61ccffbec4:v2:l1
|
||||
Reference in New Issue
Block a user