Обновить доказательства на коде после ревью, сверить с ними отчёт и выделить исправления базы в шаблоне PR
Application / unit (pull_request) Canceled after 0s
Application / e2e (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-21 15:15:37 +03:00
parent 7aa86d36ba
commit bb5981f522
10 changed files with 119 additions and 107 deletions
+8 -8
View File
@@ -1,5 +1,5 @@
# Bootstrap from empty volumes: make destroy && make secrets up
# date: 2026-10-06T12:59:03Z, commit: 949622e (branch solution/bpi2301-bakulin)
# date: 2026-10-21T12:09:10Z, commit: 7aa86d3 (branch solution/bpi2301-bakulin)
# host: Windows 11, Docker Desktop 28.5.1 (4 CPU, 4111327232 bytes RAM), Go go1.27.1, Python 3.13.1
$ make up
@@ -9,10 +9,10 @@ Volume mtusi2026lab2_valkeydata Created
Container mtusi2026lab2-valkey-1 Created
Container mtusi2026lab2-postgres-1 Created
Container mtusi-messenger-lab2 Created
Container mtusi2026lab2-postgres-1 Started
Container mtusi2026lab2-valkey-1 Started
Container mtusi2026lab2-postgres-1 Healthy
Container mtusi2026lab2-postgres-1 Started
Container mtusi2026lab2-valkey-1 Healthy
Container mtusi2026lab2-postgres-1 Healthy
Container mtusi-messenger-lab2 Started
Container mtusi2026lab2-postgres-1 Healthy
Container mtusi2026lab2-valkey-1 Healthy
@@ -21,12 +21,12 @@ Container mtusi-messenger-lab2 Healthy
$ docker compose ps
SERVICE IMAGE STATUS PORTS
api mtusi-messenger:lab2 Up 6 seconds (healthy) 127.0.0.1:8080->8080/tcp
postgres postgres:18.6-alpine3.24@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 Up 11 seconds (healthy) 5432/tcp
valkey valkey/valkey:9.1.2-alpine3.24@sha256:48332870af354a799964c0012ae1194a0bf2bf894eb508f945810596dc2d8d11 Up 11 seconds (healthy) 6379/tcp
postgres postgres:18.6-alpine3.24@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 Up 12 seconds (healthy) 5432/tcp
valkey valkey/valkey:9.1.2-alpine3.24@sha256:48332870af354a799964c0012ae1194a0bf2bf894eb508f945810596dc2d8d11 Up 12 seconds (healthy) 6379/tcp
$ docker compose logs api | grep -E "schema ready|starting"
{"time":"2026-10-06T13:00:02.672577874Z","level":"INFO","msg":"schema ready","applied_migrations":[1]}
{"time":"2026-10-06T13:00:02.689453662Z","level":"INFO","msg":"starting","env":"lab","addr":"0.0.0.0:8080","shutdown_timeout":"8s","session_ttl":"1h0m0s"}
{"time":"2026-10-21T12:10:07.644733332Z","level":"INFO","msg":"schema ready","applied_migrations":[1]}
{"time":"2026-10-21T12:10:07.674799548Z","level":"INFO","msg":"starting","env":"lab","addr":"0.0.0.0:8080","shutdown_timeout":"8s","session_ttl":"1h0m0s"}
$ psql \dt and \di (schema created by the migration)
List of tables
@@ -60,4 +60,4 @@ maxmemory 268435456
maxmemory-policy noeviction
$ second start: migrations are a no-op
{"time":"2026-10-06T13:00:12.891361865Z","level":"INFO","msg":"schema ready","applied_migrations":[]}
{"time":"2026-10-21T12:10:18.658799511Z","level":"INFO","msg":"schema ready","applied_migrations":[]}