diff --git a/evidence/criteria/README.md b/evidence/criteria/README.md new file mode 100644 index 0000000..9fa7850 --- /dev/null +++ b/evidence/criteria/README.md @@ -0,0 +1,18 @@ +# Доказательства критериев + +Запуск: `20261105T203108.038394Z`. Серия: [main-20261105T183859Z-d93b7abf](../idempotency/main-20261105T183859Z-d93b7abf/summary.json). + +| Критерий | Результат | +| --- | --- | +| [Публичный smoke](public-smoke.md) | PASS | +| [Сохранение возможностей lab4](baseline.md) | PASS | +| [Устойчивый приём до 202](durable-upload.md) | PASS | +| [Отдельные RabbitMQ и worker, durable delivery и ack](broker-worker.md) | PASS | +| [Состояния, оригинал и thumbnail](states-variants.md) | PASS | +| [Ограниченный retry и повтор job](retry-idempotency.md) | PASS | +| [Worker off, restart API/broker, восстановление](restart-recovery.md) | PASS | +| [Crop, WebP, валидация и лимиты worker](variants-limits.md) | PASS | +| [Восстановление между COMMIT и publish](outbox.md) | PASS | +| [Backoff/jitter, failed registry и безопасный replay](retry-replay.md) | PASS | +| [Crash после side effect, lease, prefetch и staging](lease-cleanup.md) | PASS | +| [Трек 2: versioned pipeline и fault injection](versioned-pipeline.md) | PASS | diff --git a/evidence/criteria/baseline.md b/evidence/criteria/baseline.md new file mode 100644 index 0000000..43b3f60 --- /dev/null +++ b/evidence/criteria/baseline.md @@ -0,0 +1,1421 @@ +# Сохранение возможностей lab4 + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/tests](../../src/backend/tests). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 190.535 с. + +[Полный вывод](runs/20261105T203108.038394Z/backend.txt) + +````text + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s +```` + +## persistence + +Команда: `make test-persistence BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/restart.sh` + +Exit code: 0; время: 43.866 с. + +[Полный вывод](runs/20261105T203108.038394Z/persistence.txt) + +````text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## failover + +Команда: `make test-failover BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/stop-one.sh` + +Exit code: 0; время: 20.485 с. + +[Полный вывод](runs/20261105T203108.038394Z/failover.txt) + +````text +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8080" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 2, "first_recovery_seconds": 1.888} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/broker-worker.md b/evidence/criteria/broker-worker.md new file mode 100644 index 0000000..c05dd02 --- /dev/null +++ b/evidence/criteria/broker-worker.md @@ -0,0 +1,1206 @@ +# Отдельные RabbitMQ и worker, durable delivery и ack + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/broker.go](../../src/backend/repositories/broker.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.861 с. + +[Полный вывод](runs/20261105T203108.038394Z/inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:31:46.406562509Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:31:46.80385109Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:19:43.780011117Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/durable-upload.md b/evidence/criteria/durable-upload.md new file mode 100644 index 0000000..3fe45ac --- /dev/null +++ b/evidence/criteria/durable-upload.md @@ -0,0 +1,829 @@ +# Устойчивый приём до 202 + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/jobs.go](../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/lease-cleanup.md b/evidence/criteria/lease-cleanup.md new file mode 100644 index 0000000..6df9fbc --- /dev/null +++ b/evidence/criteria/lease-cleanup.md @@ -0,0 +1,946 @@ +# Crash после side effect, lease, prefetch и staging + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/workers/pipeline.go](../../src/backend/workers/pipeline.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.012 с. + +[Полный вывод](runs/20261105T203108.038394Z/experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/outbox.md b/evidence/criteria/outbox.md new file mode 100644 index 0000000..ac14071 --- /dev/null +++ b/evidence/criteria/outbox.md @@ -0,0 +1,946 @@ +# Восстановление между COMMIT и publish + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/jobs.go](../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.012 с. + +[Полный вывод](runs/20261105T203108.038394Z/experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/public-smoke.md b/evidence/criteria/public-smoke.md new file mode 100644 index 0000000..057dbd5 --- /dev/null +++ b/evidence/criteria/public-smoke.md @@ -0,0 +1,843 @@ +# Публичный smoke + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [tests/smoke.py](../../tests/smoke.py). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## structure + +Команда: `make check` + +Exit code: 0; время: 12.414 с. + +[Полный вывод](runs/20261105T203108.038394Z/structure.txt) + +````text +python3 scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. +```` + +## smoke + +Команда: `make test BASE_URL=http://127.0.0.1:8080` + +Exit code: 0; время: 4.965 с. + +[Полный вывод](runs/20261105T203108.038394Z/smoke.txt) + +````text +python3 tests/smoke.py --base-url "http://127.0.0.1:8080" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/restart-recovery.md b/evidence/criteria/restart-recovery.md new file mode 100644 index 0000000..f767621 --- /dev/null +++ b/evidence/criteria/restart-recovery.md @@ -0,0 +1,858 @@ +# Worker off, restart API/broker, восстановление + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [scripts/restart.sh](../../scripts/restart.sh). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## persistence + +Команда: `make test-persistence BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/restart.sh` + +Exit code: 0; время: 43.866 с. + +[Полный вывод](runs/20261105T203108.038394Z/persistence.txt) + +````text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## restart-audit + +Команда: `compare before-restart / after-restart: StartedAt and mounts` + +Exit code: 0; время: 0 с. + +[Полный вывод](runs/20261105T203108.038394Z/restart-audit.txt) + +````text +{ + "processes_restarted_with_same_mounts": true, + "containers": 9 +} +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/retry-idempotency.md b/evidence/criteria/retry-idempotency.md new file mode 100644 index 0000000..ebb73b9 --- /dev/null +++ b/evidence/criteria/retry-idempotency.md @@ -0,0 +1,925 @@ +# Ограниченный retry и повтор job + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/jobs.go](../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/retry-replay.md b/evidence/criteria/retry-replay.md new file mode 100644 index 0000000..d3f9c95 --- /dev/null +++ b/evidence/criteria/retry-replay.md @@ -0,0 +1,913 @@ +# Backoff/jitter, failed registry и безопасный replay + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/job_admin.go](../../src/backend/repositories/job_admin.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/after-restart.json b/evidence/criteria/runs/20261105T195905.012798Z/after-restart.json new file mode 100644 index 0000000..6d44465 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/after-restart.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.802 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/after-restart.txt b/evidence/criteria/runs/20261105T195905.012798Z/after-restart.txt new file mode 100644 index 0000000..a17f64a --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/after-restart.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.828846094Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:30.37430064Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:30.69530112Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T195905.012798Z/backend.json b/evidence/criteria/runs/20261105T195905.012798Z/backend.json new file mode 100644 index 0000000..74ed7a6 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/backend.json @@ -0,0 +1,5 @@ +{ + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests", + "exit_code": 0, + "seconds": 191.102 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/backend.txt b/evidence/criteria/runs/20261105T195905.012798Z/backend.txt new file mode 100644 index 0000000..7162353 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/backend.txt @@ -0,0 +1,564 @@ + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.0s + +#5 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.0s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 2/4] WORKDIR /source +#13 CACHED + +#14 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#14 CACHED + +#15 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#15 CACHED + +#16 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 ... + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.5s done +#7 DONE 0.5s + +#18 [s3] exporting to image +#18 exporting attestation manifest sha256:0a6e095cfb1f41fe34425f486938dc7e9d29d0f47f1488e275056d92e17cba13 0.0s done +#18 exporting manifest list sha256:628d1e9070c11b9343d482bb666bc0c1afe9c3d336a616b0ce7a0b6b5bf0ad1c 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.1s + +#19 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#19 CACHED + +#20 [s3-bootstrap stage-1 3/4] WORKDIR /app +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 6/7] COPY backend ./backend +#22 CACHED + +#23 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#23 CACHED + +#24 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#24 CACHED + +#25 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#25 CACHED + +#26 [s3-bootstrap builder 5/7] RUN go mod download +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3-bootstrap] exporting to image +#28 exporting layers done +#28 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#28 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#28 exporting attestation manifest sha256:49d0b35b39f4d5547f4f766ac6a9b646272bab3e1b292f5c9f6227716aa32c20 0.1s done +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 +#28 ... + +#29 [s3] resolving provenance for metadata file +#29 DONE 0.0s + +#28 [s3-bootstrap] exporting to image +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 0.0s done +#28 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#28 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#28 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.0s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.6s + +#7 [builder 5/7] RUN go mod download +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 6/7] COPY backend ./backend +#9 CACHED + +#10 [builder 3/7] WORKDIR /src +#10 CACHED + +#11 [builder 4/7] COPY go.mod go.sum ./ +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers +#13 exporting layers 12.0s done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 0.0s done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 0.0s done +#13 exporting attestation manifest sha256:12713be72f7f8b1de12a067b99c15ef3399254538b7009280cde213a109c6ea7 0.0s done +#13 exporting manifest list sha256:84e5022c57a0e0cceb96e81140db98b991b0852610216d4fcc60697a84cf86e4 done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 3.4s done +#13 DONE 13.0s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-67b701f1b076 Creating + Container highload-lab5-backend-tests-run-67b701f1b076 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.45s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.41s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.65s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.15s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.38s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.00s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.71s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.43s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.01s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.68s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (0.96s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.77s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.14s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (0.97s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (0.80s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (0.95s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.45s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.85s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.26s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.85s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (0.86s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.85s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.82s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (1.05s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.40s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.067198024s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.80s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.54s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:03:12 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:13 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:14 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.60s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.022, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.018, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.107, + "Triggers": [ + ], + "Execution Time": 0.096 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.027, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.021, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, 'c9e64ca7-2889-43c5-8347-28232b63641f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.063, + "Triggers": [ + ], + "Execution Time": 0.042 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.88s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.42s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.82s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.09s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.75s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.73s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.72s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.08s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.68s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.73s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.72s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.50s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.35s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.67s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (0.87s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.72s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.79s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.79s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.67s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.75s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.05s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.75s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.69s) +PASS +ok [REDACTED]/src/backend/tests 61.930s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.99s) + --- PASS: TestThumbnailContract/320x200 (0.47s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.10s) + --- PASS: TestThumbnailContract/1000x1 (3.80s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.22s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.98s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.18s) +PASS +ok [REDACTED]/src/backend/workers 12.511s diff --git a/evidence/criteria/runs/20261105T195905.012798Z/baseline.md b/evidence/criteria/runs/20261105T195905.012798Z/baseline.md new file mode 100644 index 0000000..f8e2b53 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/baseline.md @@ -0,0 +1,1443 @@ +# Сохранение возможностей lab4 + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/tests](../../../../src/backend/tests). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 191.102 с. + +[Полный вывод](backend.txt) + +````text + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.0s + +#5 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.0s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 2/4] WORKDIR /source +#13 CACHED + +#14 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#14 CACHED + +#15 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#15 CACHED + +#16 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 ... + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.5s done +#7 DONE 0.5s + +#18 [s3] exporting to image +#18 exporting attestation manifest sha256:0a6e095cfb1f41fe34425f486938dc7e9d29d0f47f1488e275056d92e17cba13 0.0s done +#18 exporting manifest list sha256:628d1e9070c11b9343d482bb666bc0c1afe9c3d336a616b0ce7a0b6b5bf0ad1c 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.1s + +#19 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#19 CACHED + +#20 [s3-bootstrap stage-1 3/4] WORKDIR /app +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 6/7] COPY backend ./backend +#22 CACHED + +#23 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#23 CACHED + +#24 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#24 CACHED + +#25 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#25 CACHED + +#26 [s3-bootstrap builder 5/7] RUN go mod download +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3-bootstrap] exporting to image +#28 exporting layers done +#28 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#28 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#28 exporting attestation manifest sha256:49d0b35b39f4d5547f4f766ac6a9b646272bab3e1b292f5c9f6227716aa32c20 0.1s done +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 +#28 ... + +#29 [s3] resolving provenance for metadata file +#29 DONE 0.0s + +#28 [s3-bootstrap] exporting to image +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 0.0s done +#28 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#28 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#28 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.0s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.6s + +#7 [builder 5/7] RUN go mod download +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 6/7] COPY backend ./backend +#9 CACHED + +#10 [builder 3/7] WORKDIR /src +#10 CACHED + +#11 [builder 4/7] COPY go.mod go.sum ./ +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers +#13 exporting layers 12.0s done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 0.0s done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 0.0s done +#13 exporting attestation manifest sha256:12713be72f7f8b1de12a067b99c15ef3399254538b7009280cde213a109c6ea7 0.0s done +#13 exporting manifest list sha256:84e5022c57a0e0cceb96e81140db98b991b0852610216d4fcc60697a84cf86e4 done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 3.4s done +#13 DONE 13.0s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-67b701f1b076 Creating + Container highload-lab5-backend-tests-run-67b701f1b076 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.45s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.41s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.65s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.15s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.38s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.00s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.71s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.43s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.01s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.68s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (0.96s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.77s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.14s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (0.97s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (0.80s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (0.95s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.45s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.85s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.26s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.85s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (0.86s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.85s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.82s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (1.05s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.40s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.067198024s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.80s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.54s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:03:12 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:13 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:14 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.60s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.022, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.018, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.107, + "Triggers": [ + ], + "Execution Time": 0.096 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.027, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.021, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, 'c9e64ca7-2889-43c5-8347-28232b63641f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.063, + "Triggers": [ + ], + "Execution Time": 0.042 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.88s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.42s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.82s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.09s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.75s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.73s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.72s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.08s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.68s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.73s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.72s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.50s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.35s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.67s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (0.87s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.72s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.79s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.79s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.67s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.75s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.05s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.75s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.69s) +PASS +ok [REDACTED]/src/backend/tests 61.930s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.99s) + --- PASS: TestThumbnailContract/320x200 (0.47s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.10s) + --- PASS: TestThumbnailContract/1000x1 (3.80s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.22s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.98s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.18s) +PASS +ok [REDACTED]/src/backend/workers 12.511s +```` + +## persistence + +Команда: `make test-persistence BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/restart.sh` + +Exit code: 0; время: 44.454 с. + +[Полный вывод](persistence.txt) + +````text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8085" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## failover + +Команда: `make test-failover BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/stop-one.sh` + +Exit code: 0; время: 20.342 с. + +[Полный вывод](failover.txt) + +````text +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8085" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 2, "first_recovery_seconds": 1.78} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/before-restart.json b/evidence/criteria/runs/20261105T195905.012798Z/before-restart.json new file mode 100644 index 0000000..5dde592 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/before-restart.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.829 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/before-restart.txt b/evidence/criteria/runs/20261105T195905.012798Z/before-restart.txt new file mode 100644 index 0000000..d143843 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/before-restart.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:03:48.662880215Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:03:48.551085181Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:03:50.595282916Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T19:59:45.935139631Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:07:50.428222681Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:07:49.476326219Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T19:59:45.465771689Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T19:59:44.688698971Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:07:49.119129759Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T19:59:48.966065851Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:07:50.945781941Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T195905.012798Z/broker-worker.md b/evidence/criteria/runs/20261105T195905.012798Z/broker-worker.md new file mode 100644 index 0000000..d9c9bd2 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/broker-worker.md @@ -0,0 +1,1228 @@ +# Отдельные RabbitMQ и worker, durable delivery и ack + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/repositories/broker.go](../../../../src/backend/repositories/broker.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.872 с. + +[Полный вывод](inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T19:59:49.342511385Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T19:59:48.541227472Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T19:59:46.340274158Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T19:59:45.935139631Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "d4431a3fe2f1fadcbae8cae199048cd4a423fbe1303ead8773659962e1fcc089", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:00:29.4081585Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T19:59:47.533035165Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T19:59:45.465771689Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T19:59:44.688698971Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T19:59:46.624899309Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T19:59:48.966065851Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "252b31ee52e0e0dae5a6f5ad1831d8b7cb9c68ceb46c443c83c5b7f8d69e1489", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:00:29.073313763Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 130.92 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/durable-upload.md b/evidence/criteria/runs/20261105T195905.012798Z/durable-upload.md new file mode 100644 index 0000000..e4ec99d --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/durable-upload.md @@ -0,0 +1,851 @@ +# Устойчивый приём до 202 + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/repositories/jobs.go](../../../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 130.92 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/experiment.json b/evidence/criteria/runs/20261105T195905.012798Z/experiment.json new file mode 100644 index 0000000..7e3c78a --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/experiment.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf", + "exit_code": 0, + "seconds": 15.26 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/experiment.txt b/evidence/criteria/runs/20261105T195905.012798Z/experiment.txt new file mode 100644 index 0000000..be6d74c --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/experiment.txt @@ -0,0 +1,22 @@ +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | diff --git a/evidence/criteria/runs/20261105T195905.012798Z/failover.json b/evidence/criteria/runs/20261105T195905.012798Z/failover.json new file mode 100644 index 0000000..de2ae77 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/failover.json @@ -0,0 +1,5 @@ +{ + "command": "make test-failover BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/stop-one.sh", + "exit_code": 0, + "seconds": 20.342 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/failover.txt b/evidence/criteria/runs/20261105T195905.012798Z/failover.txt new file mode 100644 index 0000000..971e2d8 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/failover.txt @@ -0,0 +1,4 @@ +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8085" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 2, "first_recovery_seconds": 1.78} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/criteria/runs/20261105T195905.012798Z/final-inventory.json b/evidence/criteria/runs/20261105T195905.012798Z/final-inventory.json new file mode 100644 index 0000000..427cd2d --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/final-inventory.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.791 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/final-inventory.txt b/evidence/criteria/runs/20261105T195905.012798Z/final-inventory.txt new file mode 100644 index 0000000..afa4d06 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/final-inventory.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T195905.012798Z/grade3.json b/evidence/criteria/runs/20261105T195905.012798Z/grade3.json new file mode 100644 index 0000000..3156e0c --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/grade3.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 scripts/check_async_grade3.py", + "exit_code": 0, + "seconds": 130.92 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/grade3.txt b/evidence/criteria/runs/20261105T195905.012798Z/grade3.txt new file mode 100644 index 0000000..0b954b4 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/grade3.txt @@ -0,0 +1 @@ +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. diff --git a/evidence/criteria/runs/20261105T195905.012798Z/grade4.json b/evidence/criteria/runs/20261105T195905.012798Z/grade4.json new file mode 100644 index 0000000..710dc76 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/grade4.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 scripts/check_async_grade4.py", + "exit_code": 0, + "seconds": 148.197 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/grade4.txt b/evidence/criteria/runs/20261105T195905.012798Z/grade4.txt new file mode 100644 index 0000000..cdec925 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/grade4.txt @@ -0,0 +1,85 @@ +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-worker-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy diff --git a/evidence/criteria/runs/20261105T195905.012798Z/inventory.json b/evidence/criteria/runs/20261105T195905.012798Z/inventory.json new file mode 100644 index 0000000..2fa0b48 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/inventory.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.872 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/inventory.txt b/evidence/criteria/runs/20261105T195905.012798Z/inventory.txt new file mode 100644 index 0000000..ed5a32d --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/inventory.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T19:59:49.342511385Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T19:59:48.541227472Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T19:59:46.340274158Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T19:59:45.935139631Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "d4431a3fe2f1fadcbae8cae199048cd4a423fbe1303ead8773659962e1fcc089", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:00:29.4081585Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T19:59:47.533035165Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T19:59:45.465771689Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T19:59:44.688698971Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T19:59:46.624899309Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T19:59:48.966065851Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "252b31ee52e0e0dae5a6f5ad1831d8b7cb9c68ceb46c443c83c5b7f8d69e1489", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:00:29.073313763Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T195905.012798Z/lease-cleanup.md b/evidence/criteria/runs/20261105T195905.012798Z/lease-cleanup.md new file mode 100644 index 0000000..351c90e --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/lease-cleanup.md @@ -0,0 +1,968 @@ +# Crash после side effect, lease, prefetch и staging + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/workers/pipeline.go](../../../../src/backend/workers/pipeline.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 148.197 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-worker-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.26 с. + +[Полный вывод](experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/outbox.md b/evidence/criteria/runs/20261105T195905.012798Z/outbox.md new file mode 100644 index 0000000..4a184ab --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/outbox.md @@ -0,0 +1,968 @@ +# Восстановление между COMMIT и publish + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/repositories/jobs.go](../../../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 148.197 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-worker-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.26 с. + +[Полный вывод](experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/persistence.json b/evidence/criteria/runs/20261105T195905.012798Z/persistence.json new file mode 100644 index 0000000..dc935a9 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/persistence.json @@ -0,0 +1,5 @@ +{ + "command": "make test-persistence BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/restart.sh", + "exit_code": 0, + "seconds": 44.454 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/persistence.txt b/evidence/criteria/runs/20261105T195905.012798Z/persistence.txt new file mode 100644 index 0000000..72e4ea1 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/persistence.txt @@ -0,0 +1,3 @@ +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8085" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/criteria/runs/20261105T195905.012798Z/public-smoke.md b/evidence/criteria/runs/20261105T195905.012798Z/public-smoke.md new file mode 100644 index 0000000..c8fd177 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/public-smoke.md @@ -0,0 +1,865 @@ +# Публичный smoke + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [tests/smoke.py](../../../../tests/smoke.py). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## structure + +Команда: `make check` + +Exit code: 0; время: 12.492 с. + +[Полный вывод](structure.txt) + +````text +python3 scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. +```` + +## smoke + +Команда: `make test BASE_URL=http://127.0.0.1:8085` + +Exit code: 0; время: 8.928 с. + +[Полный вывод](smoke.txt) + +````text +python3 tests/smoke.py --base-url "http://127.0.0.1:8085" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/restart-audit.txt b/evidence/criteria/runs/20261105T195905.012798Z/restart-audit.txt new file mode 100644 index 0000000..dc91e3f --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/restart-audit.txt @@ -0,0 +1,4 @@ +{ + "processes_restarted_with_same_mounts": true, + "containers": 9 +} \ No newline at end of file diff --git a/evidence/criteria/runs/20261105T195905.012798Z/restart-recovery.md b/evidence/criteria/runs/20261105T195905.012798Z/restart-recovery.md new file mode 100644 index 0000000..842b6c6 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/restart-recovery.md @@ -0,0 +1,880 @@ +# Worker off, restart API/broker, восстановление + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [scripts/restart.sh](../../../../scripts/restart.sh). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 130.92 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## persistence + +Команда: `make test-persistence BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/restart.sh` + +Exit code: 0; время: 44.454 с. + +[Полный вывод](persistence.txt) + +````text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8085" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## restart-audit + +Команда: `compare before-restart / after-restart: StartedAt and mounts` + +Exit code: 0; время: 0 с. + +[Полный вывод](restart-audit.txt) + +````text +{ + "processes_restarted_with_same_mounts": true, + "containers": 9 +} +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/restore.json b/evidence/criteria/runs/20261105T195905.012798Z/restore.json new file mode 100644 index 0000000..ceba816 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/restore.json @@ -0,0 +1,5 @@ +{ + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait", + "exit_code": 0, + "seconds": 9.144 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/restore.txt b/evidence/criteria/runs/20261105T195905.012798Z/restore.txt new file mode 100644 index 0000000..3758564 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/restore.txt @@ -0,0 +1,74 @@ + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy diff --git a/evidence/criteria/runs/20261105T195905.012798Z/retry-idempotency.md b/evidence/criteria/runs/20261105T195905.012798Z/retry-idempotency.md new file mode 100644 index 0000000..ceb654d --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/retry-idempotency.md @@ -0,0 +1,947 @@ +# Ограниченный retry и повтор job + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/repositories/jobs.go](../../../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 130.92 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 148.197 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-worker-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/retry-replay.md b/evidence/criteria/runs/20261105T195905.012798Z/retry-replay.md new file mode 100644 index 0000000..fe704b4 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/retry-replay.md @@ -0,0 +1,935 @@ +# Backoff/jitter, failed registry и безопасный replay + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/repositories/job_admin.go](../../../../src/backend/repositories/job_admin.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 148.197 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-worker-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/smoke.json b/evidence/criteria/runs/20261105T195905.012798Z/smoke.json new file mode 100644 index 0000000..3365ecb --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/smoke.json @@ -0,0 +1,5 @@ +{ + "command": "make test BASE_URL=http://127.0.0.1:8085", + "exit_code": 0, + "seconds": 8.928 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/smoke.txt b/evidence/criteria/runs/20261105T195905.012798Z/smoke.txt new file mode 100644 index 0000000..ac41d47 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/smoke.txt @@ -0,0 +1,2 @@ +python3 tests/smoke.py --base-url "http://127.0.0.1:8085" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. diff --git a/evidence/criteria/runs/20261105T195905.012798Z/startup.json b/evidence/criteria/runs/20261105T195905.012798Z/startup.json new file mode 100644 index 0000000..3e26db7 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/startup.json @@ -0,0 +1,5 @@ +{ + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait", + "exit_code": 0, + "seconds": 64.599 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/startup.txt b/evidence/criteria/runs/20261105T195905.012798Z/startup.txt new file mode 100644 index 0000000..3323ce2 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/startup.txt @@ -0,0 +1,361 @@ + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy diff --git a/evidence/criteria/runs/20261105T195905.012798Z/states-variants.md b/evidence/criteria/runs/20261105T195905.012798Z/states-variants.md new file mode 100644 index 0000000..443c800 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/states-variants.md @@ -0,0 +1,864 @@ +# Состояния, оригинал и thumbnail + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/workers/attachment.go](../../../../src/backend/workers/attachment.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## smoke + +Команда: `make test BASE_URL=http://127.0.0.1:8085` + +Exit code: 0; время: 8.928 с. + +[Полный вывод](smoke.txt) + +````text +python3 tests/smoke.py --base-url "http://127.0.0.1:8085" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 130.92 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/structure.json b/evidence/criteria/runs/20261105T195905.012798Z/structure.json new file mode 100644 index 0000000..69499a5 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/structure.json @@ -0,0 +1,5 @@ +{ + "command": "make check", + "exit_code": 0, + "seconds": 12.492 +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/structure.txt b/evidence/criteria/runs/20261105T195905.012798Z/structure.txt new file mode 100644 index 0000000..9a55330 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/structure.txt @@ -0,0 +1,2 @@ +python3 scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. diff --git a/evidence/criteria/runs/20261105T195905.012798Z/summary.json b/evidence/criteria/runs/20261105T195905.012798Z/summary.json new file mode 100644 index 0000000..e81a21a --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/summary.json @@ -0,0 +1,96 @@ +{ + "run": "20261105T195905.012798Z", + "campaign": "main-20261105T183859Z-d93b7abf", + "criteria": { + "public-smoke": "PASS", + "baseline": "PASS", + "durable-upload": "PASS", + "broker-worker": "PASS", + "states-variants": "PASS", + "retry-idempotency": "PASS", + "restart-recovery": "PASS", + "variants-limits": "PASS", + "outbox": "PASS", + "retry-replay": "PASS", + "lease-cleanup": "PASS", + "versioned-pipeline": "PASS" + }, + "generator_sha256": "7508ac9e1dfe1411d90c9fa0477786d36f9603f8929f89d86deac39d0fb39e74", + "results": { + "structure": { + "command": "make check", + "exit_code": 0, + "seconds": 12.492 + }, + "experiment": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf", + "exit_code": 0, + "seconds": 15.26 + }, + "startup": { + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait", + "exit_code": 0, + "seconds": 64.599 + }, + "inventory": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.872 + }, + "smoke": { + "command": "make test BASE_URL=http://127.0.0.1:8085", + "exit_code": 0, + "seconds": 8.928 + }, + "backend": { + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests", + "exit_code": 0, + "seconds": 191.102 + }, + "grade3": { + "command": "/usr/bin/python3 scripts/check_async_grade3.py", + "exit_code": 0, + "seconds": 130.92 + }, + "grade4": { + "command": "/usr/bin/python3 scripts/check_async_grade4.py", + "exit_code": 0, + "seconds": 148.197 + }, + "before-restart": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.829 + }, + "persistence": { + "command": "make test-persistence BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/restart.sh", + "exit_code": 0, + "seconds": 44.454 + }, + "after-restart": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.802 + }, + "restart-audit": { + "command": "compare before-restart / after-restart: StartedAt and mounts", + "exit_code": 0, + "seconds": 0 + }, + "failover": { + "command": "make test-failover BASE_URL=http://127.0.0.1:8085 ACTION_SCRIPT=scripts/stop-one.sh", + "exit_code": 0, + "seconds": 20.342 + }, + "restore": { + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait", + "exit_code": 0, + "seconds": 9.144 + }, + "final-inventory": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.791 + } + } +} diff --git a/evidence/criteria/runs/20261105T195905.012798Z/variants-limits.md b/evidence/criteria/runs/20261105T195905.012798Z/variants-limits.md new file mode 100644 index 0000000..a35b871 --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/variants-limits.md @@ -0,0 +1,1510 @@ +# Crop, WebP, валидация и лимиты worker + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/workers/image_process.go](../../../../src/backend/workers/image_process.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 148.197 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-worker-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 191.102 с. + +[Полный вывод](backend.txt) + +````text + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.0s + +#5 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.0s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 2/4] WORKDIR /source +#13 CACHED + +#14 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#14 CACHED + +#15 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#15 CACHED + +#16 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 ... + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.5s done +#7 DONE 0.5s + +#18 [s3] exporting to image +#18 exporting attestation manifest sha256:0a6e095cfb1f41fe34425f486938dc7e9d29d0f47f1488e275056d92e17cba13 0.0s done +#18 exporting manifest list sha256:628d1e9070c11b9343d482bb666bc0c1afe9c3d336a616b0ce7a0b6b5bf0ad1c 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.1s + +#19 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#19 CACHED + +#20 [s3-bootstrap stage-1 3/4] WORKDIR /app +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 6/7] COPY backend ./backend +#22 CACHED + +#23 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#23 CACHED + +#24 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#24 CACHED + +#25 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#25 CACHED + +#26 [s3-bootstrap builder 5/7] RUN go mod download +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3-bootstrap] exporting to image +#28 exporting layers done +#28 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#28 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#28 exporting attestation manifest sha256:49d0b35b39f4d5547f4f766ac6a9b646272bab3e1b292f5c9f6227716aa32c20 0.1s done +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 +#28 ... + +#29 [s3] resolving provenance for metadata file +#29 DONE 0.0s + +#28 [s3-bootstrap] exporting to image +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 0.0s done +#28 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#28 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#28 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.0s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.6s + +#7 [builder 5/7] RUN go mod download +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 6/7] COPY backend ./backend +#9 CACHED + +#10 [builder 3/7] WORKDIR /src +#10 CACHED + +#11 [builder 4/7] COPY go.mod go.sum ./ +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers +#13 exporting layers 12.0s done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 0.0s done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 0.0s done +#13 exporting attestation manifest sha256:12713be72f7f8b1de12a067b99c15ef3399254538b7009280cde213a109c6ea7 0.0s done +#13 exporting manifest list sha256:84e5022c57a0e0cceb96e81140db98b991b0852610216d4fcc60697a84cf86e4 done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 3.4s done +#13 DONE 13.0s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-67b701f1b076 Creating + Container highload-lab5-backend-tests-run-67b701f1b076 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.45s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.41s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.65s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.15s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.38s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.00s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.71s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.43s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.01s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.68s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (0.96s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.77s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.14s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (0.97s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (0.80s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (0.95s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.45s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.85s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.26s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.85s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (0.86s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.85s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.82s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (1.05s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.40s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.067198024s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.80s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.54s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:03:12 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:13 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:14 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.60s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.022, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.018, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.107, + "Triggers": [ + ], + "Execution Time": 0.096 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.027, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.021, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, 'c9e64ca7-2889-43c5-8347-28232b63641f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.063, + "Triggers": [ + ], + "Execution Time": 0.042 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.88s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.42s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.82s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.09s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.75s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.73s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.72s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.08s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.68s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.73s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.72s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.50s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.35s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.67s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (0.87s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.72s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.79s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.79s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.67s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.75s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.05s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.75s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.69s) +PASS +ok [REDACTED]/src/backend/tests 61.930s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.99s) + --- PASS: TestThumbnailContract/320x200 (0.47s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.10s) + --- PASS: TestThumbnailContract/1000x1 (3.80s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.22s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.98s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.18s) +PASS +ok [REDACTED]/src/backend/workers 12.511s +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T195905.012798Z/versioned-pipeline.md b/evidence/criteria/runs/20261105T195905.012798Z/versioned-pipeline.md new file mode 100644 index 0000000..80cea2f --- /dev/null +++ b/evidence/criteria/runs/20261105T195905.012798Z/versioned-pipeline.md @@ -0,0 +1,1447 @@ +# Трек 2: versioned pipeline и fault injection + +Результат: **PASS**. Запуск: `20261105T195905.012798Z`. + +Код: [src/backend/repositories/pipeline_versions.go](../../../../src/backend/repositories/pipeline_versions.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 64.599 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-worker Building + Image highload-lab5-s3 Building + Image highload-lab5-migrate Building + Image highload-lab5-api Building + Image highload-lab5-dispatcher Building + Image highload-lab5-frontend Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [worker internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [worker internal] load metadata for docker.io/library/debian:12.15-slim +#4 ... + +#5 [frontend internal] load build definition from Dockerfile +#5 transferring dockerfile: 181B 0.0s done +#5 DONE 0.2s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.4s + +#6 [migrate internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#6 DONE 0.4s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.4s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [frontend internal] load .dockerignore +#9 transferring context: 58B 0.0s done +#9 DONE 0.1s + +#10 [upload-cleanup internal] load build context +#10 DONE 0.0s + +#11 [upload-cleanup builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#11 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#11 DONE 0.1s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#14 [frontend internal] load build context +#14 transferring context: 571B 0.1s done +#14 DONE 0.1s + +#15 [frontend 4/5] RUN npm ci +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 2/5] WORKDIR /app +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 CACHED + +#19 [frontend] exporting to image +#19 exporting layers done +#19 exporting manifest sha256:b4e0c622731cdb1864e7562d4572eb5c5e8b061738667702dcc8d2c1b176c6a9 done +#19 exporting config sha256:3babc134ec13b2340335fa71a2ddefb5a8de315b9248c555f92e9774792c5659 done +#19 exporting attestation manifest sha256:d6482c596f57d21e6951dfd39b798f076ed6e8ccd9a04a0f643db74fab150f62 0.0s done +#19 exporting manifest list sha256:ffaaa67db5e74f77c02e5a538712a18c7d94ddc5a62076b8a9413a75b52cd96b 0.0s done +#19 naming to docker.io/library/highload-lab5-frontend:latest done +#19 unpacking to docker.io/library/highload-lab5-frontend:latest 0.0s done +#19 DONE 0.2s + +#10 [migrate internal] load build context +#10 ... + +#20 [frontend] resolving provenance for metadata file +#20 DONE 0.0s + +#10 [migrate internal] load build context +#10 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.1s + +#21 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#21 DONE 1.1s + +#22 [s3 internal] load .dockerignore +#22 transferring context: 2B 0.0s done +#22 DONE 0.0s + +#10 [migrate internal] load build context +#10 transferring context: 5.91kB 0.7s done +#10 DONE 0.7s + +#23 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#23 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#23 DONE 0.0s + +#24 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#24 CACHED + +#25 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#25 CACHED + +#26 [s3 builder 2/4] WORKDIR /source +#26 CACHED + +#27 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#27 CACHED + +#28 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#28 CACHED + +#29 [migrate builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#29 CACHED + +#30 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [migrate stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [migrate builder 5/7] RUN go mod download +#32 CACHED + +#33 [migrate builder 4/7] COPY go.mod go.sum ./ +#33 CACHED + +#34 [migrate stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#34 CACHED + +#35 [migrate builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [migrate builder 3/7] WORKDIR /src +#36 CACHED + +#37 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#37 CACHED + +#38 [s3] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#38 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#38 exporting attestation manifest sha256:7e84787e9b456c1f80d3afe8dafd577fa578bf63e0f9593226273ce9eacf2d9b 0.0s done +#38 exporting manifest list sha256:338bff9d50be806557498a2ccb668c5a0a416570a71319385a79e92049443c07 0.1s done +#38 naming to docker.io/library/highload-lab5-s3:latest +#38 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-s3:latest +#38 unpacking to docker.io/library/highload-lab5-s3:latest 0.1s done +#38 DONE 0.5s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.1s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.1s done +#39 exporting attestation manifest sha256:c86c934051a15fbb1a7031f37fef3bd54a791be33957f9717f53529c4230f1d0 0.2s done +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f +#39 exporting manifest list sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.8s + +#40 [s3-bootstrap] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.1s done +#40 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.1s done +#40 exporting attestation manifest sha256:abea9be0a502700f60f2f508eb9c343eec58c177370abaee5ac53ea8943771e7 0.2s done +#40 exporting manifest list sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09 0.1s done +#40 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#40 DONE 0.8s + +#41 [dispatcher] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.1s done +#41 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.1s done +#41 exporting attestation manifest sha256:ee04c1c38a448074de45f918ff964408be95a86a696601f6a95884bd4d548f0f 0.2s done +#41 exporting manifest list sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a 0.1s done +#41 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#41 DONE 0.8s + +#42 [migrate] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.1s done +#42 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.1s done +#42 exporting attestation manifest sha256:56443b028cfa8aa23d016c2425214efeae5bbbe5775d311730fbe8eda4e67b43 0.2s done +#42 exporting manifest list sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae 0.1s done +#42 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#42 DONE 0.8s + +#43 [api] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.1s done +#43 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.1s done +#43 exporting attestation manifest sha256:d1de9033c84940b29d6719674c417ffe41bfb7c4450f0501973401050fe0bfd5 0.2s done +#43 exporting manifest list sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4 0.1s done +#43 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#43 DONE 0.8s + +#44 [upload-cleanup] exporting to image +#44 exporting layers done +#44 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.1s done +#44 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.1s done +#44 exporting attestation manifest sha256:eb4aa62a9b83c183a193611f4a523d4d2c94e0df06e496fda3ad58ae5cdfdb4e 0.2s done +#44 exporting manifest list sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4 0.1s done +#44 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#44 DONE 0.8s + +#45 [s3] resolving provenance for metadata file +#45 ... + +#46 [api] resolving provenance for metadata file +#46 DONE 0.2s + +#47 [worker] resolving provenance for metadata file +#47 DONE 0.1s + +#45 [s3] resolving provenance for metadata file +#45 DONE 0.7s + +#48 [dispatcher] resolving provenance for metadata file +#48 DONE 0.3s + +#49 [s3-bootstrap] resolving provenance for metadata file +#49 DONE 0.2s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [upload-cleanup] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-api Built + Image highload-lab5-frontend Built + Image highload-lab5-worker Built + Image highload-lab5-dispatcher Built + Image highload-lab5-migrate Built + Image highload-lab5-s3 Built + Container highload-lab5-s3-bootstrap-1 Recreate + Container highload-lab5-broker-1 Recreate + Container highload-lab5-migrate-1 Recreate + Container highload-lab5-migrate-1 Recreated + Container highload-lab5-s3-bootstrap-1 Recreated + Container highload-lab5-api-1 Recreate + Container highload-lab5-api-2 Recreate + Container highload-lab5-upload-cleanup-1 Recreate + Container highload-lab5-broker-1 Recreated + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreate + Container highload-lab5-upload-cleanup-1 Recreated + Container highload-lab5-api-1 Recreated + Container highload-lab5-api-2 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-worker-1 Recreated + Container highload-lab5-s3-1 Starting + Container highload-lab5-redis-1 Starting + Container highload-lab5-db-1 Starting + Container highload-lab5-broker-1 Starting + Container highload-lab5-s3-1 Started + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Started + Container highload-lab5-db-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Started + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-upload-cleanup-1 Starting + Container highload-lab5-api-2 Started + Container highload-lab5-api-1 Starting + Container highload-lab5-upload-cleanup-1 Started + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Starting + Container highload-lab5-haproxy-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Starting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-worker-1 Started + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.26 с. + +[Полный вывод](experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 191.102 с. + +[Полный вывод](backend.txt) + +````text + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#4 DONE 0.0s + +#5 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.0s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 2/4] WORKDIR /source +#13 CACHED + +#14 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#14 CACHED + +#15 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#15 CACHED + +#16 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 ... + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.5s done +#7 DONE 0.5s + +#18 [s3] exporting to image +#18 exporting attestation manifest sha256:0a6e095cfb1f41fe34425f486938dc7e9d29d0f47f1488e275056d92e17cba13 0.0s done +#18 exporting manifest list sha256:628d1e9070c11b9343d482bb666bc0c1afe9c3d336a616b0ce7a0b6b5bf0ad1c 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.1s + +#19 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#19 CACHED + +#20 [s3-bootstrap stage-1 3/4] WORKDIR /app +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 6/7] COPY backend ./backend +#22 CACHED + +#23 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#23 CACHED + +#24 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#24 CACHED + +#25 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#25 CACHED + +#26 [s3-bootstrap builder 5/7] RUN go mod download +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3-bootstrap] exporting to image +#28 exporting layers done +#28 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#28 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#28 exporting attestation manifest sha256:49d0b35b39f4d5547f4f766ac6a9b646272bab3e1b292f5c9f6227716aa32c20 0.1s done +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 +#28 ... + +#29 [s3] resolving provenance for metadata file +#29 DONE 0.0s + +#28 [s3-bootstrap] exporting to image +#28 exporting manifest list sha256:83d8061eeec589c74254415dd0d86f80b49825568d6960b98a17cf6418e73237 0.0s done +#28 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#28 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#28 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.0s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.6s + +#7 [builder 5/7] RUN go mod download +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 6/7] COPY backend ./backend +#9 CACHED + +#10 [builder 3/7] WORKDIR /src +#10 CACHED + +#11 [builder 4/7] COPY go.mod go.sum ./ +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers +#13 exporting layers 12.0s done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 0.0s done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 0.0s done +#13 exporting attestation manifest sha256:12713be72f7f8b1de12a067b99c15ef3399254538b7009280cde213a109c6ea7 0.0s done +#13 exporting manifest list sha256:84e5022c57a0e0cceb96e81140db98b991b0852610216d4fcc60697a84cf86e4 done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 3.4s done +#13 DONE 13.0s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-67b701f1b076 Creating + Container highload-lab5-backend-tests-run-67b701f1b076 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.45s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.41s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.65s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.15s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.38s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.00s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.71s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.43s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.01s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.68s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (0.96s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.77s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.14s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (0.97s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (0.80s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (0.95s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.45s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.85s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.26s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.85s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.77s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (0.86s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.85s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.82s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (1.05s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.40s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.067198024s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.80s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.54s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:03:12 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:13 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:03:14 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.60s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.022, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.013, + "Actual Total Time": 0.018, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.107, + "Triggers": [ + ], + "Execution Time": 0.096 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.015, + "Actual Total Time": 0.027, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.014, + "Actual Total Time": 0.021, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '5dddecd0-e972-4328-adba-31479e9b02d9'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, 'c9e64ca7-2889-43c5-8347-28232b63641f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.063, + "Triggers": [ + ], + "Execution Time": 0.042 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.88s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.42s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.82s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.09s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.75s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.73s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.72s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.08s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.68s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.73s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.72s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.50s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.35s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.67s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (0.87s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.72s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.79s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.79s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.67s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.75s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.05s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.75s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.69s) +PASS +ok [REDACTED]/src/backend/tests 61.930s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.99s) + --- PASS: TestThumbnailContract/320x200 (0.47s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.10s) + --- PASS: TestThumbnailContract/1000x1 (3.80s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.22s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.98s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.18s) +PASS +ok [REDACTED]/src/backend/workers 12.511s +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.144 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-frontend-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-1 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.791 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "aa7d89f14176b14ffa79ba8028559b87d7b459972993ffa501ca58d0c9dabc1c", + "service": "frontend", + "image": "sha256:a72eeee827aa837f9c6ed403e03fd31333ef8812302114e54497db01f4e20267", + "status": "running", + "started": "2026-11-05T19:59:58.7897928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "28cac097166ca3754901ad5f84979d7662d1802ebbc42c6e1ecc3f07d00ac805", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T19:59:55.39586346Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:08:55.741273933Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:08:55.387075683Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:08:28.217909645Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/after-restart.json b/evidence/criteria/runs/20261105T203108.038394Z/after-restart.json new file mode 100644 index 0000000..99f44e6 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/after-restart.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.764 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/after-restart.txt b/evidence/criteria/runs/20261105T203108.038394Z/after-restart.txt new file mode 100644 index 0000000..eeb6b33 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/after-restart.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.032904254Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:39:34.609935173Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:34.983883295Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T203108.038394Z/backend.json b/evidence/criteria/runs/20261105T203108.038394Z/backend.json new file mode 100644 index 0000000..1b4aec3 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/backend.json @@ -0,0 +1,5 @@ +{ + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests", + "exit_code": 0, + "seconds": 190.535 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/backend.txt b/evidence/criteria/runs/20261105T203108.038394Z/backend.txt new file mode 100644 index 0000000..2476f3a --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/backend.txt @@ -0,0 +1,564 @@ + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s diff --git a/evidence/criteria/runs/20261105T203108.038394Z/baseline.md b/evidence/criteria/runs/20261105T203108.038394Z/baseline.md new file mode 100644 index 0000000..ab777d7 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/baseline.md @@ -0,0 +1,1421 @@ +# Сохранение возможностей lab4 + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/tests](../../../../src/backend/tests). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 190.535 с. + +[Полный вывод](backend.txt) + +````text + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s +```` + +## persistence + +Команда: `make test-persistence BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/restart.sh` + +Exit code: 0; время: 43.866 с. + +[Полный вывод](persistence.txt) + +````text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## failover + +Команда: `make test-failover BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/stop-one.sh` + +Exit code: 0; время: 20.485 с. + +[Полный вывод](failover.txt) + +````text +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8080" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 2, "first_recovery_seconds": 1.888} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/before-restart.json b/evidence/criteria/runs/20261105T203108.038394Z/before-restart.json new file mode 100644 index 0000000..328beca --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/before-restart.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.999 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/before-restart.txt b/evidence/criteria/runs/20261105T203108.038394Z/before-restart.txt new file mode 100644 index 0000000..6ac7438 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/before-restart.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:35:10.754690131Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:35:10.688882663Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:35:13.454988677Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:38:54.671248855Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:38:53.76181653Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:38:54.153256406Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:38:55.634108495Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T203108.038394Z/broker-worker.md b/evidence/criteria/runs/20261105T203108.038394Z/broker-worker.md new file mode 100644 index 0000000..9610773 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/broker-worker.md @@ -0,0 +1,1206 @@ +# Отдельные RabbitMQ и worker, durable delivery и ack + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/broker.go](../../../../src/backend/repositories/broker.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 0.861 с. + +[Полный вывод](inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:31:46.406562509Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:31:46.80385109Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:19:43.780011117Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/durable-upload.md b/evidence/criteria/runs/20261105T203108.038394Z/durable-upload.md new file mode 100644 index 0000000..f961853 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/durable-upload.md @@ -0,0 +1,829 @@ +# Устойчивый приём до 202 + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/jobs.go](../../../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/experiment.json b/evidence/criteria/runs/20261105T203108.038394Z/experiment.json new file mode 100644 index 0000000..6492e49 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/experiment.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf", + "exit_code": 0, + "seconds": 15.012 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/experiment.txt b/evidence/criteria/runs/20261105T203108.038394Z/experiment.txt new file mode 100644 index 0000000..be6d74c --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/experiment.txt @@ -0,0 +1,22 @@ +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | diff --git a/evidence/criteria/runs/20261105T203108.038394Z/failover.json b/evidence/criteria/runs/20261105T203108.038394Z/failover.json new file mode 100644 index 0000000..18e38ff --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/failover.json @@ -0,0 +1,5 @@ +{ + "command": "make test-failover BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/stop-one.sh", + "exit_code": 0, + "seconds": 20.485 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/failover.txt b/evidence/criteria/runs/20261105T203108.038394Z/failover.txt new file mode 100644 index 0000000..9bdf60d --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/failover.txt @@ -0,0 +1,4 @@ +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8080" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 2, "first_recovery_seconds": 1.888} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/criteria/runs/20261105T203108.038394Z/final-inventory.json b/evidence/criteria/runs/20261105T203108.038394Z/final-inventory.json new file mode 100644 index 0000000..886db8a --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/final-inventory.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 1.088 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/final-inventory.txt b/evidence/criteria/runs/20261105T203108.038394Z/final-inventory.txt new file mode 100644 index 0000000..49af877 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/final-inventory.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T203108.038394Z/grade3.json b/evidence/criteria/runs/20261105T203108.038394Z/grade3.json new file mode 100644 index 0000000..f1939b2 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/grade3.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 scripts/check_async_grade3.py", + "exit_code": 0, + "seconds": 132.727 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/grade3.txt b/evidence/criteria/runs/20261105T203108.038394Z/grade3.txt new file mode 100644 index 0000000..0b954b4 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/grade3.txt @@ -0,0 +1 @@ +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. diff --git a/evidence/criteria/runs/20261105T203108.038394Z/grade4.json b/evidence/criteria/runs/20261105T203108.038394Z/grade4.json new file mode 100644 index 0000000..3220830 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/grade4.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 scripts/check_async_grade4.py", + "exit_code": 0, + "seconds": 126.943 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/grade4.txt b/evidence/criteria/runs/20261105T203108.038394Z/grade4.txt new file mode 100644 index 0000000..996e848 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/grade4.txt @@ -0,0 +1,85 @@ +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy diff --git a/evidence/criteria/runs/20261105T203108.038394Z/inventory.json b/evidence/criteria/runs/20261105T203108.038394Z/inventory.json new file mode 100644 index 0000000..f0d139e --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/inventory.json @@ -0,0 +1,5 @@ +{ + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.861 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/inventory.txt b/evidence/criteria/runs/20261105T203108.038394Z/inventory.txt new file mode 100644 index 0000000..7c120f9 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/inventory.txt @@ -0,0 +1,366 @@ +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:56.773733904Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:08:28.901649025Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:08:00.559608745Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:07:59.269705928Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "5d61bfdb800611d24818255e3f5d73f6e9298751f3215403af1b1e94101c7811", + "service": "dispatcher", + "image": "sha256:beb365003057e895e7e74a054f3318561578f6bb3c5654c1e24dce098673cb5a", + "status": "running", + "started": "2026-11-05T20:08:28.371512595Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:31:46.406562509Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:07:59.186994777Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:07:59.479213753Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:31:46.80385109Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:08:28.541815029Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "f2e69fdce3287d85a2b1b08ddaced68f9a39139bb59fd6145008367195b2d81e", + "service": "worker", + "image": "sha256:38e303e47c7ba88a755dbaf0abcbd1eb0182e00bcca1aca66634bf8efed1ec9f", + "status": "running", + "started": "2026-11-05T20:19:43.780011117Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] diff --git a/evidence/criteria/runs/20261105T203108.038394Z/lease-cleanup.md b/evidence/criteria/runs/20261105T203108.038394Z/lease-cleanup.md new file mode 100644 index 0000000..246570d --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/lease-cleanup.md @@ -0,0 +1,946 @@ +# Crash после side effect, lease, prefetch и staging + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/workers/pipeline.go](../../../../src/backend/workers/pipeline.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.012 с. + +[Полный вывод](experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/outbox.md b/evidence/criteria/runs/20261105T203108.038394Z/outbox.md new file mode 100644 index 0000000..cc5a573 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/outbox.md @@ -0,0 +1,946 @@ +# Восстановление между COMMIT и publish + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/jobs.go](../../../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.012 с. + +[Полный вывод](experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/persistence.json b/evidence/criteria/runs/20261105T203108.038394Z/persistence.json new file mode 100644 index 0000000..c2a37e8 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/persistence.json @@ -0,0 +1,5 @@ +{ + "command": "make test-persistence BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/restart.sh", + "exit_code": 0, + "seconds": 43.866 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/persistence.txt b/evidence/criteria/runs/20261105T203108.038394Z/persistence.txt new file mode 100644 index 0000000..90ac266 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/persistence.txt @@ -0,0 +1,3 @@ +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/criteria/runs/20261105T203108.038394Z/public-smoke.md b/evidence/criteria/runs/20261105T203108.038394Z/public-smoke.md new file mode 100644 index 0000000..1baee63 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/public-smoke.md @@ -0,0 +1,843 @@ +# Публичный smoke + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [tests/smoke.py](../../../../tests/smoke.py). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## structure + +Команда: `make check` + +Exit code: 0; время: 12.414 с. + +[Полный вывод](structure.txt) + +````text +python3 scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. +```` + +## smoke + +Команда: `make test BASE_URL=http://127.0.0.1:8080` + +Exit code: 0; время: 4.965 с. + +[Полный вывод](smoke.txt) + +````text +python3 tests/smoke.py --base-url "http://127.0.0.1:8080" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/restart-audit.txt b/evidence/criteria/runs/20261105T203108.038394Z/restart-audit.txt new file mode 100644 index 0000000..dc91e3f --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/restart-audit.txt @@ -0,0 +1,4 @@ +{ + "processes_restarted_with_same_mounts": true, + "containers": 9 +} \ No newline at end of file diff --git a/evidence/criteria/runs/20261105T203108.038394Z/restart-recovery.md b/evidence/criteria/runs/20261105T203108.038394Z/restart-recovery.md new file mode 100644 index 0000000..b3a65ae --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/restart-recovery.md @@ -0,0 +1,858 @@ +# Worker off, restart API/broker, восстановление + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [scripts/restart.sh](../../../../scripts/restart.sh). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## persistence + +Команда: `make test-persistence BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/restart.sh` + +Exit code: 0; время: 43.866 с. + +[Полный вывод](persistence.txt) + +````text +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080" +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. +```` + +## restart-audit + +Команда: `compare before-restart / after-restart: StartedAt and mounts` + +Exit code: 0; время: 0 с. + +[Полный вывод](restart-audit.txt) + +````text +{ + "processes_restarted_with_same_mounts": true, + "containers": 9 +} +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/restore.json b/evidence/criteria/runs/20261105T203108.038394Z/restore.json new file mode 100644 index 0000000..93d81ce --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/restore.json @@ -0,0 +1,5 @@ +{ + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait", + "exit_code": 0, + "seconds": 9.99 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/restore.txt b/evidence/criteria/runs/20261105T203108.038394Z/restore.txt new file mode 100644 index 0000000..d918593 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/restore.txt @@ -0,0 +1,74 @@ + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy diff --git a/evidence/criteria/runs/20261105T203108.038394Z/retry-idempotency.md b/evidence/criteria/runs/20261105T203108.038394Z/retry-idempotency.md new file mode 100644 index 0000000..6121853 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/retry-idempotency.md @@ -0,0 +1,925 @@ +# Ограниченный retry и повтор job + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/jobs.go](../../../../src/backend/repositories/jobs.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/retry-replay.md b/evidence/criteria/runs/20261105T203108.038394Z/retry-replay.md new file mode 100644 index 0000000..135e66a --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/retry-replay.md @@ -0,0 +1,913 @@ +# Backoff/jitter, failed registry и безопасный replay + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/job_admin.go](../../../../src/backend/repositories/job_admin.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/smoke.json b/evidence/criteria/runs/20261105T203108.038394Z/smoke.json new file mode 100644 index 0000000..1c1adbf --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/smoke.json @@ -0,0 +1,5 @@ +{ + "command": "make test BASE_URL=http://127.0.0.1:8080", + "exit_code": 0, + "seconds": 4.965 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/smoke.txt b/evidence/criteria/runs/20261105T203108.038394Z/smoke.txt new file mode 100644 index 0000000..b59ec74 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/smoke.txt @@ -0,0 +1,2 @@ +python3 tests/smoke.py --base-url "http://127.0.0.1:8080" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. diff --git a/evidence/criteria/runs/20261105T203108.038394Z/startup.json b/evidence/criteria/runs/20261105T203108.038394Z/startup.json new file mode 100644 index 0000000..23a1be1 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/startup.json @@ -0,0 +1,5 @@ +{ + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait", + "exit_code": 0, + "seconds": 22.628 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/startup.txt b/evidence/criteria/runs/20261105T203108.038394Z/startup.txt new file mode 100644 index 0000000..757f24a --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/startup.txt @@ -0,0 +1,339 @@ + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy diff --git a/evidence/criteria/runs/20261105T203108.038394Z/states-variants.md b/evidence/criteria/runs/20261105T203108.038394Z/states-variants.md new file mode 100644 index 0000000..9977288 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/states-variants.md @@ -0,0 +1,842 @@ +# Состояния, оригинал и thumbnail + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/workers/attachment.go](../../../../src/backend/workers/attachment.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## smoke + +Команда: `make test BASE_URL=http://127.0.0.1:8080` + +Exit code: 0; время: 4.965 с. + +[Полный вывод](smoke.txt) + +````text +python3 tests/smoke.py --base-url "http://127.0.0.1:8080" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/structure.json b/evidence/criteria/runs/20261105T203108.038394Z/structure.json new file mode 100644 index 0000000..31bad19 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/structure.json @@ -0,0 +1,5 @@ +{ + "command": "make check", + "exit_code": 0, + "seconds": 12.414 +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/structure.txt b/evidence/criteria/runs/20261105T203108.038394Z/structure.txt new file mode 100644 index 0000000..9a55330 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/structure.txt @@ -0,0 +1,2 @@ +python3 scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. diff --git a/evidence/criteria/runs/20261105T203108.038394Z/summary.json b/evidence/criteria/runs/20261105T203108.038394Z/summary.json new file mode 100644 index 0000000..296f357 --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/summary.json @@ -0,0 +1,96 @@ +{ + "run": "20261105T203108.038394Z", + "campaign": "main-20261105T183859Z-d93b7abf", + "criteria": { + "public-smoke": "PASS", + "baseline": "PASS", + "durable-upload": "PASS", + "broker-worker": "PASS", + "states-variants": "PASS", + "retry-idempotency": "PASS", + "restart-recovery": "PASS", + "variants-limits": "PASS", + "outbox": "PASS", + "retry-replay": "PASS", + "lease-cleanup": "PASS", + "versioned-pipeline": "PASS" + }, + "generator_sha256": "eca24f6cd657a4a13cf7910e56da189719142c86bf9562b2d09b6eb07dfa565d", + "results": { + "structure": { + "command": "make check", + "exit_code": 0, + "seconds": 12.414 + }, + "experiment": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf", + "exit_code": 0, + "seconds": 15.012 + }, + "startup": { + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait", + "exit_code": 0, + "seconds": 22.628 + }, + "inventory": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.861 + }, + "smoke": { + "command": "make test BASE_URL=http://127.0.0.1:8080", + "exit_code": 0, + "seconds": 4.965 + }, + "backend": { + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests", + "exit_code": 0, + "seconds": 190.535 + }, + "grade3": { + "command": "/usr/bin/python3 scripts/check_async_grade3.py", + "exit_code": 0, + "seconds": 132.727 + }, + "grade4": { + "command": "/usr/bin/python3 scripts/check_async_grade4.py", + "exit_code": 0, + "seconds": 126.943 + }, + "before-restart": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.999 + }, + "persistence": { + "command": "make test-persistence BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/restart.sh", + "exit_code": 0, + "seconds": 43.866 + }, + "after-restart": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 0.764 + }, + "restart-audit": { + "command": "compare before-restart / after-restart: StartedAt and mounts", + "exit_code": 0, + "seconds": 0 + }, + "failover": { + "command": "make test-failover BASE_URL=http://127.0.0.1:8080 ACTION_SCRIPT=scripts/stop-one.sh", + "exit_code": 0, + "seconds": 20.485 + }, + "restore": { + "command": "docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait", + "exit_code": 0, + "seconds": 9.99 + }, + "final-inventory": { + "command": "/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory", + "exit_code": 0, + "seconds": 1.088 + } + } +} diff --git a/evidence/criteria/runs/20261105T203108.038394Z/variants-limits.md b/evidence/criteria/runs/20261105T203108.038394Z/variants-limits.md new file mode 100644 index 0000000..fcb788c --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/variants-limits.md @@ -0,0 +1,1488 @@ +# Crop, WebP, валидация и лимиты worker + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/workers/image_process.go](../../../../src/backend/workers/image_process.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 190.535 с. + +[Полный вывод](backend.txt) + +````text + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/runs/20261105T203108.038394Z/versioned-pipeline.md b/evidence/criteria/runs/20261105T203108.038394Z/versioned-pipeline.md new file mode 100644 index 0000000..d612e7e --- /dev/null +++ b/evidence/criteria/runs/20261105T203108.038394Z/versioned-pipeline.md @@ -0,0 +1,1425 @@ +# Трек 2: versioned pipeline и fault injection + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/pipeline_versions.go](../../../../src/backend/repositories/pipeline_versions.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.012 с. + +[Полный вывод](experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 190.535 с. + +[Полный вывод](backend.txt) + +````text + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/states-variants.md b/evidence/criteria/states-variants.md new file mode 100644 index 0000000..a10e824 --- /dev/null +++ b/evidence/criteria/states-variants.md @@ -0,0 +1,842 @@ +# Состояния, оригинал и thumbnail + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/workers/attachment.go](../../src/backend/workers/attachment.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## smoke + +Команда: `make test BASE_URL=http://127.0.0.1:8080` + +Exit code: 0; время: 4.965 с. + +[Полный вывод](runs/20261105T203108.038394Z/smoke.txt) + +````text +python3 tests/smoke.py --base-url "http://127.0.0.1:8080" +PASS: lab5 public API scenario; infrastructure and grading evidence remain separate. +```` + +## grade3 + +Команда: `/usr/bin/python3 scripts/check_async_grade3.py` + +Exit code: 0; время: 132.727 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade3.txt) + +````text +PASS: worker-off upload, broker/API restart, ready recovery, three duplicates, bounded retry. +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/variants-limits.md b/evidence/criteria/variants-limits.md new file mode 100644 index 0000000..f4de4a9 --- /dev/null +++ b/evidence/criteria/variants-limits.md @@ -0,0 +1,1488 @@ +# Crop, WebP, валидация и лимиты worker + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/workers/image_process.go](../../src/backend/workers/image_process.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## grade4 + +Команда: `/usr/bin/python3 scripts/check_async_grade4.py` + +Exit code: 0; время: 126.943 с. + +[Полный вывод](runs/20261105T203108.038394Z/grade4.txt) + +````text +PASS: crash between COMMIT and publish recovers durable intent. +PASS: after_object_before_commit recovers without duplicate effects. +PASS: after_commit_before_ack recovers without duplicate effects. +PASS: stuck image child is killed and retry succeeds. +PASS: bounded exponential jitter, failed registry, audited safe replay. +PASS: grade 4 variants, fault windows, timeout, retry/replay, retention and resource limits. + Container highload-lab5-s3-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-worker-1 Recreate + Container highload-lab5-dispatcher-1 Recreate + Container highload-lab5-worker-1 Recreated + Container highload-lab5-dispatcher-1 Recreated + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-dispatcher-1 Starting + Container highload-lab5-dispatcher-1 Started + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-worker-1 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-worker-1 Started + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 190.535 с. + +[Полный вывод](runs/20261105T203108.038394Z/backend.txt) + +````text + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +```` diff --git a/evidence/criteria/versioned-pipeline.md b/evidence/criteria/versioned-pipeline.md new file mode 100644 index 0000000..c0db6e7 --- /dev/null +++ b/evidence/criteria/versioned-pipeline.md @@ -0,0 +1,1425 @@ +# Трек 2: versioned pipeline и fault injection + +Результат: **PASS**. Запуск: `20261105T203108.038394Z`. + +Код: [src/backend/repositories/pipeline_versions.go](../../src/backend/repositories/pipeline_versions.go). + +## startup + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --build --wait` + +Exit code: 0; время: 22.628 с. + +[Полный вывод](runs/20261105T203108.038394Z/startup.txt) + +````text + Image highload-lab5-api Building + Image highload-lab5-worker Building + Image highload-lab5-upload-cleanup Building + Image highload-lab5-s3-bootstrap Building + Image highload-lab5-s3 Building + Image highload-lab5-dispatcher Building + Image highload-lab5-migrate Building + Image highload-lab5-frontend Building +#1 [internal] load local bake definitions +#1 reading from stdin 4.07kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 30B 0.0s +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.2s + +#4 [frontend internal] load build definition from Dockerfile +#4 transferring dockerfile: 181B 0.0s done +#4 DONE 0.2s + +#5 [dispatcher internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#5 DONE 0.3s + +#6 [s3-bootstrap internal] load metadata for docker.io/library/debian:12.15-slim +#6 DONE 0.3s + +#7 [frontend internal] load metadata for docker.io/library/node:22-bookworm-slim +#7 DONE 0.3s + +#8 [upload-cleanup internal] load .dockerignore +#8 transferring context: 268B 0.0s done +#8 DONE 0.0s + +#9 [migrate internal] load build context +#9 DONE 0.0s + +#10 [frontend internal] load .dockerignore +#10 transferring context: 58B 0.0s done +#10 DONE 0.1s + +#11 [frontend internal] load build context +#11 DONE 0.0s + +#12 [frontend 1/5] FROM docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c +#12 resolve docker.io/library/node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c 0.0s done +#12 DONE 0.1s + +#13 [migrate stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#14 [api builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#14 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#14 DONE 0.1s + +#11 [frontend internal] load build context +#11 transferring context: 52.43kB 0.1s done +#11 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#15 [frontend 2/5] WORKDIR /app +#15 CACHED + +#16 [frontend 3/5] COPY package.json package-lock.json ./ +#16 CACHED + +#17 [frontend 4/5] RUN npm ci +#17 CACHED + +#18 [frontend 5/5] COPY . . +#18 DONE 0.1s + +#9 [dispatcher internal] load build context +#9 ... + +#13 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#13 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#13 DONE 0.0s + +#19 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#19 DONE 0.7s + +#20 [s3 internal] load .dockerignore +#20 transferring context: 2B 0.0s done +#20 DONE 0.0s + +#9 [dispatcher internal] load build context +#9 ... + +#21 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#21 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#21 DONE 0.1s + +#22 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#22 CACHED + +#23 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#23 CACHED + +#24 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#24 CACHED + +#25 [s3 builder 2/4] WORKDIR /source +#25 CACHED + +#26 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#26 CACHED + +#9 [dispatcher internal] load build context +#9 ... + +#27 [s3] exporting to image +#27 exporting layers done +#27 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#27 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#27 exporting attestation manifest sha256:f17f70a2cc8d039c5a632c627f96195ab23ffa1494da49fec73c164838c4a7b9 0.0s done +#27 exporting manifest list sha256:59fff13fb809ddef5dc80ec6aaf8dca9299c72f8aee4b92c6e7182d4eeeed965 0.0s done +#27 naming to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#27 DONE 0.2s + +#9 [dispatcher internal] load build context +#9 transferring context: 5.91kB 0.6s done +#9 DONE 0.7s + +#28 [api builder 4/7] COPY go.mod go.sum ./ +#28 CACHED + +#29 [api stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#29 CACHED + +#30 [api builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#30 CACHED + +#31 [api stage-1 3/4] WORKDIR /app +#31 CACHED + +#32 [api builder 3/7] WORKDIR /src +#32 CACHED + +#33 [api builder 5/7] RUN go mod download +#33 CACHED + +#34 [api builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#34 CACHED + +#35 [api builder 6/7] COPY backend ./backend +#35 CACHED + +#36 [api stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#36 CACHED + +#37 [frontend] exporting to image +#37 exporting layers 0.2s done +#37 exporting manifest sha256:73b71b407a7bf37075db6c8eee18238a1d3e9483a0e12ee7790a9a0e48ec177e 0.0s done +#37 exporting config sha256:f057716a7bcd77c32014c7983908cb759eb3b8f590ccc870904b5c0d344ef491 0.0s done +#37 exporting attestation manifest sha256:687fd8cfa95fc5b0bb96e4b52c6582a8c647acd5db72935ae500ef33ca933ed1 0.0s done +#37 exporting manifest list sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a 0.0s done +#37 naming to docker.io/library/highload-lab5-frontend:latest done +#37 unpacking to docker.io/library/highload-lab5-frontend:latest 0.1s done +#37 DONE 0.5s + +#38 [upload-cleanup] exporting to image +#38 exporting layers done +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 +#38 exporting manifest sha256:ce535db22854efbb79b8d1cd7316fb509d7d7e3b869dbc5ba974ccdb3b9209f1 0.2s done +#38 exporting config sha256:af768ece665a7dfd5374d7d662db0265798fde4691f459851f428816fe1f1eb6 0.0s done +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 +#38 exporting attestation manifest sha256:82c4e0c5e55162b0214b6cf87a2e7370d78b944236f7e5f50a51c89381602736 0.1s done +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 +#38 exporting manifest list sha256:142c4b46c3a05c6c2717206d88d104186dc14506ff4ae9aac06af30835aef3f6 0.1s done +#38 naming to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 unpacking to docker.io/library/highload-lab5-upload-cleanup:latest 0.0s done +#38 DONE 0.8s + +#39 [worker] exporting to image +#39 exporting layers done +#39 exporting manifest sha256:cf7cf73631f1d0a5a25afb7129209fa9399b8bbc6f1367aeb6e42cec05dc9483 0.2s done +#39 exporting config sha256:b36bf2b3650174d60a10c6ad199d1fde36141f1bdf5ef67c09e492496dff1f1f 0.0s done +#39 exporting attestation manifest sha256:04b1229530e97861a141d28f85583f173f91122d4d7af3705aa5b577d456678e 0.1s done +#39 exporting manifest list sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf 0.1s done +#39 naming to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 unpacking to docker.io/library/highload-lab5-worker:latest 0.0s done +#39 DONE 0.7s + +#40 [api] exporting to image +#40 exporting layers done +#40 exporting manifest sha256:47b7e293f718614b87199540988e2f103d1f6019ea2dd025ce15a54ac3dea12e 0.2s done +#40 exporting config sha256:0a88cc4d39b2b62fe839ef90e4522301218e0d2318910f4cda3d23db25b97fa0 0.0s done +#40 exporting attestation manifest sha256:9e8332eff13626175af9b8135ec577dbc48da9023d700de5186264593d219530 0.1s done +#40 exporting manifest list sha256:aeabc52dabc2b640f6add82210514c4af247057d6b81465fa8c4ff31f5fb861c 0.1s done +#40 naming to docker.io/library/highload-lab5-api:latest 0.0s done +#40 unpacking to docker.io/library/highload-lab5-api:latest 0.0s done +#40 DONE 0.8s + +#41 [migrate] exporting to image +#41 exporting layers done +#41 exporting manifest sha256:233bdaed13d575160da47ad9cbaaed3166c5170aec3210b366e707663ba3ef16 0.2s done +#41 exporting config sha256:65349f42d03a23c69768f9cb49f18ca6fb32c70270bad876ad080bcb6f27d4c7 0.0s done +#41 exporting attestation manifest sha256:f254812b65e6b3bcd58916e24b8ad9cb1016d8b07f620b4eecfb9463a6e6755e 0.1s done +#41 exporting manifest list sha256:b48236d7ed947e0382851c6c98ecf6452db1f50a3a623520b17930aa038222b9 0.1s done +#41 naming to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 unpacking to docker.io/library/highload-lab5-migrate:latest 0.0s done +#41 DONE 0.8s + +#42 [s3-bootstrap] exporting to image +#42 exporting layers done +#42 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 0.2s done +#42 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 0.0s done +#42 exporting attestation manifest sha256:0248b50fc0ca4617a11ab2d045f451a41b9acb14822660e810463dc12f76bc2d 0.1s done +#42 exporting manifest list sha256:47f35628bf56ba752070daeffc00d99212be166865cca5d865f04f6bde0215f2 0.1s done +#42 naming to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#42 DONE 0.8s + +#43 [dispatcher] exporting to image +#43 exporting layers done +#43 exporting manifest sha256:bfdd81e07d1cc137c3ce6d0777e9d6452d58a30c098e9a70b14bffc9e2237519 0.2s done +#43 exporting config sha256:84061bfc1fc38f60b683d04abdc006ed0c236002228b6ee1815e74c347db0ee1 0.0s done +#43 exporting attestation manifest sha256:9275e30a52b262d5464092423ad970aed6b2d8a454bcab62fdc1ff2791ca8def 0.1s done +#43 exporting manifest list sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af 0.1s done +#43 naming to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 unpacking to docker.io/library/highload-lab5-dispatcher:latest 0.0s done +#43 DONE 0.8s + +#44 [s3] resolving provenance for metadata file +#44 DONE 0.0s + +#45 [frontend] resolving provenance for metadata file +#45 DONE 0.0s + +#46 [worker] resolving provenance for metadata file +#46 DONE 0.1s + +#47 [upload-cleanup] resolving provenance for metadata file +#47 DONE 0.2s + +#48 [s3-bootstrap] resolving provenance for metadata file +#48 DONE 0.1s + +#49 [dispatcher] resolving provenance for metadata file +#49 DONE 0.1s + +#50 [migrate] resolving provenance for metadata file +#50 DONE 0.2s + +#51 [api] resolving provenance for metadata file +#51 DONE 0.0s + Image highload-lab5-worker Built + Image highload-lab5-frontend Built + Image highload-lab5-upload-cleanup Built + Image highload-lab5-dispatcher Built + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Image highload-lab5-migrate Built + Image highload-lab5-api Built + Container highload-lab5-api-1 Running + Container highload-lab5-api-2 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-frontend-1 Recreate + Container highload-lab5-frontend-1 Recreated + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-migrate-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Starting + Container highload-lab5-frontend-1 Started + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-worker-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-frontend-1 Healthy +```` + +## experiment + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe experiment --campaign /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/evidence/idempotency/main-20261105T183859Z-d93b7abf` + +Exit code: 0; время: 15.012 с. + +[Полный вывод](runs/20261105T203108.038394Z/experiment.txt) + +````text +{ + "campaign": "evidence/idempotency/main-20261105T183859Z-d93b7abf", + "completed": 135, + "checked_variant_files": 585, + "outcome": "supported_in_tested_conditions", + "violations": 0, + "oom": 0, + "protocol_sha256": "4ab95bbdab42e5ecdba6edcf9e2935742665c27b67b2f13cf9c75a7499a0910c", + "source_archive_verified": true +} + +| Сценарий | Случаи | Время сценария min / median / max, с | +| --- | --- | --- | +| control | 15 | 15.81 / 18.27 / 22.30 | +| duplicates | 15 | 24.61 / 27.11 / 30.24 | +| reorder | 15 | 20.60 / 23.33 / 26.74 | +| commit_publish_gap | 15 | 15.99 / 21.31 / 23.19 | +| crash_before_effect | 15 | 47.25 / 50.14 / 55.15 | +| crash_after_effect | 15 | 43.77 / 49.49 / 55.31 | +| crash_before_ack | 15 | 17.95 / 20.63 / 23.86 | +| old_after_v2 | 15 | 23.76 / 24.75 / 29.65 | +| stale_lease | 15 | 23.31 / 24.19 / 26.26 | +```` + +## backend + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml --profile test run --rm --build backend-tests` + +Exit code: 0; время: 190.535 с. + +[Полный вывод](runs/20261105T203108.038394Z/backend.txt) + +````text + Image highload-lab5-s3 Building + Image highload-lab5-s3-bootstrap Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.08kB done +#1 DONE 0.0s + +#2 [s3-bootstrap internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [s3 internal] load build definition from minio.Dockerfile +#3 transferring dockerfile: 1.01kB 0.0s done +#3 DONE 0.1s + +#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#4 DONE 0.1s + +#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim +#5 DONE 0.1s + +#6 [s3-bootstrap internal] load .dockerignore +#6 transferring context: 268B 0.0s done +#6 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 DONE 0.0s + +#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#9 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm +#10 DONE 0.5s + +#11 [s3 internal] load .dockerignore +#11 transferring context: 2B 0.0s done +#11 DONE 0.0s + +#7 [s3-bootstrap internal] load build context +#7 ... + +#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 +#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done +#8 DONE 0.0s + +#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 +#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done +#12 DONE 0.0s + +#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio . +#13 CACHED + +#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data +#14 CACHED + +#15 [s3 builder 2/4] WORKDIR /source +#15 CACHED + +#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD +#16 CACHED + +#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio +#17 CACHED + +#7 [s3-bootstrap internal] load build context +#7 ... + +#18 [s3] exporting to image +#18 exporting layers done +#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done +#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done +#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done +#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done +#18 naming to docker.io/library/highload-lab5-s3:latest done +#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done +#18 DONE 0.2s + +#7 [s3-bootstrap internal] load build context +#7 transferring context: 5.91kB 0.6s done +#7 DONE 0.7s + +#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app +#19 CACHED + +#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#20 CACHED + +#21 [s3-bootstrap builder 3/7] WORKDIR /src +#21 CACHED + +#22 [s3-bootstrap builder 5/7] RUN go mod download +#22 CACHED + +#23 [s3-bootstrap stage-1 3/4] WORKDIR /app +#23 CACHED + +#24 [s3-bootstrap builder 6/7] COPY backend ./backend +#24 CACHED + +#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#25 CACHED + +#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./ +#26 CACHED + +#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED] +#27 CACHED + +#28 [s3] resolving provenance for metadata file +#28 DONE 0.0s + +#29 [s3-bootstrap] exporting to image +#29 exporting layers done +#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done +#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done +#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 +#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done +#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done +#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done +#29 DONE 0.2s + +#30 [s3-bootstrap] resolving provenance for metadata file +#30 DONE 0.0s + Image highload-lab5-s3 Built + Image highload-lab5-s3-bootstrap Built + Container highload-lab5-redis-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Image highload-lab5-backend-tests Building +#1 [internal] load local bake definitions +#1 reading from stdin 1.58kB done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile +#2 transferring dockerfile: 869B 0.0s done +#2 DONE 0.1s + +#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm +#3 DONE 0.0s + +#4 [internal] load .dockerignore +#4 transferring context: +#4 transferring context: 268B 0.0s done +#4 DONE 0.1s + +#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f +#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done +#5 DONE 0.0s + +#6 [internal] load build context +#6 transferring context: 5.91kB 0.5s done +#6 DONE 0.5s + +#7 [builder 6/7] COPY backend ./backend +#7 CACHED + +#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* +#8 CACHED + +#9 [builder 3/7] WORKDIR /src +#9 CACHED + +#10 [builder 4/7] COPY go.mod go.sum ./ +#10 CACHED + +#11 [builder 5/7] RUN go mod download +#11 CACHED + +#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend +#12 CACHED + +#13 exporting to image +#13 exporting layers done +#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done +#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done +#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done +#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done +#13 naming to docker.io/library/highload-lab5-backend-tests:latest done +#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done +#13 DONE 0.1s + +#14 resolving provenance for metadata file +#14 DONE 0.0s + Image highload-lab5-backend-tests Built + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-db-1 Healthy + Container highload-lab5-backend-tests-run-00fc96550868 Creating + Container highload-lab5-backend-tests-run-00fc96550868 Created +? [REDACTED]/src/backend [no test files] +? [REDACTED]/src/backend/app [no test files] +? [REDACTED]/src/backend/commands [no test files] +? [REDACTED]/src/backend/handlers [no test files] +? [REDACTED]/src/backend/internal/faults [no test files] +? [REDACTED]/src/backend/repositories [no test files] +? [REDACTED]/src/backend/services [no test files] +=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry +--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s) +=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted +--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s) +=== RUN TestAttachmentValidationHTTP +--- PASS: TestAttachmentValidationHTTP (2.74s) +=== RUN TestAttachmentAccessHTTP +--- PASS: TestAttachmentAccessHTTP (4.50s) +=== RUN TestUploadRecoveryHTTPDisconnect +--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s) +=== RUN TestAttachmentImageValidation +--- PASS: TestAttachmentImageValidation (0.01s) +=== RUN TestAttachmentFilenameValidation +--- PASS: TestAttachmentFilenameValidation (0.00s) +=== RUN TestAttachmentMessageRequiresStringText +--- PASS: TestAttachmentMessageRequiresStringText (0.69s) +=== RUN TestConcurrentMessageCreation +--- PASS: TestConcurrentMessageCreation (4.62s) +=== RUN TestConnectionFilesTakePrecedence +--- PASS: TestConnectionFilesTakePrecedence (0.05s) +=== RUN TestConfiguredIdempotencyTTL +--- PASS: TestConfiguredIdempotencyTTL (0.74s) +=== RUN TestInvalidIdempotencyTTL +--- PASS: TestInvalidIdempotencyTTL (0.00s) +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz +=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz +--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) + --- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s) +=== RUN TestChatCursorPreservesPosition +--- PASS: TestChatCursorPreservesPosition (0.00s) +=== RUN TestDirectUploadCleanupSafetyAndReplay +--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s) +=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey +--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s) +=== RUN TestDirectUploadAccessPermissionsAndLifecycle +--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s) +=== RUN TestDirectUploadAccessCORS +--- PASS: TestDirectUploadAccessCORS (0.00s) +=== RUN TestDirectUploadFlow +--- PASS: TestDirectUploadFlow (1.70s) +=== RUN TestDirectUploadValidationHTTP +--- PASS: TestDirectUploadValidationHTTP (1.02s) +=== RUN TestDirectUploadValidationContents +--- PASS: TestDirectUploadValidationContents (1.14s) +=== RUN TestDirectUploadAccess +--- PASS: TestDirectUploadAccess (1.64s) +=== RUN TestDirectUploadRecoveryConcurrentComplete +--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s) +=== RUN TestDirectUploadRecoveryFailures +=== RUN TestDirectUploadRecoveryFailures/copy-result-loss +=== RUN TestDirectUploadRecoveryFailures/get-failure +=== RUN TestDirectUploadRecoveryFailures/metadata-rejection +=== RUN TestDirectUploadRecoveryFailures/database-disconnect +--- PASS: TestDirectUploadRecoveryFailures (3.94s) + --- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s) + --- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s) + --- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s) + --- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s) +=== RUN TestDirectUploadRecoveryProcessExit +--- PASS: TestDirectUploadRecoveryProcessExit (0.95s) +=== RUN TestDirectUploadCrashHelper +--- PASS: TestDirectUploadCrashHelper (0.00s) +=== RUN TestDirectUploadRecoverySharedSlotAndCancellation +--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s) +=== RUN TestConcurrentRegistrationSameUsername +--- PASS: TestConcurrentRegistrationSameUsername (0.94s) +=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure +--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s) +=== RUN TestShortSessionTTLAndLogout + grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200 + grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s + grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401 + grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401 +--- PASS: TestShortSessionTTLAndLogout (2.83s) +=== RUN TestWrongPasswordAndLogoutHTTP +--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s) +=== RUN TestDependencyFailuresReturnUnavailable +redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused +--- PASS: TestDependencyFailuresReturnUnavailable (2.52s) +=== RUN TestHistoryQueryPlanAtTenThousandMessages +=== RUN TestHistoryQueryPlanAtTenThousandMessages/first + grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 4.29, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.028, + "Actual Total Time": 0.042, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 784.70, + "Plan Rows": 9999, + "Plan Width": 69, + "Actual Startup Time": 0.027, + "Actual Total Time": 0.036, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.141, + "Triggers": [ + ], + "Execution Time": 0.142 + } + ] +=== RUN TestHistoryQueryPlanAtTenThousandMessages/late + grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [ + { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.29, + "Total Cost": 14.48, + "Plan Rows": 51, + "Plan Width": 69, + "Actual Startup Time": 0.038, + "Actual Total Time": 0.050, + "Actual Rows": 51, + "Actual Loops": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 278.27, + "Plan Rows": 999, + "Plan Width": 69, + "Actual Startup Time": 0.037, + "Actual Total Time": 0.044, + "Actual Rows": 51, + "Actual Loops": 1, + "Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.096, + "Triggers": [ + ], + "Execution Time": 0.071 + } + ] +--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s) + --- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s) +=== RUN TestIdempotencyConcurrentStoresAndScopes +--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s) +=== RUN TestIdempotencyRecordFailureRollsBackMessage +--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s) +=== RUN TestMessengerWorkflow +--- PASS: TestMessengerWorkflow (1.07s) +=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts +--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s) +=== RUN TestRetryBackoffStaysInExponentialJitterWindow +--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s) +=== RUN TestDecodeJSONBodyRequiresExactFieldNames +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array +=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object +--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s) + --- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s) +=== RUN TestCreateMessageBlankText +--- PASS: TestCreateMessageBlankText (0.69s) +=== RUN TestCreateMessageFromChatOutsider +--- PASS: TestCreateMessageFromChatOutsider (1.05s) +=== RUN TestListMessagesPagination +--- PASS: TestListMessagesPagination (0.73s) +=== RUN TestListPageByChatUsesCursorAndLimit +--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s) +=== RUN TestListPageByChatReturnsNonNilEmptyPage +--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s) +=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2 +--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s) +=== RUN TestS3PermissionsAndBootstrap +--- PASS: TestS3PermissionsAndBootstrap (1.23s) +=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password +--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s) +=== RUN TestStoredPasswordUsesArgon2id +--- PASS: TestStoredPasswordUsesArgon2id (0.94s) +=== RUN TestBearerRequiredIgnoresXUserID +--- PASS: TestBearerRequiredIgnoresXUserID (0.00s) +=== RUN TestMessageCursorPreservesPosition +--- PASS: TestMessageCursorPreservesPosition (0.00s) +=== RUN TestUploadRecoveryAfterPutFailure +--- PASS: TestUploadRecoveryAfterPutFailure (1.10s) +=== RUN TestUploadRecoveryMetadataRejection +--- PASS: TestUploadRecoveryMetadataRejection (0.81s) +=== RUN TestUploadRecoveryDatabaseConnectionLoss +--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s) +=== RUN TestUploadRecoveryProcessExit +--- PASS: TestUploadRecoveryProcessExit (0.87s) +=== RUN TestUploadCrashHelper +--- PASS: TestUploadCrashHelper (0.00s) +=== RUN TestUploadRecoveryInterruptedBody +--- PASS: TestUploadRecoveryInterruptedBody (0.73s) +=== RUN TestUploadRecoveryWaitingCancellation +--- PASS: TestUploadRecoveryWaitingCancellation (0.82s) +=== RUN TestCreateUserInvalidJSON +--- PASS: TestCreateUserInvalidJSON (0.00s) +=== RUN TestCreateUserDuplicateUsername +--- PASS: TestCreateUserDuplicateUsername (1.11s) +=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving +--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s) +=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL +--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s) +=== RUN TestChatNormalizesMemberUUIDsHTTP +--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s) +PASS +ok [REDACTED]/src/backend/tests 65.615s +=== RUN TestThumbnailContract +=== RUN TestThumbnailContract/320x200 +=== RUN TestThumbnailContract/200x320 +=== RUN TestThumbnailContract/17x9 +=== RUN TestThumbnailContract/1000x1 +--- PASS: TestThumbnailContract (4.94s) + --- PASS: TestThumbnailContract/320x200 (0.49s) + --- PASS: TestThumbnailContract/200x320 (0.63s) + --- PASS: TestThumbnailContract/17x9 (0.12s) + --- PASS: TestThumbnailContract/1000x1 (3.71s) +=== RUN TestThumbnailAppliesEXIFOrientation +--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s) +=== RUN TestOptimizedBoundsAndCenteredCrop +--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s) +=== RUN TestVersionedRenderingHasDistinctImmutableResults +--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s) +PASS +ok [REDACTED]/src/backend/workers 12.271s +```` + +## restore + +Команда: `docker compose --project-name highload-lab5 --env-file .env -f compose.yml up -d --wait` + +Exit code: 0; время: 9.99 с. + +[Полный вывод](runs/20261105T203108.038394Z/restore.txt) + +````text + Container highload-lab5-dispatcher-1 Running + Container highload-lab5-api-1 Running + Container highload-lab5-worker-1 Running + Container highload-lab5-db-1 Running + Container highload-lab5-haproxy-1 Running + Container highload-lab5-broker-1 Running + Container highload-lab5-upload-cleanup-1 Running + Container highload-lab5-frontend-1 Running + Container highload-lab5-s3-1 Running + Container highload-lab5-redis-1 Running + Container highload-lab5-db-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-s3-1 Healthy + Container highload-lab5-s3-bootstrap-1 Starting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Starting + Container highload-lab5-s3-bootstrap-1 Started + Container highload-lab5-migrate-1 Started + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-db-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-redis-1 Healthy + Container highload-lab5-migrate-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Starting + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-api-2 Started + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-upload-cleanup-1 Waiting + Container highload-lab5-s3-bootstrap-1 Waiting + Container highload-lab5-api-2 Waiting + Container highload-lab5-api-1 Waiting + Container highload-lab5-dispatcher-1 Waiting + Container highload-lab5-migrate-1 Waiting + Container highload-lab5-s3-1 Waiting + Container highload-lab5-redis-1 Waiting + Container highload-lab5-worker-1 Waiting + Container highload-lab5-haproxy-1 Waiting + Container highload-lab5-frontend-1 Waiting + Container highload-lab5-db-1 Waiting + Container highload-lab5-broker-1 Waiting + Container highload-lab5-redis-1 Healthy + Container highload-lab5-db-1 Healthy + Container highload-lab5-s3-bootstrap-1 Exited + Container highload-lab5-migrate-1 Exited + Container highload-lab5-broker-1 Healthy + Container highload-lab5-worker-1 Healthy + Container highload-lab5-haproxy-1 Healthy + Container highload-lab5-frontend-1 Healthy + Container highload-lab5-upload-cleanup-1 Healthy + Container highload-lab5-dispatcher-1 Healthy + Container highload-lab5-s3-1 Healthy + Container highload-lab5-api-2 Healthy + Container highload-lab5-api-1 Healthy +```` + +## final-inventory + +Команда: `/usr/bin/python3 /mnt/c/projects/Highload-systems/mtusi2026lab5-fork/scripts/generate_evidence.py --probe inventory` + +Exit code: 0; время: 1.088 с. + +[Полный вывод](runs/20261105T203108.038394Z/final-inventory.txt) + +````text +[ + { + "id": "445d95f46622d282f22746b9d7f95349f87203ae39ccf38a38bc4b2b05cdf6f9", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:39:33.087411926Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e5c63dbda3e9d4d1f70be2964912287a001c145580f1afe01b418fe1f202ae71", + "service": "api", + "image": "sha256:149cea8cc916606dbab7db83dd50fc20817fe0169c08f59911a74e7207f8e1b4", + "status": "running", + "started": "2026-11-05T20:40:01.664449122Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "bc92b1ba8d74ac525636cd8b89443b0bf7541e3469a521959242c5d6b26c6f1e", + "service": "broker", + "image": "sha256:6431bbd0f22df99ace800138399367d7d6181442dfff09feb2795e15d4bd4b7a", + "status": "running", + "started": "2026-11-05T20:39:05.004194402Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_password", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/broker_user", + "name": null + }, + { + "type": "volume", + "target": "/var/lib/rabbitmq", + "name": "highload-lab5_rabbitmq_data" + } + ] + }, + { + "id": "f4a171ac1b1dabd85a39f6a8238ab7c956f0f93033f250473c0f20d6296b8071", + "service": "db", + "image": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74", + "status": "running", + "started": "2026-11-05T20:39:05.429117135Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/var/lib/postgresql/data", + "name": "highload-lab5_postgres_data" + } + ] + }, + { + "id": "8e4a830468653837f25cf69c9ebbcb6bb3f33b0513ff1ba56afb64216815ab26", + "service": "dispatcher", + "image": "sha256:d28fa8b90fd2232cd513b133056e2342cd97e69eb51df3db2dd60648883771af", + "status": "running", + "started": "2026-11-05T20:39:32.656018183Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "e675bf74b4f782ffb3a29a06efd1b2723736d8b6cfa03b3410814debe6770ac4", + "service": "frontend", + "image": "sha256:12ae5207a41f2db3de3bc821c62304ffd0a2f926672f6bc23a8e8c7195bc1e3a", + "status": "running", + "started": "2026-11-05T20:31:49.64993639Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/app", + "name": null + }, + { + "type": "volume", + "target": "/app/node_modules", + "name": "e540205aca165c4190107cc53c993d4a34f8e19b22713a1308085765187c09b2" + } + ] + }, + { + "id": "fad66818272a2ebc5ee8b4813abf8e208627f69f50bce891043bc46f5cee70d4", + "service": "haproxy", + "image": "sha256:5d97434a423c2533cfeb42874d45cf6d69a840b60334582dfbfd5008e94c80be", + "status": "running", + "started": "2026-11-05T20:18:12.1680072Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "healthy", + "mounts": [ + { + "type": "bind", + "target": "/usr/local/etc/haproxy/haproxy.cfg", + "name": null + } + ] + }, + { + "id": "675e1299d220f18e1e28b006230b7bdcbaaf452a4f011b294690cc0f707a00ba", + "service": "migrate", + "image": "sha256:7463772f11d383993bfa8c236a94cce2041760959f37ce50b95c8d2aa6aa89ae", + "status": "exited", + "started": "2026-11-05T20:40:00.201493606Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + } + ] + }, + { + "id": "871d12c2a01f079bf422c1d34ded972929ee0cd2ea59886470131b40cf526a09", + "service": "redis", + "image": "sha256:c6eabf748fc7a61dbb5a705c78bcf3d6377b1127a97d0ce965c11c44ba46896f", + "status": "running", + "started": "2026-11-05T20:39:03.965999351Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_redis_data" + } + ] + }, + { + "id": "da1af7b42c55695ed50ec2c43457ad054139871494aa9f32448d031594caba66", + "service": "s3", + "image": "sha256:0f021ce7ef7226beee253f40702b236d98a7288587b351507a37859dc8bec44f", + "status": "running", + "started": "2026-11-05T20:39:04.326554473Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": "healthy", + "mounts": [ + { + "type": "volume", + "target": "/data", + "name": "highload-lab5_s3_data" + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "2a33ef13f98876df7812f90550bb6c5bb4ca3e787907aaa690f4afc1549a5dbd", + "service": "s3-bootstrap", + "image": "sha256:79ef7f3371714dcf10c85eeeeae1d57d9027de67dc819f59baffc4bed1a6ee09", + "status": "exited", + "started": "2026-11-05T20:39:59.697007152Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 500000000, + "health": "unhealthy", + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_root_secret_access_key", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "713f3a5becf53ebbda08f07d19c73766cdafd9bc9cfcbaf694c96f4570857d65", + "service": "upload-cleanup", + "image": "sha256:d554daf7d5a2101d684a5b6467461aac07912fa191ab869235e4e10535d1bce4", + "status": "running", + "started": "2026-11-05T20:39:32.429570214Z", + "oom": false, + "memory": 134217728, + "nano_cpus": 250000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + }, + { + "id": "1fc4cf5941f64cd809f8e26b41552c6a7ef6d34b287837fa85679367938e5033", + "service": "worker", + "image": "sha256:888fca1f40f26dd129e91e4d3929964aa7552bb27ea3b1fca1fc7b1cdffe41cf", + "status": "running", + "started": "2026-11-05T20:39:32.591401394Z", + "oom": false, + "memory": 536870912, + "nano_cpus": 1000000000, + "health": null, + "mounts": [ + { + "type": "bind", + "target": "/run/secrets/broker_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/cache_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/database_url", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_access_key_id", + "name": null + }, + { + "type": "bind", + "target": "/run/secrets/s3_secret_access_key", + "name": null + } + ] + } +] +````