Evidence comes from the stand started from an empty state and from a fresh clone: the public smoke, the contract checks, lint and 325 own tests, the storage layout with an out-of-API comparison of a stored object against its metadata, failover of each replica under writes, the upload failover scenario, persistence with StartedAt of every service including S3, the S3 outage scenario and 22 S3 privacy and bootstrap checks. The storage evidence script now covers the attachment tables and the S3 secrets. REPORT.md follows the lab 4 template: launch from a clean clone, architecture with the source of truth for each fact, the write order between PostgreSQL and S3 and what each failure leaves behind, where each upload limit applies, roles and services, the .env.example mapping, grade 3 rows and the grade 3 failure table. The design notes the botocore Expect header that hung uploads behind the port proxy. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
date: 2026-10-28T17:50:32Z commit: 24f9d61
|
|
$ git clone … && git checkout solution/bpi2303-kostylev
|
|
24f9d61 Add the attachment failure scenarios and S3 checks
|
|
$ make secrets
|
|
sh scripts/secrets.sh
|
|
создан secrets/postgres_password
|
|
создан secrets/database_url
|
|
создан secrets/cursor_secret
|
|
создан secrets/valkey_password
|
|
создан secrets/valkey.conf
|
|
создан secrets/cache_url
|
|
создан secrets/s3_root_user
|
|
создан secrets/s3_root_password
|
|
создан secrets/s3_access_key_id
|
|
создан secrets/s3_secret_access_key
|
|
создан .env из .env.example
|
|
$ sed LB_HTTP_PORT=18084 LB_STATS_PORT=24084 .env # 8080 на этой машине занят стендами других лаб
|
|
$ docker compose --env-file .env config --quiet && echo valid
|
|
valid
|
|
$ make up # docker compose up -d --build --wait
|
|
Container mtusi2026lab4-api-1 Healthy
|
|
Container mtusi2026lab4-api-2 Healthy
|
|
Container mtusi2026lab4-lb-1 Healthy
|
|
Container mtusi2026lab4-migrate-1 Exited
|
|
Container mtusi2026lab4-postgres-1 Healthy
|
|
Container mtusi2026lab4-s3-1 Healthy
|
|
Container mtusi2026lab4-s3-init-1 Exited
|
|
Container mtusi2026lab4-valkey-1 Healthy
|
|
up --wait: 18 s
|
|
$ docker compose ps -a --format '{{.Service}} {{.Status}}'
|
|
api Up 3 seconds (healthy)
|
|
api Up 3 seconds (healthy)
|
|
lb Up 10 seconds (healthy)
|
|
migrate Exited (0) 4 seconds ago
|
|
postgres Up 10 seconds (healthy)
|
|
s3 Up 10 seconds (healthy)
|
|
s3-init Exited (0) 4 seconds ago
|
|
valkey Up 10 seconds (healthy)
|
|
$ make test BASE_URL=http://localhost:18084
|
|
python3 tests/smoke.py --base-url "http://localhost:18084"
|
|
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
|
$ docker compose down -v # стенд из clone удалён вместе с учебными данными
|
|
Network mtusi2026lab4_backend Removed
|