ЛР 4: вложения в S3 и двусторонняя сверка хранилищ
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Проверка двусторонней сверки
|
||||
|
||||
Понадобится новая копия проекта, Docker с Compose, Python 3.9+ и OpenSSL.
|
||||
Перед экспериментом убедитесь, что выбранные порты свободны.
|
||||
|
||||
```sh
|
||||
export LAB4_HTTP_PORT=18096 LAB4_POSTGRES_PORT=15496
|
||||
export LAB4_CLEANUP_DRY_RUN=true
|
||||
sh scripts/init-local.sh
|
||||
docker compose -p lab4-final-grade5 --env-file .env up -d --build --wait
|
||||
python3 student-tests/lab4/reconcile_experiment.py \
|
||||
--stack "$PWD" --project lab4-final-grade5 \
|
||||
--base-url http://127.0.0.1:18096 --output /tmp/lab4-reconcile
|
||||
docker compose -p lab4-final-grade5 --env-file .env down --volumes
|
||||
```
|
||||
|
||||
Эксперимент требует отдельный свежий стенд: он удаляет строки и файлы
|
||||
синтетических участников, затем заполняет тестовые данные для замера. Рабочий
|
||||
grace составляет 10 минут. Для воспроизводимости тест сокращает его до
|
||||
4 секунд в сценариях ошибок и 1 секунды в замерах без ошибок.
|
||||
|
||||
[Журнал эксперимента](experiment.txt) · [Счётчики и время всех проходов](reconcile.json)
|
||||
· [Сборка и запуск](compose-build.txt) · [Миграции 1–6](migrate.txt)
|
||||
|
||||
Повторная проверка на Go 1.27.1 / Docker Compose 2.39.4:
|
||||
[make check](check.txt) · [smoke](smoke.txt) · [перезапуск](persistence.txt)
|
||||
· [failover](failover.txt) · [Go с PostgreSQL и Redis](go.txt).
|
||||
Полный Go-прогон выполнен на чистой копии со всеми настройками PostgreSQL и Redis. Для Go-тестов дополнительный Compose override публиковал Redis только на loopback. Хуки перезапуска обращались к выделенному Redis и этому же проекту.
|
||||
|
||||
Повтор аварийной уборки на чистой версии: [результаты](compensation.json) · [события](compensation-events.jsonl).
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,26 @@
|
||||
{"event": "sql_isolation", "time_utc": "2026-11-15T08:49:07Z", "time_utc_ms": "2026-11-15T08:49:07.400+00:00", "value": "read committed"}
|
||||
{"detail": "", "elapsed_seconds": 1.369, "event": "case", "name": "setup", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:49:07Z", "time_utc_ms": "2026-11-15T08:49:07.556+00:00"}
|
||||
{"dry_run": true, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:18Z", "time_utc_ms": "2026-11-15T08:49:18.502+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:20Z", "time_utc_ms": "2026-11-15T08:49:20.726+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:22Z", "time_utc_ms": "2026-11-15T08:49:22.489+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:23Z", "time_utc_ms": "2026-11-15T08:49:23.325+00:00"}
|
||||
{"applied": true, "dry_run_kept": true, "event": "retention", "fresh_preserved": true, "held_keys_preserved": true, "keys": {"commit": "attachments/cleanup-2020d04dc6-busy-commit", "fresh": "attachments/cleanup-2020d04dc6-fresh", "linked": "attachments/2b6a237d-3e88-44fe-bd1b-d50f36be2e29", "orphan": "attachments/cleanup-2020d04dc6-orphan", "outside": "other/cleanup-2020d04dc6", "rowless": "attachments/cleanup-2020d04dc6-busy-rollback", "unlinked": "attachments/c7c9db8e-3ccd-4499-985d-ffd1858f5a58"}, "last_modified": {"attachments/2b6a237d-3e88-44fe-bd1b-d50f36be2e29": "2026-11-15T08:49:07.589000+00:00", "attachments/c7c9db8e-3ccd-4499-985d-ffd1858f5a58": "2026-11-15T08:49:07.567000+00:00", "attachments/cleanup-2020d04dc6-busy-commit": "2026-11-15T08:49:08.408000+00:00", "attachments/cleanup-2020d04dc6-busy-rollback": "2026-11-15T08:49:08.555000+00:00", "attachments/cleanup-2020d04dc6-orphan": "2026-11-15T08:49:08.081000+00:00", "other/cleanup-2020d04dc6": "2026-11-15T08:49:08.227000+00:00"}, "referenced_after_lock": true, "referenced_preserved": true, "repeated": true, "rowless_after_lock_deleted": true, "time_utc": "2026-11-15T08:49:23Z", "time_utc_ms": "2026-11-15T08:49:23.557+00:00"}
|
||||
{"detail": "", "elapsed_seconds": 16.001, "event": "case", "name": "retention", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:49:23Z", "time_utc_ms": "2026-11-15T08:49:23.557+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:24Z", "time_utc_ms": "2026-11-15T08:49:24.957+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:33Z", "time_utc_ms": "2026-11-15T08:49:33.961+00:00"}
|
||||
{"deleted_after_grace": true, "event": "after_s3_before_db", "http_status": 500, "key": "attachments/0623c85b-59c3-4915-9ce9-b9deb8ca257a", "last_modified": "2026-11-15T08:49:23.855000+00:00", "rows": 0, "survived_young": true, "time_utc": "2026-11-15T08:49:34Z", "time_utc_ms": "2026-11-15T08:49:34.174+00:00"}
|
||||
{"detail": "", "elapsed_seconds": 10.617, "event": "case", "name": "fault_after_put", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:49:34Z", "time_utc_ms": "2026-11-15T08:49:34.175+00:00"}
|
||||
{"bytes_declared": 111817, "bytes_sent": 256, "event": "client_disconnect", "objects_created": 0, "rows": 0, "subsequent_status": 201, "time_utc": "2026-11-15T08:49:35Z", "time_utc_ms": "2026-11-15T08:49:35.279+00:00"}
|
||||
{"detail": "", "elapsed_seconds": 1.104, "event": "case", "name": "aborted_body", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:49:35Z", "time_utc_ms": "2026-11-15T08:49:35.279+00:00"}
|
||||
{"api": "f9bf1d922ba338cfa81fce5a3e4dae7707e6003329d91fe8fd2fa16afed68fa6", "api_ip": "172.19.0.5", "backend_pid": 46, "event": "kill_boundary", "insert_waiting": true, "key": "attachments/7675f167-66f7-44aa-bb3f-d82345b21919", "row_count": 0, "time_utc": "2026-11-15T08:49:36Z", "time_utc_ms": "2026-11-15T08:49:36.588+00:00"}
|
||||
{"api": "f9bf1d922ba338cfa81fce5a3e4dae7707e6003329d91fe8fd2fa16afed68fa6", "backend_wait_before_unblock": "advisory", "client_connection_check_interval": "0", "event": "sigkill", "exit_code": 137, "signal": 9, "time_utc": "2026-11-15T08:49:37Z", "time_utc_ms": "2026-11-15T08:49:37.153+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:38Z", "time_utc_ms": "2026-11-15T08:49:38.156+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:46Z", "time_utc_ms": "2026-11-15T08:49:46.142+00:00"}
|
||||
{"api": "f9bf1d922ba338cfa81fce5a3e4dae7707e6003329d91fe8fd2fa16afed68fa6", "backend_released": true, "client": {"error": "Failure"}, "event": "killed_api", "key": "attachments/7675f167-66f7-44aa-bb3f-d82345b21919", "old_deleted": true, "rows": 0, "time_utc": "2026-11-15T08:49:46Z", "time_utc_ms": "2026-11-15T08:49:46.321+00:00", "young_preserved": true}
|
||||
{"detail": "", "elapsed_seconds": 11.341, "event": "case", "name": "killed_api_after_put", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:49:46Z", "time_utc_ms": "2026-11-15T08:49:46.622+00:00"}
|
||||
{"dry_run": false, "event": "one_shot", "exit_code": 0, "grace_seconds": 8, "time_utc": "2026-11-15T08:49:56Z", "time_utc_ms": "2026-11-15T08:49:56.506+00:00"}
|
||||
{"downstream_bytes": 0, "event": "lost_response", "key": "attachments/c52011a2-c360-458e-a806-c1d37a1a9ffd", "rows": 1, "sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75", "survived_apply": true, "time_utc": "2026-11-15T08:49:56Z", "time_utc_ms": "2026-11-15T08:49:56.539+00:00", "upstream_status": 201}
|
||||
{"detail": "", "elapsed_seconds": 9.917, "event": "case", "name": "lost_response", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:49:56Z", "time_utc_ms": "2026-11-15T08:49:56.539+00:00"}
|
||||
{"deleted_seconds": 8.679, "event": "periodic", "key": "attachments/cleanup-2020d04dc6-periodic", "time_utc": "2026-11-15T08:50:05Z", "time_utc_ms": "2026-11-15T08:50:05.441+00:00"}
|
||||
{"during": "EXISTS", "event": "sigterm", "exit_code": 0, "key": "attachments/cleanup-2020d04dc6-signal", "lock_released": true, "restart_deleted": true, "time_utc": "2026-11-15T08:50:16Z", "time_utc_ms": "2026-11-15T08:50:16.194+00:00"}
|
||||
{"detail": "", "elapsed_seconds": 19.777, "event": "case", "name": "periodic_sigterm", "requirement": "requested_operational_check", "status": "PASS", "time_utc": "2026-11-15T08:50:16Z", "time_utc_ms": "2026-11-15T08:50:16.319+00:00"}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"aborted_body": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 1.104,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"fault_after_put": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 10.617,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"killed_api_after_put": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 11.341,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"lost_response": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 9.917,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"periodic_sigterm": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 19.777,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"retention": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 16.001,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"setup": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 1.369,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.51kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [migrate internal] load build definition from Dockerfile.migrate
|
||||
#2 transferring dockerfile: 448B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [attachment-cleanup internal] load build definition from Dockerfile
|
||||
#3 transferring dockerfile: 855B done
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [migrate internal] load metadata for docker.io/library/golang:1.27.1-alpine
|
||||
#4 DONE 2.6s
|
||||
|
||||
#5 [attachment-cleanup internal] load metadata for docker.io/library/alpine:3.22
|
||||
#5 DONE 2.6s
|
||||
|
||||
#6 [api internal] load .dockerignore
|
||||
#6 transferring context: 196B done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [migrate builder 1/9] FROM docker.io/library/golang:1.27.1-alpine@sha256:8a5910f31396cd4d89662f56c68b3ae31d374308270a1c3bd96672ee5ed43414
|
||||
#7 resolve docker.io/library/golang:1.27.1-alpine@sha256:8a5910f31396cd4d89662f56c68b3ae31d374308270a1c3bd96672ee5ed43414 0.0s done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [migrate runtime 1/3] FROM docker.io/library/alpine:3.22@sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f
|
||||
#8 resolve docker.io/library/alpine:3.22@sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [migrate internal] load build context
|
||||
#9 transferring context: 41.50kB done
|
||||
#9 DONE 0.0s
|
||||
|
||||
#10 [migrate builder 4/7] RUN go mod download
|
||||
#10 CACHED
|
||||
|
||||
#11 [migrate builder 3/7] COPY go.mod go.sum ./
|
||||
#11 CACHED
|
||||
|
||||
#12 [migrate builder 5/7] COPY cmd/migrate/ ./cmd/migrate/
|
||||
#12 CACHED
|
||||
|
||||
#13 [attachment-cleanup internal] load build context
|
||||
#13 transferring context: 138.51kB 0.0s done
|
||||
#13 DONE 0.0s
|
||||
|
||||
#14 [api builder 2/9] WORKDIR /app
|
||||
#14 CACHED
|
||||
|
||||
#15 [api builder 3/9] COPY go.mod go.sum ./
|
||||
#15 CACHED
|
||||
|
||||
#16 [api builder 4/9] RUN go mod download
|
||||
#16 CACHED
|
||||
|
||||
#17 [api builder 5/9] COPY cmd/api/ ./cmd/api/
|
||||
#17 CACHED
|
||||
|
||||
#18 [migrate builder 6/7] COPY db/migrations/ ./db/migrations/
|
||||
#18 DONE 0.0s
|
||||
|
||||
#19 [api builder 6/9] COPY cmd/attachment-cleanup/ ./cmd/attachment-cleanup/
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 [api builder 7/9] COPY internal/ ./internal/
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 [api builder 8/9] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
#21 ...
|
||||
|
||||
#22 [migrate builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /app/migrate ./cmd/migrate
|
||||
#22 DONE 19.9s
|
||||
|
||||
#21 [api builder 8/9] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
#21 ...
|
||||
|
||||
#23 [migrate runtime 2/3] RUN addgroup -S app && adduser -S app -G app
|
||||
#23 CACHED
|
||||
|
||||
#24 [migrate runtime 3/3] WORKDIR /app
|
||||
#24 CACHED
|
||||
|
||||
#23 [attachment-cleanup runtime 2/3] RUN addgroup -S app && adduser -S app -G app
|
||||
#23 CACHED
|
||||
|
||||
#25 [migrate stage-1 4/4] COPY --from=builder /app/migrate ./migrate
|
||||
#25 DONE 0.3s
|
||||
|
||||
#21 [api builder 8/9] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
#21 ...
|
||||
|
||||
#26 [migrate] exporting to image
|
||||
#26 exporting layers
|
||||
#26 exporting layers 1.1s done
|
||||
#26 exporting manifest sha256:f4b196e5c4d235b5593dfdf9fcc9f7f3943bdf78a380d9cbf703449ec1fd730a 0.0s done
|
||||
#26 exporting config sha256:4194b73a1ba046593f5e0d4a8dc79c9f0a1ac5ced1c2ff9f29fbf6d765ebebe3 0.1s done
|
||||
#26 exporting attestation manifest sha256:5c34cb23b4efd9767c126fb43a0a87b63a436ee2299436d38a65183fba7f47e0 0.0s done
|
||||
#26 exporting manifest list sha256:f78bc60117392a76f0f177361994171d58d74cf218a30eae6cb6a998de7654bf
|
||||
#26 exporting manifest list sha256:f78bc60117392a76f0f177361994171d58d74cf218a30eae6cb6a998de7654bf done
|
||||
#26 naming to docker.io/library/lab4-final-grade5-migrate:latest done
|
||||
#26 unpacking to docker.io/library/lab4-final-grade5-migrate:latest 0.1s done
|
||||
#26 DONE 1.4s
|
||||
|
||||
#21 [api builder 8/9] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
#21 ...
|
||||
|
||||
#27 [migrate] resolving provenance for metadata file
|
||||
#27 DONE 0.1s
|
||||
|
||||
#21 [api builder 8/9] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/api
|
||||
#21 DONE 39.9s
|
||||
|
||||
#28 [attachment-cleanup builder 9/9] RUN CGO_ENABLED=0 GOOS=linux go build -o /app/attachment-cleanup ./cmd/attachment-cleanup
|
||||
#28 DONE 1.5s
|
||||
|
||||
#29 [attachment-cleanup cleanup 1/1] COPY --from=builder /app/attachment-cleanup ./attachment-cleanup
|
||||
#29 DONE 0.0s
|
||||
|
||||
#30 [api api 1/1] COPY --from=builder /app/server ./server
|
||||
#30 DONE 0.1s
|
||||
|
||||
#31 [attachment-cleanup] exporting to image
|
||||
#31 exporting layers
|
||||
#31 exporting layers 0.6s done
|
||||
#31 exporting manifest sha256:2ac7bb862c98bfad9f7c17ef0df831bcaff7de5aa8448fa674e823fdc4e45606
|
||||
#31 exporting manifest sha256:2ac7bb862c98bfad9f7c17ef0df831bcaff7de5aa8448fa674e823fdc4e45606 done
|
||||
#31 exporting config sha256:1d3c8c064add7ba3996ddaf974bbf81ae95af4cea677816405d7002dbd2c1577 done
|
||||
#31 exporting attestation manifest sha256:a578b63ee12ddd77fef902967a1c135df5e179486c652f31ca589124d398cfd7 0.0s done
|
||||
#31 exporting manifest list sha256:720d441943e7f9a8c89dd2e1e275c1a5c0e748973b2e00f0d5f80dae0f375883 0.0s done
|
||||
#31 naming to docker.io/library/lab4-final-grade5-attachment-cleanup:latest done
|
||||
#31 unpacking to docker.io/library/lab4-final-grade5-attachment-cleanup:latest 0.1s done
|
||||
#31 DONE 0.7s
|
||||
|
||||
#32 [attachment-cleanup] resolving provenance for metadata file
|
||||
#32 DONE 0.0s
|
||||
|
||||
#33 [api] exporting to image
|
||||
#33 exporting layers 0.6s done
|
||||
#33 exporting manifest sha256:09bff2b9862296c85b67d43968c0ac6b704bcdae387f9d57a90b60373ba7789b done
|
||||
#33 exporting config sha256:fbd04f42a1ccb2f2cd4e4c51686ac0bf3ef02cd4d37a252cb0236858a476f511 done
|
||||
#33 exporting attestation manifest sha256:2185a5dd97b2281771aafe47e1c3ad0a097eb6d1c14f2782e0c8021d1fb17a65 0.0s done
|
||||
#33 exporting manifest list sha256:4cb2ecb3a51c6ad66a581c9169662d17eb5c6f9fd183ebcefdd87d3b7caf51c8 0.0s done
|
||||
#33 naming to docker.io/library/lab4-final-grade5-api:latest done
|
||||
#33 unpacking to docker.io/library/lab4-final-grade5-api:latest 0.1s done
|
||||
#33 DONE 0.8s
|
||||
|
||||
#34 [api] resolving provenance for metadata file
|
||||
#34 DONE 0.0s
|
||||
lab4-final-grade5-migrate Built
|
||||
lab4-final-grade5-api Built
|
||||
lab4-final-grade5-attachment-cleanup Built
|
||||
Network lab4-final-grade5_default Creating
|
||||
Network lab4-final-grade5_default Created
|
||||
Volume lab4-final-grade5_postgres_data Creating
|
||||
Volume lab4-final-grade5_postgres_data Created
|
||||
Volume lab4-final-grade5_redis_data Creating
|
||||
Volume lab4-final-grade5_redis_data Created
|
||||
Volume lab4-final-grade5_rustfs_data Creating
|
||||
Volume lab4-final-grade5_rustfs_data Created
|
||||
Container lab4-final-grade5-redis-1 Creating
|
||||
Container lab4-final-grade5-s3-1 Creating
|
||||
Container lab4-final-grade5-postgres-1 Creating
|
||||
Container lab4-final-grade5-s3-1 Created
|
||||
Container lab4-final-grade5-s3-init-1 Creating
|
||||
Container lab4-final-grade5-redis-1 Created
|
||||
Container lab4-final-grade5-postgres-1 Created
|
||||
Container lab4-final-grade5-migrate-1 Creating
|
||||
Container lab4-final-grade5-s3-init-1 Created
|
||||
Container lab4-final-grade5-migrate-1 Created
|
||||
Container lab4-final-grade5-attachment-cleanup-1 Creating
|
||||
Container lab4-final-grade5-api-2 Creating
|
||||
Container lab4-final-grade5-api-1 Creating
|
||||
Container lab4-final-grade5-api-1 Created
|
||||
Container lab4-final-grade5-api-2 Created
|
||||
Container lab4-final-grade5-lb-1 Creating
|
||||
Container lab4-final-grade5-attachment-cleanup-1 Created
|
||||
Container lab4-final-grade5-lb-1 Created
|
||||
Container lab4-final-grade5-s3-1 Starting
|
||||
Container lab4-final-grade5-postgres-1 Starting
|
||||
Container lab4-final-grade5-redis-1 Starting
|
||||
Container lab4-final-grade5-postgres-1 Started
|
||||
Container lab4-final-grade5-postgres-1 Waiting
|
||||
Container lab4-final-grade5-redis-1 Started
|
||||
Container lab4-final-grade5-s3-1 Started
|
||||
Container lab4-final-grade5-s3-1 Waiting
|
||||
Container lab4-final-grade5-postgres-1 Healthy
|
||||
Container lab4-final-grade5-migrate-1 Starting
|
||||
Container lab4-final-grade5-s3-1 Healthy
|
||||
Container lab4-final-grade5-s3-init-1 Starting
|
||||
Container lab4-final-grade5-migrate-1 Started
|
||||
Container lab4-final-grade5-s3-init-1 Started
|
||||
Container lab4-final-grade5-redis-1 Waiting
|
||||
Container lab4-final-grade5-postgres-1 Waiting
|
||||
Container lab4-final-grade5-migrate-1 Waiting
|
||||
Container lab4-final-grade5-s3-init-1 Waiting
|
||||
Container lab4-final-grade5-migrate-1 Waiting
|
||||
Container lab4-final-grade5-s3-init-1 Waiting
|
||||
Container lab4-final-grade5-postgres-1 Waiting
|
||||
Container lab4-final-grade5-redis-1 Healthy
|
||||
Container lab4-final-grade5-s3-init-1 Exited
|
||||
Container lab4-final-grade5-migrate-1 Exited
|
||||
Container lab4-final-grade5-postgres-1 Healthy
|
||||
Container lab4-final-grade5-s3-init-1 Exited
|
||||
Container lab4-final-grade5-migrate-1 Exited
|
||||
Container lab4-final-grade5-attachment-cleanup-1 Starting
|
||||
Container lab4-final-grade5-postgres-1 Healthy
|
||||
Container lab4-final-grade5-api-2 Starting
|
||||
Container lab4-final-grade5-api-2 Started
|
||||
Container lab4-final-grade5-api-1 Starting
|
||||
Container lab4-final-grade5-attachment-cleanup-1 Started
|
||||
Container lab4-final-grade5-api-1 Started
|
||||
Container lab4-final-grade5-api-2 Waiting
|
||||
Container lab4-final-grade5-api-1 Waiting
|
||||
Container lab4-final-grade5-api-2 Healthy
|
||||
Container lab4-final-grade5-api-1 Healthy
|
||||
Container lab4-final-grade5-lb-1 Starting
|
||||
Container lab4-final-grade5-lb-1 Started
|
||||
Container lab4-final-grade5-redis-1 Waiting
|
||||
Container lab4-final-grade5-api-2 Waiting
|
||||
Container lab4-final-grade5-api-1 Waiting
|
||||
Container lab4-final-grade5-lb-1 Waiting
|
||||
Container lab4-final-grade5-attachment-cleanup-1 Waiting
|
||||
Container lab4-final-grade5-s3-init-1 Waiting
|
||||
Container lab4-final-grade5-s3-1 Waiting
|
||||
Container lab4-final-grade5-postgres-1 Waiting
|
||||
Container lab4-final-grade5-migrate-1 Waiting
|
||||
Container lab4-final-grade5-attachment-cleanup-1 Healthy
|
||||
Container lab4-final-grade5-redis-1 Healthy
|
||||
Container lab4-final-grade5-lb-1 Healthy
|
||||
Container lab4-final-grade5-migrate-1 Exited
|
||||
Container lab4-final-grade5-postgres-1 Healthy
|
||||
Container lab4-final-grade5-s3-init-1 Exited
|
||||
Container lab4-final-grade5-s3-1 Healthy
|
||||
Container lab4-final-grade5-api-2 Healthy
|
||||
Container lab4-final-grade5-api-1 Healthy
|
||||
@@ -0,0 +1 @@
|
||||
PASS: bidirectional reconciliation, preservation, repeated apply, and cost profiles
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18096"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 114, "failed_attempts": 1, "first_recovery_seconds": 2.788}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,507 @@
|
||||
? highload/cmd/api [no test files]
|
||||
? highload/cmd/attachment-cleanup [no test files]
|
||||
=== RUN TestConnectionSecretErrorsAreSafe
|
||||
=== RUN TestConnectionSecretErrorsAreSafe/missing
|
||||
=== RUN TestConnectionSecretErrorsAreSafe/empty
|
||||
=== RUN TestConnectionSecretErrorsAreSafe/malformed
|
||||
--- PASS: TestConnectionSecretErrorsAreSafe (0.01s)
|
||||
--- PASS: TestConnectionSecretErrorsAreSafe/missing (0.00s)
|
||||
--- PASS: TestConnectionSecretErrorsAreSafe/empty (0.00s)
|
||||
--- PASS: TestConnectionSecretErrorsAreSafe/malformed (0.00s)
|
||||
=== RUN TestEmbeddedMigrationsAreVersionedAndCollectable
|
||||
--- PASS: TestEmbeddedMigrationsAreVersionedAndCollectable (0.00s)
|
||||
=== RUN TestUnlockHasBudgetEvenWithDetachedContext
|
||||
--- PASS: TestUnlockHasBudgetEvenWithDetachedContext (0.00s)
|
||||
=== RUN TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL
|
||||
--- PASS: TestPostgresMigrationsRepeatWithoutChangingDataOrLoggingSQL (0.14s)
|
||||
=== RUN TestPostgresConcurrentMigratorsApplyEachVersionOnce
|
||||
--- PASS: TestPostgresConcurrentMigratorsApplyEachVersionOnce (1.06s)
|
||||
=== RUN TestPostgresMigrationFailureRollsBackAndPreservesCause
|
||||
--- PASS: TestPostgresMigrationFailureRollsBackAndPreservesCause (0.04s)
|
||||
=== RUN TestPostgresMigrationThreeDownTwoDownOneAndReapply
|
||||
--- PASS: TestPostgresMigrationThreeDownTwoDownOneAndReapply (0.12s)
|
||||
PASS
|
||||
ok highload/cmd/migrate 2.263s
|
||||
? highload/db/migrations [no test files]
|
||||
? highload/internal/config [no test files]
|
||||
? highload/internal/database [no test files]
|
||||
? highload/internal/database/sqlc [no test files]
|
||||
? highload/internal/model [no test files]
|
||||
? highload/internal/repository [no test files]
|
||||
? highload/internal/repository/postgres [no test files]
|
||||
? highload/internal/repository/redis [no test files]
|
||||
? highload/internal/security [no test files]
|
||||
? highload/internal/service [no test files]
|
||||
? highload/internal/storage [no test files]
|
||||
? highload/internal/storage/s3 [no test files]
|
||||
? highload/internal/transport/http [no test files]
|
||||
? highload/internal/transport/http/handler [no test files]
|
||||
? highload/internal/transport/http/httputils [no test files]
|
||||
? highload/internal/transport/http/middleware [no test files]
|
||||
=== RUN TestAttachmentCleanupPagesAndCutoff
|
||||
--- PASS: TestAttachmentCleanupPagesAndCutoff (0.00s)
|
||||
=== RUN TestAttachmentCleanupFaults
|
||||
=== RUN TestAttachmentCleanupFaults/list
|
||||
=== RUN TestAttachmentCleanupFaults/exists
|
||||
=== RUN TestAttachmentCleanupFaults/delete
|
||||
=== RUN TestAttachmentCleanupFaults/list_timeout
|
||||
=== RUN TestAttachmentCleanupFaults/pass_timeout
|
||||
=== RUN TestAttachmentCleanupFaults/canceled
|
||||
--- PASS: TestAttachmentCleanupFaults (0.00s)
|
||||
--- PASS: TestAttachmentCleanupFaults/list (0.00s)
|
||||
--- PASS: TestAttachmentCleanupFaults/exists (0.00s)
|
||||
--- PASS: TestAttachmentCleanupFaults/delete (0.00s)
|
||||
--- PASS: TestAttachmentCleanupFaults/list_timeout (0.00s)
|
||||
--- PASS: TestAttachmentCleanupFaults/pass_timeout (0.00s)
|
||||
--- PASS: TestAttachmentCleanupFaults/canceled (0.00s)
|
||||
=== RUN TestAttachmentCleanupS3InvalidNextToken
|
||||
=== RUN TestAttachmentCleanupS3InvalidNextToken/missing
|
||||
=== RUN TestAttachmentCleanupS3InvalidNextToken/empty
|
||||
=== RUN TestAttachmentCleanupS3InvalidNextToken/repeat
|
||||
--- PASS: TestAttachmentCleanupS3InvalidNextToken (0.00s)
|
||||
--- PASS: TestAttachmentCleanupS3InvalidNextToken/missing (0.00s)
|
||||
--- PASS: TestAttachmentCleanupS3InvalidNextToken/empty (0.00s)
|
||||
--- PASS: TestAttachmentCleanupS3InvalidNextToken/repeat (0.00s)
|
||||
=== RUN TestAttachmentTxLockAndRollback
|
||||
=== RUN TestAttachmentTxLockAndRollback/callback_error
|
||||
attachment_tx_test.go:160: INSERT ran at read committed, rollback left zero rows and released the lock
|
||||
=== RUN TestAttachmentTxLockAndRollback/context_canceled
|
||||
attachment_tx_test.go:160: INSERT ran at read committed, rollback left zero rows and released the lock
|
||||
--- PASS: TestAttachmentTxLockAndRollback (0.10s)
|
||||
--- PASS: TestAttachmentTxLockAndRollback/callback_error (0.01s)
|
||||
--- PASS: TestAttachmentTxLockAndRollback/context_canceled (0.00s)
|
||||
=== RUN TestAttachmentTxHTTP
|
||||
=== RUN TestAttachmentTxHTTP/s3_unavailable
|
||||
2026/11/15 11:47:25 ERROR request failed error="service unavailable: object storage unavailable: operation error S3: PutObject, https response error StatusCode: 503, RequestID: , HostID: , api error SlowDown: Synthetic outage" request_id=4410ba4d-b703-4050-beba-e9c9ddb4942c status=503 code=unavailable
|
||||
attachment_tx_test.go:288: direct handler HTTP 503; committed rows=0; DELETE=0
|
||||
=== RUN TestAttachmentTxHTTP/insert_after_put
|
||||
2026/11/15 11:47:25 ERROR request failed error="server error: database error: ERROR: new row for relation \"attachments\" violates check constraint \"attachments_filename_check1\" (SQLSTATE 23514)" request_id=55830874-e46a-4622-ba4a-24bd2712a3d7 status=500 code=internal_error
|
||||
attachment_tx_test.go:288: direct handler HTTP 500; committed rows=0; DELETE=0
|
||||
=== RUN TestAttachmentTxHTTP/commit_after_insert
|
||||
2026/11/15 11:47:25 ERROR request failed error="server error: database error: ERROR: synthetic deferred failure (SQLSTATE P0001)" request_id=61ebcff4-daf1-43ed-98b0-b305c659a3e4 status=500 code=internal_error
|
||||
attachment_tx_test.go:288: direct handler HTTP 500; committed rows=0; DELETE=0
|
||||
=== RUN TestAttachmentTxHTTP/committed_upload_and_get
|
||||
attachment_tx_test.go:315: HTTP 201, committed rows=1, GET metadata/content=200, SHA-256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
--- PASS: TestAttachmentTxHTTP (0.23s)
|
||||
--- PASS: TestAttachmentTxHTTP/s3_unavailable (0.06s)
|
||||
--- PASS: TestAttachmentTxHTTP/insert_after_put (0.05s)
|
||||
--- PASS: TestAttachmentTxHTTP/commit_after_insert (0.05s)
|
||||
--- PASS: TestAttachmentTxHTTP/committed_upload_and_get (0.06s)
|
||||
=== RUN TestStorageAuthHandlerRejectsJSONBody
|
||||
--- PASS: TestStorageAuthHandlerRejectsJSONBody (0.12s)
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits
|
||||
budgets_test.go:96: budget_policy=provisional_3000ms; teacher has no numeric threshold; approval remains pending
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget
|
||||
2026/11/15 11:47:27 ERROR request failed error="service unavailable: database unavailable: timeout: context deadline exceeded" request_id=af0ade91-2c05-446b-881f-5085da4a638a status=503 code=unavailable
|
||||
2026/11/15 11:47:27 INFO http request method=GET path=/api/v1/users/me status=503 duration=1.002822167s request_id=af0ade91-2c05-446b-881f-5085da4a638a
|
||||
budgets_test.go:130: mode=blocked_query scenario=application_budget elapsed_ms=1003.015 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false
|
||||
2026/11/15 11:47:27 INFO http request method=GET path=/api/v1/users/me status=200 duration=18.338542ms request_id=2bccce82-b04e-48c0-b75d-10a5ea07e12d
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline
|
||||
2026/11/15 11:47:27 ERROR request failed error="service unavailable: database unavailable: timeout: context deadline exceeded" request_id=767c833b-b621-4e15-b2ca-18b9a3165ef5 status=503 code=unavailable
|
||||
2026/11/15 11:47:27 INFO http request method=GET path=/api/v1/users/me status=503 duration=150.605583ms request_id=767c833b-b621-4e15-b2ca-18b9a3165ef5
|
||||
budgets_test.go:130: mode=blocked_query scenario=shorter_caller_deadline elapsed_ms=150.686 caller_deadline_ms=150 budget_ms=3000 caller_canceled=true
|
||||
2026/11/15 11:47:27 INFO http request method=GET path=/api/v1/users/me status=200 duration=5.120542ms request_id=71588141-78a7-4c05-b5f4-92282e58feb7
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget
|
||||
2026/11/15 11:47:27 INFO http request method=GET path=/api/v1/users/me status=200 duration=103.494542ms request_id=e42ec7f1-3162-4691-ad92-8b3b6b78821f
|
||||
budgets_test.go:130: mode=blocked_query scenario=released_before_budget elapsed_ms=103.631 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false
|
||||
2026/11/15 11:47:27 INFO http request method=GET path=/api/v1/users/me status=200 duration=845.375µs request_id=8c8f48e9-e829-4355-8d25-987223cf4d2e
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget
|
||||
2026/11/15 11:47:29 ERROR request failed error="service unavailable: database unavailable: context deadline exceeded" request_id=6c0366cf-55fe-42d7-9f74-f64646887a94 status=503 code=unavailable
|
||||
2026/11/15 11:47:29 INFO http request method=GET path=/api/v1/users/me status=503 duration=1.003118167s request_id=6c0366cf-55fe-42d7-9f74-f64646887a94
|
||||
budgets_test.go:130: mode=exhausted_pool scenario=application_budget elapsed_ms=1003.262 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false
|
||||
2026/11/15 11:47:29 INFO http request method=GET path=/api/v1/users/me status=200 duration=15.015958ms request_id=9b2a8a8d-e656-4c03-9bd0-376a97d1521e
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline
|
||||
2026/11/15 11:47:29 ERROR request failed error="service unavailable: database unavailable: context deadline exceeded" request_id=c5e50fb3-3d35-4b17-9d06-552520839462 status=503 code=unavailable
|
||||
2026/11/15 11:47:29 INFO http request method=GET path=/api/v1/users/me status=503 duration=150.302291ms request_id=c5e50fb3-3d35-4b17-9d06-552520839462
|
||||
budgets_test.go:130: mode=exhausted_pool scenario=shorter_caller_deadline elapsed_ms=150.378 caller_deadline_ms=150 budget_ms=3000 caller_canceled=true
|
||||
2026/11/15 11:47:29 INFO http request method=GET path=/api/v1/users/me status=200 duration=4.709083ms request_id=c6d568e7-75c2-473f-83db-d4feb7004ad7
|
||||
=== RUN TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget
|
||||
2026/11/15 11:47:29 INFO http request method=GET path=/api/v1/users/me status=200 duration=104.233375ms request_id=e5c4c586-9fd8-499c-9478-66077e6d72b4
|
||||
budgets_test.go:130: mode=exhausted_pool scenario=released_before_budget elapsed_ms=104.332 caller_deadline_ms=5000 budget_ms=3000 caller_canceled=false
|
||||
2026/11/15 11:47:29 INFO http request method=GET path=/api/v1/users/me status=200 duration=1.092834ms request_id=140de8ac-41b5-4d0d-9cc7-d6f4d1bc4b18
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits (4.02s)
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits/blocked_query/application_budget (1.24s)
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits/blocked_query/shorter_caller_deadline (0.40s)
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits/blocked_query/released_before_budget (0.33s)
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits/exhausted_pool/application_budget (1.27s)
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits/exhausted_pool/shorter_caller_deadline (0.42s)
|
||||
--- PASS: TestPostgresOperationsHaveBoundedWaits/exhausted_pool/released_before_budget (0.36s)
|
||||
=== RUN TestPostgresChatCancellationBeforeCommitIsAtomic
|
||||
--- PASS: TestPostgresChatCancellationBeforeCommitIsAtomic (0.35s)
|
||||
=== RUN TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe
|
||||
--- PASS: TestErrorDiagnosticsRecordedOnceAndPublicResponseIsSafe (0.00s)
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/no_rows
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/duplicate
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/eof
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/deadline
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/unexpected_eof
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/closed_connection
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/connection_refused
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/database_dns_missing
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sql_syntax
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/unexpected
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_eof
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01
|
||||
=== RUN TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/no_rows (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/duplicate (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/eof (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/deadline (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/unexpected_eof (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/closed_connection (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/connection_refused (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/database_dns_missing (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sql_syntax (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/unexpected (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_53300 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P03 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_08006 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_08001 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P01 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/sqlstate_57P02 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_no_rows (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_duplicate (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_eof (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_deadline (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected_eof (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_closed_connection (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_connection_refused (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_database_dns_missing (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sql_syntax (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_unexpected (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_53300 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P03 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08006 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_08001 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P01 (0.00s)
|
||||
--- PASS: TestErrorDatabaseCategoryReachesHTTP/wrapped_sqlstate_57P02 (0.00s)
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/eof
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/deadline
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/closed_connection
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/connection_refused
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01
|
||||
=== RUN TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/eof (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/deadline (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/unexpected_eof (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/closed_connection (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/connection_refused (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/database_dns_missing (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_53300 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P03 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08006 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_08001 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P01 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/sqlstate_57P02 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_eof (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_deadline (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_unexpected_eof (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_closed_connection (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_connection_refused (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_database_dns_missing (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_53300 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P03 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08006 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_08001 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P01 (0.00s)
|
||||
--- PASS: TestErrorUnavailableSQLLoginKeepsCategory/wrapped_sqlstate_57P02 (0.00s)
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/no_rows
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/eof
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/deadline
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/unexpected
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01
|
||||
=== RUN TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/no_rows (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/eof (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/deadline (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/unexpected_eof (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/closed_connection (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/connection_refused (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/database_dns_missing (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sql_syntax (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/unexpected (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_53300 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P03 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08006 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_08001 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P01 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/sqlstate_57P02 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_no_rows (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_eof (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_deadline (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected_eof (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_closed_connection (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_connection_refused (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_database_dns_missing (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sql_syntax (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_unexpected (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_53300 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P03 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08006 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_08001 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P01 (0.00s)
|
||||
--- PASS: TestErrorChatMemberLookupKeepsOperationMeaning/wrapped_sqlstate_57P02 (0.00s)
|
||||
=== RUN TestErrorMissingBasicPrecedesForbiddenBody
|
||||
--- PASS: TestErrorMissingBasicPrecedesForbiddenBody (0.00s)
|
||||
=== RUN TestRedisLogoutPersistenceDiagnostic
|
||||
logout_diagnostic_test.go:133: logout samples=51 pool_wait_count=0 wait_ns=0 pool_timeouts=0 final_busy=0
|
||||
--- PASS: TestRedisLogoutPersistenceDiagnostic (13.24s)
|
||||
=== RUN TestMessageAttachmentsSingleIDServiceRegression
|
||||
=== RUN TestMessageAttachmentsSingleIDServiceRegression/single_attachment_without_panic
|
||||
=== RUN TestMessageAttachmentsSingleIDServiceRegression/identical_uppercase_body_replay
|
||||
--- PASS: TestMessageAttachmentsSingleIDServiceRegression (0.00s)
|
||||
--- PASS: TestMessageAttachmentsSingleIDServiceRegression/single_attachment_without_panic (0.00s)
|
||||
--- PASS: TestMessageAttachmentsSingleIDServiceRegression/identical_uppercase_body_replay (0.00s)
|
||||
=== RUN TestMessageAttachmentsTextCompatibility
|
||||
--- PASS: TestMessageAttachmentsTextCompatibility (0.10s)
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_0
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_1
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_2
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_3
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_4
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_5
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_6
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_7
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_8
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_9
|
||||
=== RUN TestMessageAttachmentsOnlyAndOrderZeroToTen/count_10
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen (0.64s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_0 (0.08s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_1 (0.06s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_2 (0.06s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_3 (0.05s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_4 (0.05s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_5 (0.06s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_6 (0.05s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_7 (0.06s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_8 (0.06s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_9 (0.06s)
|
||||
--- PASS: TestMessageAttachmentsOnlyAndOrderZeroToTen/count_10 (0.05s)
|
||||
=== RUN TestMessageAttachmentsInvalidReferencesAreAtomic
|
||||
=== RUN TestMessageAttachmentsInvalidReferencesAreAtomic/unknown_id
|
||||
=== RUN TestMessageAttachmentsInvalidReferencesAreAtomic/attachment_from_other_chat
|
||||
=== RUN TestMessageAttachmentsInvalidReferencesAreAtomic/foreign_chat
|
||||
--- PASS: TestMessageAttachmentsInvalidReferencesAreAtomic (0.21s)
|
||||
--- PASS: TestMessageAttachmentsInvalidReferencesAreAtomic/unknown_id (0.05s)
|
||||
--- PASS: TestMessageAttachmentsInvalidReferencesAreAtomic/attachment_from_other_chat (0.05s)
|
||||
--- PASS: TestMessageAttachmentsInvalidReferencesAreAtomic/foreign_chat (0.10s)
|
||||
=== RUN TestMessageAttachmentsInvalidListLeavesNoRows
|
||||
=== RUN TestMessageAttachmentsInvalidListLeavesNoRows/duplicate
|
||||
=== RUN TestMessageAttachmentsInvalidListLeavesNoRows/eleven
|
||||
--- PASS: TestMessageAttachmentsInvalidListLeavesNoRows (0.11s)
|
||||
--- PASS: TestMessageAttachmentsInvalidListLeavesNoRows/duplicate (0.05s)
|
||||
--- PASS: TestMessageAttachmentsInvalidListLeavesNoRows/eleven (0.05s)
|
||||
=== RUN TestMessageAttachmentsIdempotencyIncludesListAndOrder
|
||||
--- PASS: TestMessageAttachmentsIdempotencyIncludesListAndOrder (0.12s)
|
||||
=== RUN TestMessageAttachmentsConcurrentReplayDoesNotMultiplyLinks
|
||||
--- PASS: TestMessageAttachmentsConcurrentReplayDoesNotMultiplyLinks (0.08s)
|
||||
=== RUN TestMessageAttachmentsLinkFailureRollsBackEverything
|
||||
--- PASS: TestMessageAttachmentsLinkFailureRollsBackEverything (0.07s)
|
||||
=== RUN TestPasswordRoundTripAndRandomSalt
|
||||
--- PASS: TestPasswordRoundTripAndRandomSalt (0.54s)
|
||||
=== RUN TestPasswordDoesNotTruncateLongUTF8
|
||||
--- PASS: TestPasswordDoesNotTruncateLongUTF8 (0.22s)
|
||||
=== RUN TestPasswordWhitespaceIsSignificant
|
||||
--- PASS: TestPasswordWhitespaceIsSignificant (0.15s)
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/plaintext
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/missing_param
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/hash_empty
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/salt_empty
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/extra_field
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/negative
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/non_numeric
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/empty
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/missing_version
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/huge_threads
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/zero_threads
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/huge_memory
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/wrong_version
|
||||
=== RUN TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic (0.07s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/plaintext (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/wrong_algorithm (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/huge_iterations (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/missing_param (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/hash_empty (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/hash_wrong_size (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/salt_wrong_size (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/salt_empty (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/extra_field (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/zero_iterations (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/negative (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/non_numeric (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/empty (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/missing_version (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/tiny_memory (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/huge_threads (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/zero_threads (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/huge_memory (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/hash_bad_base64 (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/wrong_version (0.00s)
|
||||
--- PASS: TestMalformedPasswordHashRejectedWithoutPanic/salt_bad_base64 (0.00s)
|
||||
=== RUN TestRedisAddressIsAnAddressNotAFile
|
||||
--- PASS: TestRedisAddressIsAnAddressNotAFile (0.00s)
|
||||
=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout
|
||||
=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced
|
||||
=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced
|
||||
=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply
|
||||
=== RUN TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure
|
||||
--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout (0.83s)
|
||||
--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/local_not_fsynced (0.21s)
|
||||
--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/only_replica_fsynced (0.21s)
|
||||
--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/malformed_reply (0.21s)
|
||||
--- PASS: TestRedisUnconfirmedAOFNeverReturnsSuccessfulLogout/command_failure (0.21s)
|
||||
=== RUN TestRedisSessionHasTTLAndReadsDoNotExtendIt
|
||||
--- PASS: TestRedisSessionHasTTLAndReadsDoNotExtendIt (0.13s)
|
||||
=== RUN TestRedisExpiredAndUnknownSessionsAreNotFound
|
||||
--- PASS: TestRedisExpiredAndUnknownSessionsAreNotFound (0.36s)
|
||||
=== RUN TestRedisLogoutOnlyRemovesSelectedSession
|
||||
--- PASS: TestRedisLogoutOnlyRemovesSelectedSession (1.03s)
|
||||
=== RUN TestRedisSessionsSurviveActualRestartWithoutExtendingTTL
|
||||
--- PASS: TestRedisSessionsSurviveActualRestartWithoutExtendingTTL (7.59s)
|
||||
=== RUN TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout
|
||||
--- PASS: TestRedisActiveSessionSurvivesRestartIndependentlyOfLogout (6.18s)
|
||||
=== RUN TestRedisUnavailableKeepsUnavailableCategory
|
||||
=== RUN TestRedisUnavailableKeepsUnavailableCategory/create
|
||||
redis: 2026/11/15 11:48:02 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused
|
||||
=== RUN TestRedisUnavailableKeepsUnavailableCategory/read
|
||||
redis: 2026/11/15 11:48:02 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused
|
||||
=== RUN TestRedisUnavailableKeepsUnavailableCategory/logout
|
||||
redis: 2026/11/15 11:48:03 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused
|
||||
redis: 2026/11/15 11:48:03 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused
|
||||
--- PASS: TestRedisUnavailableKeepsUnavailableCategory (1.71s)
|
||||
--- PASS: TestRedisUnavailableKeepsUnavailableCategory/create (0.42s)
|
||||
--- PASS: TestRedisUnavailableKeepsUnavailableCategory/read (0.41s)
|
||||
--- PASS: TestRedisUnavailableKeepsUnavailableCategory/logout (0.41s)
|
||||
=== RUN TestRedisCriticalOutageHTTPAndReadiness
|
||||
=== RUN TestRedisCriticalOutageHTTPAndReadiness/liveness
|
||||
=== RUN TestRedisCriticalOutageHTTPAndReadiness/readiness
|
||||
redis: 2026/11/15 11:48:04 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused
|
||||
=== RUN TestRedisCriticalOutageHTTPAndReadiness/protected_request
|
||||
redis: 2026/11/15 11:48:04 pool.go:770: redis: connection pool: failed to dial after 5 attempts: dial tcp: connection refused
|
||||
--- PASS: TestRedisCriticalOutageHTTPAndReadiness (0.97s)
|
||||
--- PASS: TestRedisCriticalOutageHTTPAndReadiness/liveness (0.00s)
|
||||
--- PASS: TestRedisCriticalOutageHTTPAndReadiness/readiness (0.41s)
|
||||
--- PASS: TestRedisCriticalOutageHTTPAndReadiness/protected_request (0.41s)
|
||||
=== RUN TestRedisPublicHTTPContractIsUnchanged
|
||||
=== RUN TestRedisPublicHTTPContractIsUnchanged/teacher_smoke
|
||||
=== RUN TestRedisPublicHTTPContractIsUnchanged/auth_normal
|
||||
--- PASS: TestRedisPublicHTTPContractIsUnchanged (7.92s)
|
||||
--- PASS: TestRedisPublicHTTPContractIsUnchanged/teacher_smoke (1.58s)
|
||||
--- PASS: TestRedisPublicHTTPContractIsUnchanged/auth_normal (6.28s)
|
||||
=== RUN TestRedisHTTPFullRestartKeepsDeadlineAndRevocation
|
||||
=== RUN TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only
|
||||
=== RUN TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked
|
||||
--- PASS: TestRedisHTTPFullRestartKeepsDeadlineAndRevocation (33.04s)
|
||||
--- PASS: TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_only (15.91s)
|
||||
--- PASS: TestRedisHTTPFullRestartKeepsDeadlineAndRevocation/active_and_revoked (17.13s)
|
||||
=== RUN TestStoragePasswordIsKDFAndDuplicateCannotOverwrite
|
||||
--- PASS: TestStoragePasswordIsKDFAndDuplicateCannotOverwrite (0.38s)
|
||||
=== RUN TestStorageSessionHashAndReconnectPreserveDeadline
|
||||
--- PASS: TestStorageSessionHashAndReconnectPreserveDeadline (0.20s)
|
||||
=== RUN TestStorageWrongCredentialsNeverCreateSession
|
||||
--- PASS: TestStorageWrongCredentialsNeverCreateSession (0.18s)
|
||||
=== RUN TestStorageRevocationIsPersistentAndSessionSpecific
|
||||
--- PASS: TestStorageRevocationIsPersistentAndSessionSpecific (1.35s)
|
||||
=== RUN TestStorageExpiredSessionCannotRevive
|
||||
--- PASS: TestStorageExpiredSessionCannotRevive (0.25s)
|
||||
=== RUN TestStorageShortTTLExpiresAndReLoginWorks
|
||||
--- PASS: TestStorageShortTTLExpiresAndReLoginWorks (2.43s)
|
||||
=== RUN TestStorageChatRollbackAfterMemberInsertFailure
|
||||
--- PASS: TestStorageChatRollbackAfterMemberInsertFailure (0.14s)
|
||||
=== RUN TestSQLUnavailableLoginStopsBeforeSessionCreation
|
||||
--- PASS: TestSQLUnavailableLoginStopsBeforeSessionCreation (0.00s)
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04
|
||||
=== RUN TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError (0.00s)
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed (0.00s)
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#01 (0.00s)
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#02 (0.00s)
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#03 (0.00s)
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#04 (0.00s)
|
||||
--- PASS: TestMiddlewareMalformedAuthWritesExactlyOneError/malformed#05 (0.00s)
|
||||
=== RUN TestStorageHTTPAuthRoutingAndLogout
|
||||
--- PASS: TestStorageHTTPAuthRoutingAndLogout (0.86s)
|
||||
PASS
|
||||
ok highload/student-tests/auth_tests 86.386s
|
||||
@@ -0,0 +1,7 @@
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.287184423Z","level":"INFO","msg":"migration applied","file":"00001_init_schema.sql","version":1,"duration_seconds":0.010336709}
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.287565965Z","level":"INFO","msg":"migration applied","file":"00002_add_created_at_defaults.sql","version":2,"duration_seconds":0.000999708}
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.28757859Z","level":"INFO","msg":"migration applied","file":"00003_drop_session_table.sql","version":3,"duration_seconds":0.003952625}
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.287583923Z","level":"INFO","msg":"migration applied","file":"00004_message_idempotency.sql","version":4,"duration_seconds":0.0022235}
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.287588381Z","level":"INFO","msg":"migration applied","file":"00005_attachments.sql","version":5,"duration_seconds":0.008834}
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.287592048Z","level":"INFO","msg":"migration applied","file":"00006_allow_attachment_only_messages.sql","version":6,"duration_seconds":0.0015365}
|
||||
migrate-1 | {"time":"2026-11-15T08:47:02.287596715Z","level":"INFO","msg":"migrations completed","applied":6,"duration_seconds":0.060165208}
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18096"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"width": 6500,
|
||||
"height": 6200,
|
||||
"encoded_bytes": 39249,
|
||||
"upload_status": 413
|
||||
}
|
||||
@@ -0,0 +1,333 @@
|
||||
{
|
||||
"faults": {
|
||||
"injected": [
|
||||
"delete PostgreSQL row",
|
||||
"delete S3 object",
|
||||
"S3 connection refused"
|
||||
],
|
||||
"dry_run": {
|
||||
"dry_run": true,
|
||||
"duration_ms": 31,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 4,
|
||||
"checked_in_db": 3,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 1,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 1,
|
||||
"rows_scanned": 3,
|
||||
"s3_head_attempts": 3,
|
||||
"missing_objects": 1,
|
||||
"missing_attachment_ids": [
|
||||
"0d3b9f77-50a9-4d31-90fa-2d25b4cd613e"
|
||||
]
|
||||
},
|
||||
"wall_ms": 607.98
|
||||
},
|
||||
"bad_backup_rejected": {
|
||||
"dry_run": false,
|
||||
"duration_ms": 8,
|
||||
"complete": false,
|
||||
"wall_ms": 685.91
|
||||
},
|
||||
"restore_dry_run": {
|
||||
"dry_run": true,
|
||||
"duration_ms": 14,
|
||||
"complete": true,
|
||||
"restore": "would_restore",
|
||||
"wall_ms": 603.21
|
||||
},
|
||||
"restore": {
|
||||
"dry_run": false,
|
||||
"duration_ms": 22,
|
||||
"complete": true,
|
||||
"restore": "restored",
|
||||
"wall_ms": 431.95
|
||||
},
|
||||
"repeat_restore": {
|
||||
"dry_run": false,
|
||||
"duration_ms": 12,
|
||||
"complete": true,
|
||||
"restore": "already_present",
|
||||
"wall_ms": 430.94
|
||||
},
|
||||
"conditional_existing_put_status": 412,
|
||||
"apply": {
|
||||
"dry_run": false,
|
||||
"duration_ms": 190,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 5,
|
||||
"checked_in_db": 3,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 1,
|
||||
"objects_deleted": 1
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 1,
|
||||
"rows_scanned": 3,
|
||||
"s3_head_attempts": 3,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 689.99
|
||||
},
|
||||
"repeat": {
|
||||
"dry_run": false,
|
||||
"duration_ms": 59,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 3,
|
||||
"checked_in_db": 2,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 1,
|
||||
"rows_scanned": 3,
|
||||
"s3_head_attempts": 3,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 653.52
|
||||
},
|
||||
"s3_outage": {
|
||||
"dry_run": true,
|
||||
"duration_ms": 107,
|
||||
"complete": false,
|
||||
"missing_scan": {
|
||||
"db_pages": 0,
|
||||
"rows_scanned": 0,
|
||||
"s3_head_attempts": 0,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 869.21
|
||||
},
|
||||
"fresh_preserved": true,
|
||||
"linked_preserved": true,
|
||||
"unlinked_preserved": true,
|
||||
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"message_and_metadata_preserved": true,
|
||||
"outsider_status": 404
|
||||
},
|
||||
"cost": [
|
||||
{
|
||||
"synthetic_pairs": 30,
|
||||
"measured_pairs": 33,
|
||||
"runs": [
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 82,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 33,
|
||||
"checked_in_db": 33,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 1,
|
||||
"rows_scanned": 33,
|
||||
"s3_head_attempts": 33,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 1791.83
|
||||
},
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 100,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 33,
|
||||
"checked_in_db": 33,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 1,
|
||||
"rows_scanned": 33,
|
||||
"s3_head_attempts": 33,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 588.31
|
||||
},
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 32,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 33,
|
||||
"checked_in_db": 33,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 1,
|
||||
"rows_scanned": 33,
|
||||
"s3_head_attempts": 33,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 572.91
|
||||
}
|
||||
],
|
||||
"median_scan_ms": 82
|
||||
},
|
||||
{
|
||||
"synthetic_pairs": 230,
|
||||
"measured_pairs": 233,
|
||||
"runs": [
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 227,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 233,
|
||||
"checked_in_db": 233,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 2,
|
||||
"rows_scanned": 233,
|
||||
"s3_head_attempts": 233,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 826.69
|
||||
},
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 132,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 233,
|
||||
"checked_in_db": 233,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 2,
|
||||
"rows_scanned": 233,
|
||||
"s3_head_attempts": 233,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 591.24
|
||||
},
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 147,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 1,
|
||||
"objects_scanned": 233,
|
||||
"checked_in_db": 233,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 2,
|
||||
"rows_scanned": 233,
|
||||
"s3_head_attempts": 233,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 699.16
|
||||
}
|
||||
],
|
||||
"median_scan_ms": 147
|
||||
},
|
||||
{
|
||||
"synthetic_pairs": 1050,
|
||||
"measured_pairs": 1053,
|
||||
"runs": [
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 629,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 2,
|
||||
"objects_scanned": 1053,
|
||||
"checked_in_db": 1053,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 6,
|
||||
"rows_scanned": 1053,
|
||||
"s3_head_attempts": 1053,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 1885.23
|
||||
},
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 587,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 2,
|
||||
"objects_scanned": 1053,
|
||||
"checked_in_db": 1053,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 6,
|
||||
"rows_scanned": 1053,
|
||||
"s3_head_attempts": 1053,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 1125.28
|
||||
},
|
||||
{
|
||||
"dry_run": true,
|
||||
"duration_ms": 3070,
|
||||
"complete": true,
|
||||
"orphan_scan": {
|
||||
"s3_pages": 2,
|
||||
"objects_scanned": 1053,
|
||||
"checked_in_db": 1053,
|
||||
"busy": 0,
|
||||
"orphan_candidates": 0,
|
||||
"objects_deleted": 0
|
||||
},
|
||||
"missing_scan": {
|
||||
"db_pages": 6,
|
||||
"rows_scanned": 1053,
|
||||
"s3_head_attempts": 1053,
|
||||
"missing_objects": 0,
|
||||
"missing_attachment_ids": []
|
||||
},
|
||||
"wall_ms": 4871.64
|
||||
}
|
||||
],
|
||||
"median_scan_ms": 629
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"s3_api_bucket_scope_and_iam_denials": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 9.24,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_api_delete_effect": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 2.247,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_api_effective_policy": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 2.677,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_bootstrap_preserves_object_and_volume": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 4.152,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_console_closed_on_shared_network": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 1.491,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_fixture_cleanup": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 4.488,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_restart_preserves_original_bytes": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 6.478,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_setup_and_scenarios": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 33.571,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_two_replicas_after_restart": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 0.718,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_two_replicas_before": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 1.003,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
},
|
||||
"s3_unsigned_known_object_403": {
|
||||
"detail": "",
|
||||
"elapsed_seconds": 0.453,
|
||||
"requirement": "requested_operational_check",
|
||||
"status": "PASS"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18097"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"files": {
|
||||
"Dockerfile": "17e5c9fa261dbe5395791213f605787824957da6567586ce990e44e3fd5a1236",
|
||||
"Dockerfile.migrate": "0ab04cba4c2bb033c4d7c7d3a5984d8a27e8f355ff90e6023c3b7912d2211dec",
|
||||
"cmd/api/main.go": "e9568a3a1098b01fded10cdc502dac652bf6a3a5761914c6860c9f45b56ed269",
|
||||
"cmd/api/poolstats.go": "75c0ca950b85eaee3c0802e3001c61ba6436874b3be12cd38a5feb907b91528e",
|
||||
"cmd/attachment-cleanup/main.go": "2658e84d6a062552303e04e41e45bd0b5fa1f6a75e90158f616d60fedbef3b3d",
|
||||
"cmd/migrate/main.go": "6e9d413a86f53cf5f2e83d5ed0308af9b2c33e69fcb3d061b19bf480e352f257",
|
||||
"cmd/migrate/main_test.go": "a88f2252d70caf644904331182dc3afd4df48b825a0329a82482798ec90b5d46",
|
||||
"cmd/migrate/postgres_test.go": "37401cd60657af560d52e727b08861f444ab18355d9decd9ceeeddb009d079ca",
|
||||
"cmd/migrate/roundtrip_test.go": "25b3425447b1dbafec83db2e5a7fc8172031908d5f5d57ce7b0d36a97850f8fa",
|
||||
"compose.yaml": "e67836432e988a1035a91ed028471e801fcf0827fb6ff4070f1e583abc06d787",
|
||||
"db/migrations/00001_init_schema.sql": "48db014273f78be0f6eb97fc521cccc54f851dc99e3688d480d3a6ff7b9b6bbe",
|
||||
"db/migrations/00002_add_created_at_defaults.sql": "e0680838294b93f916d727a3a20d83aca7c3f74077202c9696b1fc73cda14649",
|
||||
"db/migrations/00003_drop_session_table.sql": "1b666cee95b9eb1210b0a303de95994bd3c24628e9d9fdb1e1f3318edb756c3d",
|
||||
"db/migrations/00004_message_idempotency.sql": "e7b3dd5a056a702dfde7acba6666430477db0c7e03ae03fb270e145d6303b9b2",
|
||||
"db/migrations/00005_attachments.sql": "033d8884cecb50b5067453a97f2d7c51e51331a1911d9ddf8687437afa59443c",
|
||||
"db/migrations/00006_allow_attachment_only_messages.sql": "ad56ecd0e8b88e0665cdc144aaa5d934ea7f48047cd702ce6f8832b6cf0bded3",
|
||||
"db/migrations/embed.go": "a42e52ab05bc89b557a5bc6b3f0215883d99c4a039a8b32d6c19e66b2f769508",
|
||||
"db/queries/attachments.sql": "cc030be1e7ed01d5895d37f0cf10d66821ef2c30dfd7fba4fb155488b8c96ebc",
|
||||
"db/queries/chat_members.sql": "c80b6e50c321ff94317545ea2f9fdee1dfd69f564d8638f7b111c8ec091ef03a",
|
||||
"db/queries/chats.sql": "8c52c762da78eb3a3eb7402b17ec87bd7fc2e1387f6ddb8e297b4f2d75beca7b",
|
||||
"db/queries/message_idempotence.sql": "34259e4beee9cc07de4dec95c1d588222c7d756d02ac6564b54d6dbec36678db",
|
||||
"db/queries/messages.sql": "f6f6382f27d698b1c2af2305d45699226ef10806b938b3dca78ec9087a622b7b",
|
||||
"db/queries/messages_attachments.sql": "753e5b46dbe94b1043fbe19c83850e697feef7ea9ccc348496b71cb6f9906ddb",
|
||||
"db/queries/users.sql": "0d73a6d46f4d4a1b0af37b750a208c07a38249f76974b41748f32c1949f990df",
|
||||
"go.mod": "0dbf79ae49966e763868e20b453addaecbb74085dd7b0579271f0839ca8a17cd",
|
||||
"go.sum": "30264a0cbc88f40ac455abb621624a54aa956bedd390c07deef4f67812efc982",
|
||||
"infra/README.md": "0e804fa51debba4c38d3cc84abf4704897665e0335b272060363f03aadd6354f",
|
||||
"infra/haproxy.cfg": "895a178e7354de61a5d40a2fe18b7b7c6d1d3d5faf0e5a5faa72783e7b983cb8",
|
||||
"infra/s3/bootstrap.sh": "baa4b0b6fa4bd2a76b194b672ef2ca8575858ef6abc7ddfbede3eec3534bc8ce",
|
||||
"internal/config/config.go": "142318dac05e3070358e7642c4b09813fe6bdb4d1b80e1154954d5e4e5f3fa59",
|
||||
"internal/database/postgres.go": "3925c0bc9ae01bff9a37138a0dd19b38074bc2a70536b3a148f568b952516a21",
|
||||
"internal/database/redis.go": "5b85a60bb0d1cb156c61bcd3c518c41c955f53c1d12da265b5e3a5dd7a397602",
|
||||
"internal/database/sqlc/attachments.sql.go": "607a42ff362b4e69880a58b7eb989a0aac5d8e1b39df005dfae0c607dec659c5",
|
||||
"internal/database/sqlc/chat_members.sql.go": "9e8cd177f6f888c72d19857fd4748fbb2020770c1af772a463fe3d1b813b37ee",
|
||||
"internal/database/sqlc/chats.sql.go": "3dccf4b0ffa918ec5a3b66026b3dab4027456b499486359881000d184944802c",
|
||||
"internal/database/sqlc/db.go": "3ca71a7f007a39987cae838da64303419dd804d2d1b6227676f47177971d76cf",
|
||||
"internal/database/sqlc/message_idempotence.sql.go": "ebd31e6f369483eed8d6978dab1687552eed742a612b5ee4090499fe8a48a73f",
|
||||
"internal/database/sqlc/messages.sql.go": "9836433d9645e6dd3bd66273ce15a53691f79093016c416fb24ffd085e62831e",
|
||||
"internal/database/sqlc/messages_attachments.sql.go": "821d863a01079edae53805769821f1dc5eb3e32620ce61efd7326bb0253d2204",
|
||||
"internal/database/sqlc/models.go": "df06356e705031dfc6226efd736f432853e026c26c30424675b99179819d422e",
|
||||
"internal/database/sqlc/users.sql.go": "b954abd5b5964df39c20d857a60105513af84c8df68ce1ac9421da541a7800f4",
|
||||
"internal/model/attachment.go": "877de511f5996c263c63c3e406ed67ee6609833f4946074594e1d438f8dce53a",
|
||||
"internal/model/chat.go": "e0213f8360ea106b3627aa50cc87710153ff8e353475b42c2becdb9a32592660",
|
||||
"internal/model/message.go": "4cebc4963e2eb104e85a1df6e8a93d6745c9ae42425df2d04bf6319e1d17b12d",
|
||||
"internal/model/session.go": "b455d730e4e3efc95c6d1fe74ab43d86153e4bf863c09efd36bfe57efc669bc2",
|
||||
"internal/model/user.go": "4bfd2d78e72f1c80b12541f2abc8500613e8f4d101575bd5d74fac22b52e3617",
|
||||
"internal/repository/attachment.go": "62e75dbb4ed1cb966abbafc74530a676409ffa0b016a7943be5281cab1dce45c",
|
||||
"internal/repository/attachment_tx.go": "c24c5b61a8cf07e823835c6f09110ac2334892dc53746b4039688a7250f80e87",
|
||||
"internal/repository/chat.go": "7ef8dca39ff371f16d351b073199c25f719db22c7a525ab76ea7aca948efa157",
|
||||
"internal/repository/errors.go": "9e3f77340ff87e41edc87380f795759701980685478737e7e4e1f9737e2634fa",
|
||||
"internal/repository/message.go": "2f92e2808317850ca5873cc26f8e6c4d83104e8fc957a89304fc74ba2f64cbf2",
|
||||
"internal/repository/postgres/attachment.go": "5ca7ed710c8dc07473376810e2bf746d2f2d60435b220e2e1cf20ee82c0c3e57",
|
||||
"internal/repository/postgres/chat.go": "d757c579e5b6599ab9366aef46fd59f9652247f3d947615aa46c919746b65ea5",
|
||||
"internal/repository/postgres/errors.go": "580e5e599f7af8a403404c6850986e88efceda6393d21e772ac108be34004ba9",
|
||||
"internal/repository/postgres/message.go": "a2057f6fe6ba2a93a7f98bdbd799baf043999811e9fa7bb649e4f0d60138b6c2",
|
||||
"internal/repository/postgres/user.go": "eb6770e5cdd96b16a6e9d2116af89a6dd466dfbca4f4c179fe06c30c487e53c4",
|
||||
"internal/repository/postgres/utils.go": "6c5c83a8ad8ecf611812fbf8c90735e2590a09dec88cd914a10f6b36a9f041b7",
|
||||
"internal/repository/redis/errors.go": "ab56571d1d0b7d13b7d7ff868916f7e506c5a54c29e6bb211b3021ad4bf601ab",
|
||||
"internal/repository/redis/session.go": "c1654fea2ba47734a5403d6f6cbb2fe70fbe7e6e37166ae75f338d3490981de1",
|
||||
"internal/repository/session.go": "071285ff4d8033a6512a7256583a1cb32de782d6fd9f1696fac109927f7db699",
|
||||
"internal/repository/user.go": "bee65136137d97bea2240411c96a93cd945b1b9145452416f7a83733a1fd28e7",
|
||||
"internal/security/password.go": "8f74bef9216a2d12aa734e04fa786eac6b31f1378fe42f729fe1b97495c10487",
|
||||
"internal/service/attachment.go": "4b901d85d93d6dffde1bf76dd532b4b6845afd55ea7a8f9aaea983eaead1e9da",
|
||||
"internal/service/attachment_cleanup.go": "c4e66bb48f7cd26de6fedf4ca7cf751c815dcab30e9442de61f7fe000d3c2367",
|
||||
"internal/service/attachment_reconcile.go": "f7dbf60b14f9e82cc018bdd29482d71786a30c32bfb5d1ed1808342c9fd36cdb",
|
||||
"internal/service/auth.go": "71b8960640866e515e9060159af750c418d97a6373d2616c3b59b764172aa54c",
|
||||
"internal/service/chat.go": "bc7c8bea0066d8bbd926f78d2c100f0bd9a48c29fb542c5cfa3f2ae415299ef5",
|
||||
"internal/service/errors.go": "fb5aa4f7be76af14ab81629eceb02e1c3a1bafd8bfeb036e7ee5ccd3940d64da",
|
||||
"internal/service/helper.go": "390320fa296d9637630e6ac0d90c1229002b578a29186cad414896d5f4d1b8a6",
|
||||
"internal/service/message.go": "9556a18a5679d7e44b5cdcf329488185d2b90cadb3180af926df4bb6ab3f9d0d",
|
||||
"internal/service/user.go": "542051ef3eeff15d340979a615a7e0da3d21ed7ed93bea2547ab52d8e303b5e2",
|
||||
"internal/storage/errors.go": "21a5622cd2655663fc24ee485013c1a917279990fd128a5d406b59f5f0ee67cd",
|
||||
"internal/storage/object_cleanup_storage.go": "ef50236baefe3e3aea8ca64264ae3c2e5fc89c245b9b1d7cfd207d354f0be2c9",
|
||||
"internal/storage/object_writer.go": "15ca1257b9c42f64a42f19a4bbb487e9d2950aed2fdf87959fe6c2d763998b64",
|
||||
"internal/storage/s3/client.go": "032ec339cb91fc1f049a4f92ac61d0404199be059d452307cd12455386f68134",
|
||||
"internal/storage/s3/errors.go": "6f1f5a7dbd93f65f8101ba80b6fa17bab964744d237746b3ae4ac3650cc9b52c",
|
||||
"internal/transport/http/handler/attachment.go": "885b2c4d24cbf0f5bfa9def4f6b5b4a7621919b47c3906d89a297abcf0c73da8",
|
||||
"internal/transport/http/handler/attachment_types.go": "90210075401601bacb25ae70dea2e19a203f537cf0f5aff1369679619bb87811",
|
||||
"internal/transport/http/handler/auth.go": "f175a570d47ca38ce627d0bc88b6f6a2adbf648345229fa961ea0144717744f1",
|
||||
"internal/transport/http/handler/auth_types.go": "5ffcd182606a77d538efb5f1a51df23b8a324a605b5d226026048d34c409ebdb",
|
||||
"internal/transport/http/handler/chat.go": "e5214ebf94ac9b8f37537e1a3fc844a2e8ae4e9b5aa159fe2b6e4da9ab2342f0",
|
||||
"internal/transport/http/handler/chat_types.go": "d181bce0f003749d813c1254df4c8ebcc1b99ff506b61efa6899da4a499e95f4",
|
||||
"internal/transport/http/handler/health.go": "1abf04652ea0b69bd87321b95e1a921d3c5ad3c04207232c2a9408bf722e550a",
|
||||
"internal/transport/http/handler/health_types.go": "02ee3031e10fbb279e020f409fbd905ae2640aa306b2c558c3f8e6dcfe9efa80",
|
||||
"internal/transport/http/handler/message.go": "540065ffc9090848fc25d560f1ad9734d4f0d45cdf0b5907a0f196f9efa8ede3",
|
||||
"internal/transport/http/handler/message_types.go": "270a9504a3001b1dc02a1f62cdaed12d69af2471340674e50022c609643dcb34",
|
||||
"internal/transport/http/handler/user.go": "86fd65ed176e9a83dc27c1112ff8384bc5aa32a92410290fb505d715ca167775",
|
||||
"internal/transport/http/handler/user_types.go": "0c4450be649afe5edf4e8d3ac9baada79deb9e1423ace56b87aa227ebd0eb998",
|
||||
"internal/transport/http/httputils/helper.go": "59c092950b69f5390427d0c6c1f90d2c33630d87a42bef363aed704960cb3a22",
|
||||
"internal/transport/http/middleware/auth.go": "413d7fb5f8573a808c2eb4e36becd29b4d7edffe5b096b26fc07ac22a0285430",
|
||||
"internal/transport/http/middleware/context.go": "f6db0e807659f30b05cae91f73c70d87f359760c57110e0d25b49a65bd0394a5",
|
||||
"internal/transport/http/middleware/logging.go": "a477fda512953eb9f46266537c12ace9cc992ba8f036a5b041f9f8295bfd2097",
|
||||
"internal/transport/http/router.go": "2841bac8988517591539336ba20718b4da7bae31ab81bf56e6b2b9bb59b0a297",
|
||||
"scripts/restart.sh": "5f70beb4337aed16881a0728229f02dce0e95d42028e0088acd52aa0a76eb019",
|
||||
"sqlc.yaml": "4e72de8f0b44d6d2b6a44da89f86dd5326e85077a5e7a8ae71816a5dff1fbaa3"
|
||||
},
|
||||
"sha256": "4c7aff2f3780fd4df0ebb4ab7b380e9c8540bbcb45ae64fb0e2894bb650109e5"
|
||||
}
|
||||
Reference in New Issue
Block a user