Archive grade 4 verification and record SQLAlchemy failure evidence
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
date: 2026-11-05T19:16:58.984609+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 'make restore; make test; make limits; make lb-check; docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"; docker inspect -f "{{.Name}} {{.Config.Hostname}} image={{.Image}}" $(docker compose ps -q api)'
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Running
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Waiting
|
||||
Container mtusi2026lab3-grade4-20261105-api-2 Healthy
|
||||
Container mtusi2026lab3-grade4-20261105-api-1 Healthy
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
python3 scripts/limits.py --out evidence/limits.txt
|
||||
date: 2026-11-05T19:17:00Z commit: 252e3e3
|
||||
$ docker compose --profile bench config --format json (declared)
|
||||
service cpus/mem ports secrets volumes networks ro
|
||||
-------- ---------- ------------------------------- ------------------------------------ ---------- ---------------------- -----
|
||||
api 1/512MiB - cache_url,cursor_secret,database_url - backend(internal) true
|
||||
k6 2/512MiB - - - edge false
|
||||
lb 1/128MiB 127.0.0.1:18083,127.0.0.1:23083 - - backend(internal),edge true
|
||||
migrate 0.5/256MiB - database_url - backend(internal) false
|
||||
postgres 2/1024MiB - postgres_password pgdata backend(internal) false
|
||||
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false
|
||||
|
||||
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
|
||||
service hostname cpus memory published
|
||||
-------- ------------ ---- ------- ---------------------------------------------------
|
||||
api 5bbf259ff136 1 512MiB
|
||||
api 7cfd91ddf780 1 512MiB
|
||||
lb 4f83577b3411 1 128MiB 127.0.0.1:18083->8080/tcp,127.0.0.1:23083->8404/tcp
|
||||
postgres f225c6cd77bb 2 1024MiB
|
||||
valkey 5e3ed0a9a35a 0.5 128MiB
|
||||
|
||||
PASS: limits, ports, secrets, volumes and networks match the policy
|
||||
python3 scripts/probe.py check --rounds 20 --out evidence/lb-check.json
|
||||
{
|
||||
"instances_one_token": {
|
||||
"7cfd91ddf780": 20,
|
||||
"5bbf259ff136": 20
|
||||
},
|
||||
"same_key": {
|
||||
"rounds": 20,
|
||||
"parallel": 8,
|
||||
"statuses": {
|
||||
"201": 160
|
||||
},
|
||||
"instances": {
|
||||
"5bbf259ff136": 80,
|
||||
"7cfd91ddf780": 80
|
||||
},
|
||||
"identical_bodies_rounds": 20,
|
||||
"single_copy_rounds": 20,
|
||||
"conflict_rounds": 20
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
7cfd91ddf780 api Up 6 seconds (healthy)
|
||||
5bbf259ff136 api Up About a minute (healthy)
|
||||
4f83577b3411 lb Up About a minute (healthy)
|
||||
ad30cd539e85 migrate Exited (0) About a minute ago
|
||||
f225c6cd77bb postgres Up About a minute (healthy)
|
||||
5e3ed0a9a35a valkey Up About a minute (healthy)
|
||||
/mtusi2026lab3-grade4-20261105-api-1 7cfd91ddf780 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706
|
||||
/mtusi2026lab3-grade4-20261105-api-2 5bbf259ff136 image=sha256:fdc0128530c7f092746491b339125eea9fe079b86dcc5c8c3aa89e224fca1706
|
||||
|
||||
exit: 0 elapsed_seconds: 2.654
|
||||
Reference in New Issue
Block a user