forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, сессии, Valkey и исследование восстановления
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
2026-10-30 — финальная проверка оформления и переноса собственных тестов в student-tests
|
||||
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
Exit code: 0
|
||||
|
||||
$ docker compose --env-file .env config --quiet
|
||||
Exit code: 0
|
||||
|
||||
$ make test BASE_URL=http://127.0.0.1:8080
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:8080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
Exit code: 0
|
||||
|
||||
$ make quality BASE_URL=http://127.0.0.1:8080
|
||||
python3 student-tests/quality.py --base-url "http://127.0.0.1:8080"
|
||||
{
|
||||
"registration_race": {
|
||||
"201": 1,
|
||||
"409": 11
|
||||
},
|
||||
"chat_rollback": "PASS",
|
||||
"history_index_plan": [
|
||||
"Limit (cost=0.42..2.85 rows=50 width=24) (actual time=0.057..0.062 rows=50 loops=1)",
|
||||
" Buffers: shared hit=2 read=2",
|
||||
" -> Index Only Scan using messages_history_keyset on messages (cost=0.42..3894.60 rows=79896 width=24) (actual time=0.056..0.059 rows=50 loops=1)",
|
||||
" Index Cond: (chat_id = 'f316dbbe-85f1-4587-454d-bfe607cf01de'::uuid)",
|
||||
" Heap Fetches: 0",
|
||||
" Buffers: shared hit=2 read=2",
|
||||
"Planning:",
|
||||
" Buffers: shared hit=110",
|
||||
"Planning Time: 0.263 ms",
|
||||
"Execution Time: 0.073 ms"
|
||||
]
|
||||
}
|
||||
Exit code: 0
|
||||
|
||||
$ make test-dependencies BASE_URL=http://127.0.0.1:8080
|
||||
python3 student-tests/dependencies.py --base-url "http://127.0.0.1:8080"
|
||||
PASS: Valkey outage fell back to PostgreSQL; PostgreSQL outage returned bounded 503 and recovered with the same session
|
||||
Exit code: 0
|
||||
|
||||
$ make track2
|
||||
PASS: row counts and selected messages match; full plans and measured values saved in evidence/track2-results.json
|
||||
Exit code: 0
|
||||
Reference in New Issue
Block a user