Archive grade 4 verification and record SQLAlchemy failure evidence
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
date: 2026-11-05T19:25:09.683166+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
||||
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
||||
$ sh -ec '
|
||||
migration_counts="SELECT (SELECT version_num FROM alembic_version), (SELECT count(*) FROM users), (SELECT count(*) FROM sessions), (SELECT count(*) FROM chats), (SELECT count(*) FROM chat_members), (SELECT count(*) FROM messages), (SELECT count(*) FROM idempotency_keys)"
|
||||
migration_before=$(docker compose exec -T postgres psql -X -At -U messenger -d messenger -c "$migration_counts")
|
||||
echo "before: $migration_before"
|
||||
make migrate
|
||||
migration_after=$(docker compose exec -T postgres psql -X -At -U messenger -d messenger -c "$migration_counts")
|
||||
echo "after: $migration_after"
|
||||
test "$migration_before" = "$migration_after"
|
||||
echo "PASS: Alembic head and all table counts unchanged"
|
||||
docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"
|
||||
'
|
||||
before: 0002_idempotency_keys|93|92|46|92|30317|30317
|
||||
docker compose run --rm migrate
|
||||
Container mtusi2026lab3-grade4-20261105-postgres-1 Running
|
||||
after: 0002_idempotency_keys|93|92|46|92|30317|30317
|
||||
PASS: Alembic head and all table counts unchanged
|
||||
96493b9901ab api Up About a minute (healthy)
|
||||
dc1e7ee36921 api Up About a minute (healthy)
|
||||
4f83577b3411 lb Up 9 minutes (healthy)
|
||||
ad30cd539e85 migrate Exited (0) 9 minutes ago
|
||||
f225c6cd77bb postgres Up 7 minutes (healthy)
|
||||
5e3ed0a9a35a valkey Up 9 minutes (healthy)
|
||||
|
||||
exit: 0 elapsed_seconds: 2.273
|
||||
Reference in New Issue
Block a user