ЛР 2: исследовать и ограничить cache stampede — на 5
Student application / application (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-25 15:42:14 +03:00
parent b5b35682c2
commit 799f56c513
116 changed files with 76270 additions and 91 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
out=evidence/grade5/checks
mkdir -p "$out"
make check validate > "$out/checks.txt" 2>&1
make test BASE_URL=http://api:8080 > "$out/smoke.txt" 2>&1
python student-tests/grade4.py core > "$out/core.txt" 2>&1
python student-tests/grade4.py expiry --base-url http://api-expiry:8080 > "$out/expiry.txt" 2>&1
python student-tests/grade4.py migrations > "$out/migrations.txt" 2>&1
python student-tests/grade4.py explain > "$out/explain.txt" 2>&1
python student-tests/grade4.py failures > "$out/failures.txt" 2>&1
docker compose ps -q api postgres valkey | xargs docker inspect --format '{{.Name}} {{.State.StartedAt}} {{.Image}}' > "$out/persistence.txt"
chmod +x scripts/restart.sh
make test-persistence BASE_URL=http://api:8080 ACTION_SCRIPT=scripts/restart.sh >> "$out/persistence.txt" 2>&1
docker compose ps -q api postgres valkey | xargs docker inspect --format '{{.Name}} {{.State.StartedAt}} {{.Image}}' >> "$out/persistence.txt"
python student-tests/grade4.py persistence_meta > "$out/session-persistence.txt" 2>&1
printf 'PASS: all public and grade4 tests; isolated Compose project only\n'