create skeleton for lab 4
This commit is contained in:
+89
-3
@@ -1,5 +1,91 @@
|
||||
# Доказательства
|
||||
# Evidence лабораторной 4
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
Результаты отдельного полного прогона на чистом проекте
|
||||
`mtusi-messenger-lab4-test`. Дата, базовый commit, версии, лимиты CPU/RAM,
|
||||
идентификаторы образов и точные команды находятся в [run.json](run.json).
|
||||
Проверено незакоммиченное рабочее дерево; его исполняемые файлы зафиксированы
|
||||
в [source-sha256.txt](source-sha256.txt). Манифест снимается до прогона и
|
||||
сравнивается после него. Отчёт, README, RUNBOOK, LAB4_PLAN и сами evidence
|
||||
в манифест не входят; инструкции AGENTS.md/CODE_STYLE.md зафиксированы.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
## Артефакты
|
||||
|
||||
| Файл | Содержание |
|
||||
| --- | --- |
|
||||
| [test-output.txt](test-output.txt) | Исходный вывод контракта, pytest, smoke, persistence, failover, MinIO, нагрузки и проверок уровня 4 lab3. |
|
||||
| [nginx-output.txt](nginx-output.txt) | Отдельная проверка конфигурации, DNS, балансировки, gzip и ошибок Nginx. |
|
||||
| [metrics.json](metrics.json) | Извлечённые результаты pytest, загрузок, rolling update и отказа каждой реплики. |
|
||||
| [run.json](run.json) | Среда, команды и exit codes, снимки контейнеров до/после restart и обновления, отсутствие тестовых ресурсов после очистки. |
|
||||
| [cleanup.txt](cleanup.txt) | Фактическое удаление тестовых контейнеров, сетей и трёх volumes. |
|
||||
| [source-sha256.txt](source-sha256.txt) | SHA-256 приложения, инфраструктуры, зависимостей, скриптов, контракта и тестов. |
|
||||
|
||||
## Воспроизведение
|
||||
|
||||
Из корня проекта, с Python 3.12 и работающим Docker:
|
||||
|
||||
```sh
|
||||
python3 -m venv .venv
|
||||
.venv/bin/python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
make init
|
||||
.venv/bin/python -m scripts.collect_evidence
|
||||
sha256sum -c evidence/source-sha256.txt
|
||||
```
|
||||
|
||||
Коллектор требует отсутствия прежних ресурсов тестового проекта. Существующие
|
||||
`.env` и секреты сохраняются. MinIO и mc собираются из закреплённых исходников;
|
||||
первая сборка требует доступа к Go-модулям. Основной стенд не запускается.
|
||||
В `finally` выполняется `down --volumes --remove-orphans`; evidence публикуются
|
||||
только после успешного завершения всех проверок и подтверждения очистки.
|
||||
|
||||
## Методика
|
||||
|
||||
1. Проверить контракт и OpenAPI; собрать стенд с двумя API, общей PostgreSQL,
|
||||
Redis, MinIO, bootstrap и cleanup. Pytest использует отдельную БД
|
||||
`messenger_test` и Redis DB 15; публичные проверки — API через Nginx :18080.
|
||||
2. Выполнить все собственные тесты с `DOCKER_TESTS=1`, затем публичный smoke и
|
||||
24 конкурентных повтора одного сообщения через две реплики.
|
||||
3. Снять состояния контейнеров до и после persistence. Hook перезапускает
|
||||
PostgreSQL, Redis, MinIO, обе API, Nginx и cleanup, сохраняя volumes.
|
||||
Публичная проверка повторно читает данные и оригинал с прежним токеном.
|
||||
В снимках совпадают ID контейнеров и изменились PID/StartedAt всех семи
|
||||
работающих контейнеров, включая три хранилища.
|
||||
4. Загрузить файл, остановить обслужившую API-реплику и скачать тот же оригинал
|
||||
через оставшуюся; проверить SHA-256, подтверждённые сообщения и идемпотентность.
|
||||
5. Дважды повторить bootstrap. Проверить прямые анонимные GET/PUT в S3, запрет
|
||||
чтения политики для API credentials, доступ только к своему bucket и
|
||||
недоступность консоли из сети API. `ListBuckets` MinIO может вернуть
|
||||
отфильтрованный список разрешённых bucket; это учитывается проверкой.
|
||||
6. Выполнить реальный PUT и внедрить отказ сохранения метаданных. Проверить
|
||||
компенсацию; затем внедрить отказ удаления, проверить устойчивый журнал,
|
||||
сохранность свежего объекта, dry-run и повторную очистку. Для проверки grace
|
||||
period возраст только тестовой записи изменяется на два дня; cleanup временно
|
||||
остановлен и затем возвращён в работу. Подтверждённый оригинал сохраняется.
|
||||
7. Временно остановить MinIO: download даёт 503; после запуска прежний оригинал
|
||||
снова скачивается побайтно.
|
||||
8. Выполнить три серии по 10 одновременно начатых upload PNG 1500×1500,
|
||||
6 761 054 байта, генератор случайных пикселей с seed=42. Активных обработок
|
||||
не более двух на API; лишние получают 429, повторов upload нет. После опыта
|
||||
скачать все подтверждённые оригиналы и сравнить SHA-256.
|
||||
9. Проверить фактические ресурсы/секреты, SIGTERM, обновление обеих API под
|
||||
записью и последовательный отказ каждой с восстановлением предыдущей.
|
||||
Новая build-метка создаёт новый образ того же бизнес-кода; миграционная
|
||||
команда при rolling update выполняется один раз.
|
||||
10. Выполнить отдельную проверку Nginx и удалить тестовый стенд с volumes.
|
||||
|
||||
Память `memory.current` снимается в cgroup каждой API через 20 мс и включает
|
||||
декодеры, tmpfs и небольшой процесс-монитор. Выборки могут пропустить короткий
|
||||
пик; дополнительно записан kernel `memory.peak` до/после опыта. Последний
|
||||
накопительный с момента создания контейнера и может включать предыдущие проверки.
|
||||
P95 загрузок относится ко всем попыткам, включая 429; скачивание для сверки
|
||||
SHA-256 выполняется после измерения памяти upload.
|
||||
|
||||
RPS в сценариях отказа — успешные HTTP-ответы, включая повторы ключа.
|
||||
`first_recovery_seconds` включает время hook: это первый завершившийся успешный
|
||||
POST, начатый после завершения команды остановки. Ошибки 429 ограничителя и
|
||||
переходные 503 учитываются отдельно; подтверждённые записи проверяются по истории.
|
||||
Один короткий локальный прогон не определяет предельную производительность.
|
||||
|
||||
В артефакты не включаются `.env`, значения credentials, session tokens,
|
||||
Authorization, тела сообщений и дампы хранилищ. Коллектор отбирает несекретные
|
||||
параметры, скрывает известные значения секретов и проверяет их отсутствие
|
||||
перед публикацией файлов.
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
$ docker compose --env-file .env down --volumes --remove-orphans
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Removing
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Removed
|
||||
Container mtusi-messenger-lab4-test-api-3 Stopping
|
||||
Container mtusi-messenger-lab4-test-api-4 Stopping
|
||||
Container mtusi-messenger-lab4-test-api-4 Stopped
|
||||
Container mtusi-messenger-lab4-test-api-4 Removing
|
||||
Container mtusi-messenger-lab4-test-api-3 Stopped
|
||||
Container mtusi-messenger-lab4-test-api-3 Removing
|
||||
Container mtusi-messenger-lab4-test-api-4 Removed
|
||||
Container mtusi-messenger-lab4-test-api-3 Removed
|
||||
Container mtusi-messenger-lab4-test-redis-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-redis-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-redis-1 Removing
|
||||
Container mtusi-messenger-lab4-test-redis-1 Removed
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Removing
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Removed
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Removing
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Removing
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Removed
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Removed
|
||||
Container mtusi-messenger-lab4-test-minio-1 Stopping
|
||||
Container mtusi-messenger-lab4-test-minio-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-minio-1 Removing
|
||||
Container mtusi-messenger-lab4-test-minio-1 Removed
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Stopped
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Removing
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Removed
|
||||
Volume mtusi-messenger-lab4-test_pgdata Removing
|
||||
Volume mtusi-messenger-lab4-test_miniodata Removing
|
||||
Volume mtusi-messenger-lab4-test_redisdata Removing
|
||||
Network mtusi-messenger-lab4-test_objects Removing
|
||||
Network mtusi-messenger-lab4-test_default Removing
|
||||
Volume mtusi-messenger-lab4-test_pgdata Removed
|
||||
Volume mtusi-messenger-lab4-test_miniodata Removed
|
||||
Volume mtusi-messenger-lab4-test_redisdata Removed
|
||||
Network mtusi-messenger-lab4-test_default Removed
|
||||
Network mtusi-messenger-lab4-test_objects Removed
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"pytest": {
|
||||
"passed": 188,
|
||||
"elapsed_seconds": 73.96
|
||||
},
|
||||
"uploads": {
|
||||
"concurrency": 10,
|
||||
"rounds": 3,
|
||||
"attempts": 30,
|
||||
"fixture": {
|
||||
"format": "PNG",
|
||||
"width": 1500,
|
||||
"height": 1500,
|
||||
"size_bytes": 6761054,
|
||||
"sha256": "49cb1a9ec3e54c1f22c649fb787c50186c54e449ade4a6f6758a50b2e374504d"
|
||||
},
|
||||
"statuses": {
|
||||
"201": 12,
|
||||
"429": 18
|
||||
},
|
||||
"elapsed_seconds": 5.138,
|
||||
"successful_uploads": 12,
|
||||
"p95_seconds": 2.143,
|
||||
"memory": {
|
||||
"bf64a4a13acb": {
|
||||
"initial_bytes": 88752128,
|
||||
"sampled_peak_bytes": 162426880,
|
||||
"cgroup_peak_before_bytes": 161976320,
|
||||
"cgroup_peak_after_bytes": 162689024,
|
||||
"interval_ms": 20
|
||||
},
|
||||
"7e4180e529e1": {
|
||||
"initial_bytes": 89436160,
|
||||
"sampled_peak_bytes": 163692544,
|
||||
"cgroup_peak_before_bytes": 157728768,
|
||||
"cgroup_peak_after_bytes": 163692544,
|
||||
"interval_ms": 20
|
||||
}
|
||||
},
|
||||
"api_memory_limit": "1610612736",
|
||||
"notes": "20 ms samples include monitor and decoder processes; cgroup peak is cumulative since container creation; 429 and failed requests counted separately; no upload retries"
|
||||
},
|
||||
"public_failover": [
|
||||
{
|
||||
"observed_instances_before": 2,
|
||||
"successful_writes": 112,
|
||||
"failed_attempts": 4,
|
||||
"first_recovery_seconds": 1.885
|
||||
}
|
||||
],
|
||||
"rolling_update": [
|
||||
{
|
||||
"scenario": "rolling update",
|
||||
"replacements": 2,
|
||||
"migration_runs": 1,
|
||||
"successful_writes": 487,
|
||||
"failed_attempts": 13,
|
||||
"errors_by_kind": {
|
||||
"http_503": 13
|
||||
},
|
||||
"elapsed_seconds": 25.341,
|
||||
"successful_rps": 19.218,
|
||||
"p95_seconds": 0.048
|
||||
}
|
||||
],
|
||||
"replica_failures": [
|
||||
{
|
||||
"instance": "429367307e5f",
|
||||
"successful_writes": 777,
|
||||
"failed_attempts": 87,
|
||||
"errors_by_kind": {
|
||||
"http_429": 70,
|
||||
"http_503": 17
|
||||
},
|
||||
"elapsed_seconds": 13.965,
|
||||
"successful_rps": 55.64,
|
||||
"first_recovery_seconds": 1.865
|
||||
},
|
||||
{
|
||||
"instance": "20b4b219e7c8",
|
||||
"successful_writes": 774,
|
||||
"failed_attempts": 96,
|
||||
"errors_by_kind": {
|
||||
"http_429": 79,
|
||||
"http_503": 17
|
||||
},
|
||||
"elapsed_seconds": 14.127,
|
||||
"successful_rps": 54.79,
|
||||
"first_recovery_seconds": 2.042
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
$ make test-nginx
|
||||
.venv/bin/python scripts/check_nginx.py
|
||||
nginx version: nginx/1.28.0
|
||||
PASS: nginx -t и балансировка двух реплик
|
||||
PASS: gzip 2060 → 61 байт, содержимое сохранено
|
||||
PASS: JSON и заголовки ошибки API передаются без подмены
|
||||
PASS: отправленный POST не повторяется на другой реплике
|
||||
PASS: лимит вернул 390 ответов 429; health доступен
|
||||
PASS: третья реплика обнаружена через DNS без reload nginx
|
||||
PASS: отказ реплики, первое успешное чтение через 0.719 с
|
||||
PASS: недоступность всех backend возвращает JSON 503
|
||||
PASS: JSON access log содержит время backend и результат лимита
|
||||
|
||||
@@ -0,0 +1,888 @@
|
||||
{
|
||||
"started_at_utc": "2026-11-04T18:14:58.493240+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:20:25.766354+00:00",
|
||||
"started_at_moscow": "2026-11-04T21:14:58.493240+03:00",
|
||||
"base_commit": "ec540a1a725862a8619fcb758daec4ad197f0dd5",
|
||||
"worktree_dirty": true,
|
||||
"source_manifest_sha256": "f3c995d33b82b1996d497b106fb672792f5ad0caf11b5391fd0ef5c89d86ca45",
|
||||
"project": "mtusi-messenger-lab4-test",
|
||||
"runtime": {
|
||||
"python": "3.12.14",
|
||||
"packages": {
|
||||
"fastapi": "0.143.3",
|
||||
"SQLAlchemy": "2.1.4",
|
||||
"pydantic": "2.14.1",
|
||||
"minio": "7.2.20",
|
||||
"Pillow": "13.0.0",
|
||||
"pytest": "9.1.1"
|
||||
},
|
||||
"compose": "Docker Compose version 5.6.1"
|
||||
},
|
||||
"docker_host": {
|
||||
"ServerVersion": "29.9.2",
|
||||
"OperatingSystem": "Arch Linux",
|
||||
"Architecture": "x86_64",
|
||||
"NCPU": 8,
|
||||
"MemTotal": 16400363520,
|
||||
"CgroupVersion": "2"
|
||||
},
|
||||
"services": {
|
||||
"api": {
|
||||
"image": "mtusi-messenger:lab4",
|
||||
"limits": {
|
||||
"cpus": 1,
|
||||
"memory": "1610612736"
|
||||
},
|
||||
"settings": {
|
||||
"APP_PORT": "8080",
|
||||
"DB_MAX_OVERFLOW": "10",
|
||||
"DB_POOL_SIZE": "5",
|
||||
"GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS": "5",
|
||||
"IDEMPOTENCY_TTL_SECONDS": "86400",
|
||||
"MAX_IN_FLIGHT": "16",
|
||||
"MAX_MESSAGES": "100000",
|
||||
"READINESS_TIMEOUT_SECONDS": "2",
|
||||
"S3_BUCKET": "messenger-attachments",
|
||||
"S3_CHUNK_BYTES": "65536",
|
||||
"S3_CLEANUP_GRACE_SECONDS": "86400",
|
||||
"S3_CLEANUP_INTERVAL_SECONDS": "300",
|
||||
"S3_CONNECT_TIMEOUT_SECONDS": "2",
|
||||
"S3_DOWNLOAD_TIMEOUT_SECONDS": "60",
|
||||
"S3_ENDPOINT": "http://minio:9000",
|
||||
"S3_IMAGE_TIMEOUT_SECONDS": "10",
|
||||
"S3_MAX_CONCURRENT_UPLOADS": "2",
|
||||
"S3_MAX_IMAGE_PIXELS": "40000000",
|
||||
"S3_MAX_UPLOAD_BYTES": "10485760",
|
||||
"S3_READ_TIMEOUT_SECONDS": "10",
|
||||
"S3_REGION": "us-east-1",
|
||||
"S3_UPLOAD_TIMEOUT_SECONDS": "30",
|
||||
"SESSION_TTL_SECONDS": "3600",
|
||||
"SHUTDOWN_DRAIN_SECONDS": "1"
|
||||
},
|
||||
"ports": [],
|
||||
"networks": [
|
||||
"default",
|
||||
"objects"
|
||||
],
|
||||
"secret_names": [
|
||||
"db_password",
|
||||
"redis_password",
|
||||
"s3_access_key_id",
|
||||
"s3_secret_access_key"
|
||||
],
|
||||
"tmpfs": [
|
||||
"/tmp:rw,noexec,nosuid,size=64m,mode=1777"
|
||||
]
|
||||
},
|
||||
"cleanup": {
|
||||
"image": "mtusi-messenger:lab4",
|
||||
"limits": {
|
||||
"cpus": 0.25,
|
||||
"memory": "268435456"
|
||||
},
|
||||
"settings": {
|
||||
"APP_PORT": "8080",
|
||||
"DB_MAX_OVERFLOW": "10",
|
||||
"DB_POOL_SIZE": "5",
|
||||
"GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS": "5",
|
||||
"MAX_IN_FLIGHT": "16",
|
||||
"MAX_MESSAGES": "100000",
|
||||
"READINESS_TIMEOUT_SECONDS": "2",
|
||||
"S3_BUCKET": "messenger-attachments",
|
||||
"S3_CHUNK_BYTES": "65536",
|
||||
"S3_CLEANUP_GRACE_SECONDS": "86400",
|
||||
"S3_CLEANUP_INTERVAL_SECONDS": "300",
|
||||
"S3_CONNECT_TIMEOUT_SECONDS": "2",
|
||||
"S3_DOWNLOAD_TIMEOUT_SECONDS": "60",
|
||||
"S3_ENDPOINT": "http://minio:9000",
|
||||
"S3_IMAGE_TIMEOUT_SECONDS": "10",
|
||||
"S3_MAX_CONCURRENT_UPLOADS": "2",
|
||||
"S3_MAX_IMAGE_PIXELS": "40000000",
|
||||
"S3_MAX_UPLOAD_BYTES": "10485760",
|
||||
"S3_READ_TIMEOUT_SECONDS": "10",
|
||||
"S3_REGION": "us-east-1",
|
||||
"S3_UPLOAD_TIMEOUT_SECONDS": "30",
|
||||
"SHUTDOWN_DRAIN_SECONDS": "1"
|
||||
},
|
||||
"ports": [],
|
||||
"networks": [
|
||||
"default",
|
||||
"objects"
|
||||
],
|
||||
"secret_names": [
|
||||
"db_password",
|
||||
"s3_access_key_id",
|
||||
"s3_secret_access_key"
|
||||
],
|
||||
"tmpfs": []
|
||||
},
|
||||
"migrate": {
|
||||
"image": "mtusi-messenger:lab4",
|
||||
"limits": {
|
||||
"cpus": 0.5,
|
||||
"memory": "268435456"
|
||||
},
|
||||
"settings": {
|
||||
"APP_PORT": "8080",
|
||||
"DB_MAX_OVERFLOW": "10",
|
||||
"DB_POOL_SIZE": "5",
|
||||
"GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS": "5",
|
||||
"MAX_IN_FLIGHT": "16",
|
||||
"MAX_MESSAGES": "100000",
|
||||
"READINESS_TIMEOUT_SECONDS": "2",
|
||||
"SHUTDOWN_DRAIN_SECONDS": "1"
|
||||
},
|
||||
"ports": [],
|
||||
"networks": [
|
||||
"default"
|
||||
],
|
||||
"secret_names": [
|
||||
"db_password"
|
||||
],
|
||||
"tmpfs": []
|
||||
},
|
||||
"minio": {
|
||||
"image": "mtusi-messenger-minio:lab4",
|
||||
"limits": {
|
||||
"cpus": 1,
|
||||
"memory": "536870912"
|
||||
},
|
||||
"settings": {},
|
||||
"ports": [],
|
||||
"networks": [
|
||||
"objects"
|
||||
],
|
||||
"secret_names": [
|
||||
"minio_root_user",
|
||||
"minio_root_password"
|
||||
],
|
||||
"tmpfs": []
|
||||
},
|
||||
"minio-bootstrap": {
|
||||
"image": "mtusi-messenger-minio-bootstrap:lab4",
|
||||
"limits": {
|
||||
"cpus": 0.25,
|
||||
"memory": "134217728"
|
||||
},
|
||||
"settings": {
|
||||
"S3_BUCKET": "messenger-attachments",
|
||||
"S3_ENDPOINT": "http://minio:9000"
|
||||
},
|
||||
"ports": [],
|
||||
"networks": [
|
||||
"objects"
|
||||
],
|
||||
"secret_names": [
|
||||
"minio_root_user",
|
||||
"minio_root_password",
|
||||
"s3_access_key_id",
|
||||
"s3_secret_access_key"
|
||||
],
|
||||
"tmpfs": []
|
||||
},
|
||||
"nginx": {
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"limits": {
|
||||
"cpus": 0.5,
|
||||
"memory": "134217728"
|
||||
},
|
||||
"settings": {},
|
||||
"ports": [
|
||||
{
|
||||
"mode": "ingress",
|
||||
"host_ip": "127.0.0.1",
|
||||
"target": 8080,
|
||||
"published": "18080",
|
||||
"protocol": "tcp"
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
"default"
|
||||
],
|
||||
"secret_names": [],
|
||||
"tmpfs": []
|
||||
},
|
||||
"postgres": {
|
||||
"image": "postgres:16.10-bookworm",
|
||||
"limits": {
|
||||
"cpus": 1,
|
||||
"memory": "536870912"
|
||||
},
|
||||
"settings": {},
|
||||
"ports": [
|
||||
{
|
||||
"mode": "ingress",
|
||||
"host_ip": "127.0.0.1",
|
||||
"target": 5432,
|
||||
"published": "15432",
|
||||
"protocol": "tcp"
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
"default"
|
||||
],
|
||||
"secret_names": [
|
||||
"db_password"
|
||||
],
|
||||
"tmpfs": []
|
||||
},
|
||||
"redis": {
|
||||
"image": "redis:7.4.2-bookworm",
|
||||
"limits": {
|
||||
"cpus": 0.5,
|
||||
"memory": "536870912"
|
||||
},
|
||||
"settings": {},
|
||||
"ports": [
|
||||
{
|
||||
"mode": "ingress",
|
||||
"host_ip": "127.0.0.1",
|
||||
"target": 6379,
|
||||
"published": "16379",
|
||||
"protocol": "tcp"
|
||||
}
|
||||
],
|
||||
"networks": [
|
||||
"default"
|
||||
],
|
||||
"secret_names": [
|
||||
"redis_password"
|
||||
],
|
||||
"tmpfs": []
|
||||
}
|
||||
},
|
||||
"container_snapshots": {
|
||||
"started": [
|
||||
{
|
||||
"id": "1529d6364c6b6b1723ec39e3ff19b62546ce3ee1ad6c5c5a7291b201ca9e28c5",
|
||||
"name": "/mtusi-messenger-lab4-test-nginx-1",
|
||||
"service": "nginx",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:21.942730957Z",
|
||||
"pid": 483246,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "7e4180e529e1af96093cf30b826bb3686d669b469a2e7da5e0995597033cf77a",
|
||||
"name": "/mtusi-messenger-lab4-test-api-2",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:16.003299195Z",
|
||||
"pid": 482834,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "bf64a4a13acbc3a3282a858fc6e91182d5c5d970813700e09a38fed17ca5035c",
|
||||
"name": "/mtusi-messenger-lab4-test-api-1",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:16.212298098Z",
|
||||
"pid": 482896,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "3f22d53254f2de954440861c58a8e3c2df8a8e94a5d295cb0d1d1eae9231cd66",
|
||||
"name": "/mtusi-messenger-lab4-test-cleanup-1",
|
||||
"service": "cleanup",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:15.695719979Z",
|
||||
"pid": 482774,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "9eabadbeba78bb9996ab265dc658abedb53d69768b8dc20f0135eb05eee8b00d",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-bootstrap-1",
|
||||
"service": "minio-bootstrap",
|
||||
"image_id": "sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:15:08.266711675Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "95c90f5a182c8efe761f73597e71a0ceb2cc8e6b27be965479614cf7eb1117f0",
|
||||
"name": "/mtusi-messenger-lab4-test-migrate-1",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:15:11.433538933Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0b3cbe2a85dd2f318c47dfc1f6d810c689eadac53bdf1e4db6de7c09d2d25d30",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-1",
|
||||
"service": "minio",
|
||||
"image_id": "sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:04.59129875Z",
|
||||
"pid": 481985,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "a66592d1e4e53bcdcfb68b7bf1bd95ece69aa35c8d6d947033d094e130814f9e",
|
||||
"name": "/mtusi-messenger-lab4-test-postgres-1",
|
||||
"service": "postgres",
|
||||
"image_id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:04.743334637Z",
|
||||
"pid": 482062,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0c11e544554910b289df958c872ba838b22b3628bf0cc54c57c81df9411bbf48",
|
||||
"name": "/mtusi-messenger-lab4-test-redis-1",
|
||||
"service": "redis",
|
||||
"image_id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:04.922389241Z",
|
||||
"pid": 482171,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
],
|
||||
"before_restart": [
|
||||
{
|
||||
"id": "1529d6364c6b6b1723ec39e3ff19b62546ce3ee1ad6c5c5a7291b201ca9e28c5",
|
||||
"name": "/mtusi-messenger-lab4-test-nginx-1",
|
||||
"service": "nginx",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:21.942730957Z",
|
||||
"pid": 483246,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "7e4180e529e1af96093cf30b826bb3686d669b469a2e7da5e0995597033cf77a",
|
||||
"name": "/mtusi-messenger-lab4-test-api-2",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:16.003299195Z",
|
||||
"pid": 482834,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "bf64a4a13acbc3a3282a858fc6e91182d5c5d970813700e09a38fed17ca5035c",
|
||||
"name": "/mtusi-messenger-lab4-test-api-1",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:16.212298098Z",
|
||||
"pid": 482896,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "3f22d53254f2de954440861c58a8e3c2df8a8e94a5d295cb0d1d1eae9231cd66",
|
||||
"name": "/mtusi-messenger-lab4-test-cleanup-1",
|
||||
"service": "cleanup",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:15.695719979Z",
|
||||
"pid": 482774,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "9eabadbeba78bb9996ab265dc658abedb53d69768b8dc20f0135eb05eee8b00d",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-bootstrap-1",
|
||||
"service": "minio-bootstrap",
|
||||
"image_id": "sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:15:08.266711675Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "95c90f5a182c8efe761f73597e71a0ceb2cc8e6b27be965479614cf7eb1117f0",
|
||||
"name": "/mtusi-messenger-lab4-test-migrate-1",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:15:11.433538933Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0b3cbe2a85dd2f318c47dfc1f6d810c689eadac53bdf1e4db6de7c09d2d25d30",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-1",
|
||||
"service": "minio",
|
||||
"image_id": "sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:04.59129875Z",
|
||||
"pid": 481985,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "a66592d1e4e53bcdcfb68b7bf1bd95ece69aa35c8d6d947033d094e130814f9e",
|
||||
"name": "/mtusi-messenger-lab4-test-postgres-1",
|
||||
"service": "postgres",
|
||||
"image_id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:15:04.743334637Z",
|
||||
"pid": 482062,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0c11e544554910b289df958c872ba838b22b3628bf0cc54c57c81df9411bbf48",
|
||||
"name": "/mtusi-messenger-lab4-test-redis-1",
|
||||
"service": "redis",
|
||||
"image_id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:35.199893635Z",
|
||||
"pid": 508916,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
],
|
||||
"after_restart": [
|
||||
{
|
||||
"id": "1529d6364c6b6b1723ec39e3ff19b62546ce3ee1ad6c5c5a7291b201ca9e28c5",
|
||||
"name": "/mtusi-messenger-lab4-test-nginx-1",
|
||||
"service": "nginx",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:10.035280757Z",
|
||||
"pid": 513054,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "7e4180e529e1af96093cf30b826bb3686d669b469a2e7da5e0995597033cf77a",
|
||||
"name": "/mtusi-messenger-lab4-test-api-2",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:03.796170548Z",
|
||||
"pid": 512362,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "bf64a4a13acbc3a3282a858fc6e91182d5c5d970813700e09a38fed17ca5035c",
|
||||
"name": "/mtusi-messenger-lab4-test-api-1",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:03.782576826Z",
|
||||
"pid": 512342,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "3f22d53254f2de954440861c58a8e3c2df8a8e94a5d295cb0d1d1eae9231cd66",
|
||||
"name": "/mtusi-messenger-lab4-test-cleanup-1",
|
||||
"service": "cleanup",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:20.411799591Z",
|
||||
"pid": 514062,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "9eabadbeba78bb9996ab265dc658abedb53d69768b8dc20f0135eb05eee8b00d",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-bootstrap-1",
|
||||
"service": "minio-bootstrap",
|
||||
"image_id": "sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:17:16.679335904Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "95c90f5a182c8efe761f73597e71a0ceb2cc8e6b27be965479614cf7eb1117f0",
|
||||
"name": "/mtusi-messenger-lab4-test-migrate-1",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:17:16.521163474Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0b3cbe2a85dd2f318c47dfc1f6d810c689eadac53bdf1e4db6de7c09d2d25d30",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-1",
|
||||
"service": "minio",
|
||||
"image_id": "sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:56.858209997Z",
|
||||
"pid": 511450,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "a66592d1e4e53bcdcfb68b7bf1bd95ece69aa35c8d6d947033d094e130814f9e",
|
||||
"name": "/mtusi-messenger-lab4-test-postgres-1",
|
||||
"service": "postgres",
|
||||
"image_id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:58.236126757Z",
|
||||
"pid": 511695,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0c11e544554910b289df958c872ba838b22b3628bf0cc54c57c81df9411bbf48",
|
||||
"name": "/mtusi-messenger-lab4-test-redis-1",
|
||||
"service": "redis",
|
||||
"image_id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:56.95034238Z",
|
||||
"pid": 511521,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
],
|
||||
"after_failover": [
|
||||
{
|
||||
"id": "1529d6364c6b6b1723ec39e3ff19b62546ce3ee1ad6c5c5a7291b201ca9e28c5",
|
||||
"name": "/mtusi-messenger-lab4-test-nginx-1",
|
||||
"service": "nginx",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:10.035280757Z",
|
||||
"pid": 513054,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "7e4180e529e1af96093cf30b826bb3686d669b469a2e7da5e0995597033cf77a",
|
||||
"name": "/mtusi-messenger-lab4-test-api-2",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:43.290395636Z",
|
||||
"pid": 515682,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "bf64a4a13acbc3a3282a858fc6e91182d5c5d970813700e09a38fed17ca5035c",
|
||||
"name": "/mtusi-messenger-lab4-test-api-1",
|
||||
"service": "api",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:03.782576826Z",
|
||||
"pid": 512342,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "3f22d53254f2de954440861c58a8e3c2df8a8e94a5d295cb0d1d1eae9231cd66",
|
||||
"name": "/mtusi-messenger-lab4-test-cleanup-1",
|
||||
"service": "cleanup",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:20.411799591Z",
|
||||
"pid": 514062,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "9eabadbeba78bb9996ab265dc658abedb53d69768b8dc20f0135eb05eee8b00d",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-bootstrap-1",
|
||||
"service": "minio-bootstrap",
|
||||
"image_id": "sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:17:39.599833122Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "95c90f5a182c8efe761f73597e71a0ceb2cc8e6b27be965479614cf7eb1117f0",
|
||||
"name": "/mtusi-messenger-lab4-test-migrate-1",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:17:39.442058694Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0b3cbe2a85dd2f318c47dfc1f6d810c689eadac53bdf1e4db6de7c09d2d25d30",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-1",
|
||||
"service": "minio",
|
||||
"image_id": "sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:56.858209997Z",
|
||||
"pid": 511450,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "a66592d1e4e53bcdcfb68b7bf1bd95ece69aa35c8d6d947033d094e130814f9e",
|
||||
"name": "/mtusi-messenger-lab4-test-postgres-1",
|
||||
"service": "postgres",
|
||||
"image_id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:58.236126757Z",
|
||||
"pid": 511695,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0c11e544554910b289df958c872ba838b22b3628bf0cc54c57c81df9411bbf48",
|
||||
"name": "/mtusi-messenger-lab4-test-redis-1",
|
||||
"service": "redis",
|
||||
"image_id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:56.95034238Z",
|
||||
"pid": 511521,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
],
|
||||
"after_update_and_failures": [
|
||||
{
|
||||
"id": "20b4b219e7c8cea5bae4a8834cc5df68399bc306b005e57509b060aac28cbd89",
|
||||
"name": "/mtusi-messenger-lab4-test-api-4",
|
||||
"service": "api",
|
||||
"image_id": "sha256:5a1c0517ac1e3d283b140ada91994c3b058ec00b1671ee55f7cda13af8c9f6eb",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:19:51.393481452Z",
|
||||
"pid": 528706,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "429367307e5f8f1f9e1ef20f378f308849cf51cddfdf2f8b83ef02d915d26455",
|
||||
"name": "/mtusi-messenger-lab4-test-api-3",
|
||||
"service": "api",
|
||||
"image_id": "sha256:5a1c0517ac1e3d283b140ada91994c3b058ec00b1671ee55f7cda13af8c9f6eb",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:19:30.856008463Z",
|
||||
"pid": 526806,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "1529d6364c6b6b1723ec39e3ff19b62546ce3ee1ad6c5c5a7291b201ca9e28c5",
|
||||
"name": "/mtusi-messenger-lab4-test-nginx-1",
|
||||
"service": "nginx",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:17:10.035280757Z",
|
||||
"pid": 513054,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "3f22d53254f2de954440861c58a8e3c2df8a8e94a5d295cb0d1d1eae9231cd66",
|
||||
"name": "/mtusi-messenger-lab4-test-cleanup-1",
|
||||
"service": "cleanup",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:18:21.285437286Z",
|
||||
"pid": 518374,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "9eabadbeba78bb9996ab265dc658abedb53d69768b8dc20f0135eb05eee8b00d",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-bootstrap-1",
|
||||
"service": "minio-bootstrap",
|
||||
"image_id": "sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:18:17.550878221Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "95c90f5a182c8efe761f73597e71a0ceb2cc8e6b27be965479614cf7eb1117f0",
|
||||
"name": "/mtusi-messenger-lab4-test-migrate-1",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-04T18:18:17.394179901Z",
|
||||
"pid": 0,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0b3cbe2a85dd2f318c47dfc1f6d810c689eadac53bdf1e4db6de7c09d2d25d30",
|
||||
"name": "/mtusi-messenger-lab4-test-minio-1",
|
||||
"service": "minio",
|
||||
"image_id": "sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:18:22.354522515Z",
|
||||
"pid": 518578,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "a66592d1e4e53bcdcfb68b7bf1bd95ece69aa35c8d6d947033d094e130814f9e",
|
||||
"name": "/mtusi-messenger-lab4-test-postgres-1",
|
||||
"service": "postgres",
|
||||
"image_id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:58.236126757Z",
|
||||
"pid": 511695,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
{
|
||||
"id": "0c11e544554910b289df958c872ba838b22b3628bf0cc54c57c81df9411bbf48",
|
||||
"name": "/mtusi-messenger-lab4-test-redis-1",
|
||||
"service": "redis",
|
||||
"image_id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-04T18:16:56.95034238Z",
|
||||
"pid": 511521,
|
||||
"exit_code": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"images": {
|
||||
"sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284": {
|
||||
"id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"repo_digests": [
|
||||
"nginx@sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
},
|
||||
"sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051": {
|
||||
"id": "sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051",
|
||||
"repo_digests": [
|
||||
"mtusi-messenger@sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
},
|
||||
"sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9": {
|
||||
"id": "sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9",
|
||||
"repo_digests": [
|
||||
"mtusi-messenger-minio-bootstrap@sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
},
|
||||
"sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39": {
|
||||
"id": "sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39",
|
||||
"repo_digests": [
|
||||
"mtusi-messenger-minio@sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
},
|
||||
"sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74": {
|
||||
"id": "sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74",
|
||||
"repo_digests": [
|
||||
"postgres@sha256:38471f330eb885e04de130b768d6db4e10469e2311879c7e5c699f6d2d8a1c74"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
},
|
||||
"sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9": {
|
||||
"id": "sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9",
|
||||
"repo_digests": [
|
||||
"redis@sha256:fbdbaea47b9ae4ecc2082ecdb4e1cea81e32176ffb1dcf643d422ad07427e5d9"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
},
|
||||
"sha256:5a1c0517ac1e3d283b140ada91994c3b058ec00b1671ee55f7cda13af8c9f6eb": {
|
||||
"id": "sha256:5a1c0517ac1e3d283b140ada91994c3b058ec00b1671ee55f7cda13af8c9f6eb",
|
||||
"repo_digests": [
|
||||
"mtusi-messenger@sha256:5a1c0517ac1e3d283b140ada91994c3b058ec00b1671ee55f7cda13af8c9f6eb"
|
||||
],
|
||||
"architecture": "amd64",
|
||||
"os": "linux"
|
||||
}
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "make check validate test-stand-up TEST_PROJECT=mtusi-messenger-lab4-test",
|
||||
"started_at_utc": "2026-11-04T18:14:58.640914+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:15:23.342961+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": "make test-docker TEST_PROJECT=mtusi-messenger-lab4-test PYTEST_ARGS=--tb=short",
|
||||
"started_at_utc": "2026-11-04T18:15:23.691655+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:16:39.997612+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": "make test-stand-smoke test-stand-idempotency TEST_PROJECT=mtusi-messenger-lab4-test",
|
||||
"started_at_utc": "2026-11-04T18:16:39.997664+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:16:44.094964+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": "make test-stand-persistence TEST_PROJECT=mtusi-messenger-lab4-test",
|
||||
"started_at_utc": "2026-11-04T18:16:44.152939+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:17:20.879999+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": "make test-stand-failover TEST_PROJECT=mtusi-messenger-lab4-test",
|
||||
"started_at_utc": "2026-11-04T18:17:20.936053+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:17:48.976224+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": ".venv/bin/python -m scripts.check_s3 --base-url http://localhost:18080 --with-outage --with-faults",
|
||||
"started_at_utc": "2026-11-04T18:17:49.039051+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:18:28.077697+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": ".venv/bin/python -m scripts.upload_load --base-url http://localhost:18080 --concurrency 10 --output <temporary>/uploads.json",
|
||||
"started_at_utc": "2026-11-04T18:18:28.077774+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:18:35.361777+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": ".venv/bin/python -m scripts.check_grade4 --base-url http://localhost:18080",
|
||||
"started_at_utc": "2026-11-04T18:18:35.361808+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:19:58.301508+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": "make test-nginx",
|
||||
"started_at_utc": "2026-11-04T18:19:58.404365+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:20:14.687715+00:00",
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"command": "docker compose --env-file .env down --volumes --remove-orphans",
|
||||
"started_at_utc": "2026-11-04T18:20:14.687746+00:00",
|
||||
"finished_at_utc": "2026-11-04T18:20:25.705736+00:00",
|
||||
"exit_code": 0
|
||||
}
|
||||
],
|
||||
"remaining_test_resources": {
|
||||
"container": [],
|
||||
"network": [],
|
||||
"volume": []
|
||||
},
|
||||
"minio_source_release": "RELEASE.2025-10-15T17-29-55Z",
|
||||
"mc_source_release": "RELEASE.2025-08-13T08-35-41Z"
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38 .dockerignore
|
||||
0e37adcffea6cf3e485e8df17f64299f45aff55bdd35c8cb600aafe2ea071279 .env.example
|
||||
e10785802b87474192d20e23a31f2ff10ec24eb336642b2743ad341d1afa21be AGENTS.md
|
||||
cf48b9f6dd23f288d3064e22bb755c490e076a2b6cfc034fc6c7b87c1185ade1 CODE_STYLE.md
|
||||
2ea849842e877eca40e5dd853a5299a81be15fa414476fbfe434ac487f59ec1f Dockerfile
|
||||
27cde38208eed865ddd605d902b409850d5e9fb8e2cbd2f15f151533247592dd Makefile
|
||||
274785e9cfb1af978fcdf254f3b9c93847216d9183cf290098f857f174f43b41 alembic.ini
|
||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 app/__init__.py
|
||||
5839d94c506f0362278a4f85bca8346774f5f323112963dd3830e525a069fb61 app/__main__.py
|
||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 app/core/__init__.py
|
||||
7eaffea8127600b33d95bb1ec9171cddfca7d9464db7d49cecbc735b61d3f4d8 app/core/cleanup.py
|
||||
2a4a236bc37d2806a072d216adf9d7884a4eb39e7626f681206a04e64f4a3493 app/core/config.py
|
||||
0f37965b0c49f2ae6a2f17262057c19cb0c27c82dbf56b72e2fba6a025ee6d98 app/core/database.py
|
||||
02326fe518487718ae30334a5f4ebd3a96b63b2222cf112ac4fce33d401e613b app/core/image_worker.py
|
||||
da4dcfda3dabeb595aa7b917d321e794074676fd258828c84be4322b917ac43c app/core/instance.py
|
||||
aedcaa71c991f0147603bad32bbd105ebdc689cfc388d274e83ce693f32ba534 app/core/lifecycle.py
|
||||
5b6585c038289868e98c4c0de6d3004a74f0190c19f6f8b78beca116c9a799ca app/core/redis.py
|
||||
290d97e3551e1661feb04debc0272c9c91fe7636d1771de9e78055c64e23933c app/core/request_capacity.py
|
||||
e1f3f08c65cf17ea24574682050e0435d5a5c22b7b2194ea40aad941716871b4 app/core/request_id.py
|
||||
e519cdff5893f9c371f7756d96a5d92697dc01909e385b091652a541eee7b837 app/core/s3.py
|
||||
7717e9ea31415dd9803f14e6290e709bfb63aa38cb1524db9b04881cf2512256 app/core/security.py
|
||||
6acb951afe3a628d9bd9ae25ab8c321b8debb0f481c745881a7af1f48e620c90 app/domain/__init__.py
|
||||
92276fe889ea7e6901462d6acbecb481b33063723746a0c39ac2da56bc01ee4f app/domain/attachments.py
|
||||
d7026b518eb7f3f054a5aaa5307171db031718c0c70555d40c03e7aabc9f539d app/domain/auth.py
|
||||
33f20c63c3fdcb491adb2153a147e822e0a16de4a5f634355a6d2db514aaa668 app/domain/chats.py
|
||||
31138696454b4cb8e8e81249a54c054ed7dfa05f389b6d097fe99cbf0ef5e5d8 app/domain/health.py
|
||||
96e5d43321bf8f518992baf64d5a497ada19733c57ff7c16b36e8e34db0a3e07 app/domain/idempotency.py
|
||||
c93660a0578dcea83fa2fd04cff287833284c1efd555803736273c4298c5b873 app/domain/image_validation.py
|
||||
63409c613751b0fab06d00587fae2209609a4fe85ad1ba6b2a7fe460715aacef app/domain/images.py
|
||||
beca98c31471df3b3fdd0c228c6fc6cb70410a81dd2e0f046c35cfcc0a144e68 app/domain/messages.py
|
||||
df9aa94fab247467fe5f6fa030bdf3e587b5749060f0c3d663f5bd3e57e8dfe9 app/domain/pagination.py
|
||||
31ec7ba4c47ae6c31661eb8b4231efe9f561784c3bc0555c7d9b9bde804fe88f app/domain/users.py
|
||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 app/endpoints/__init__.py
|
||||
6f7dc5e3aabf9e26d29dba89ad15e573679a665711ffef96b2b30e7a7618222c app/endpoints/attachments.py
|
||||
0cb1dded40038b80eafabcb288f43b1b7fcac1d8d41898e657eb9b62afaa2aab app/endpoints/auth.py
|
||||
2fc7d2b4f155e1cdba6d02ac157b1c2d74932c930d6cba7ac93c0a811af1494a app/endpoints/chats.py
|
||||
86f2c2e9b18004b82e099034d0754b27395381a98f9a9804546ffaf5948742f1 app/endpoints/dependencies.py
|
||||
b26a15a170624acffff0b506031cfffdd9e0e45f42ebb20dad1edd0fc90c73fe app/endpoints/health.py
|
||||
a6424660ce901defac67b5d66a882f8051a531328fc6d4aa998c407ca276c4e3 app/endpoints/messages.py
|
||||
13fe05bec4b4b0a9e7a2f90756065bf97e257601b119a71465b24fc0144f3bf9 app/endpoints/users.py
|
||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 app/errors/__init__.py
|
||||
70febdabcf684aba98a7106dd312cdb59f9f0ac0b494a91277ea2d979888a1e4 app/errors/exceptions.py
|
||||
40115a09d9e69ddcc8c38afd6f1c60383ce753f46bc5be62e9cd60993271fa71 app/errors/handlers.py
|
||||
a36a2a1b982a5f8ca8033bd6fa0286f0a4fe0ed4b9bc6c217eae01d9d8070953 app/main.py
|
||||
5154a347cb6588477b17935f24b61a5122f1952f4238dfcd762e54f430ac9530 app/models/__init__.py
|
||||
a95f02dbd8f5aa54a9dafb3cb516fa0cbb9b1f5c75ef15ef57a167ad56ea2c57 app/models/attachment.py
|
||||
548f10800483dd91a4d321c3cef845f3f5b126169a50474bf846f78839fdb43e app/models/base.py
|
||||
7076f06111aca1e3845a8515112fa1302da9bd331cf79c699259c91d3d23c9cf app/models/chat.py
|
||||
dfb64d43bd519d06f09e479eab4bdd277f317fdb92e206fdedf0afbed1fe18ad app/models/chat_member.py
|
||||
35eaa453501b48d178d7b17fd22314783386b64951cbb518b450698ba65219f8 app/models/counter.py
|
||||
693039c889d92ebdb5ef3fc6833278f59b4aa88f802b4726b9c3bf441f83fb18 app/models/idempotency_key.py
|
||||
9bbf725b6eae51e23e4fc71aea3dbc137d5a275b069e7e378351773297a7559f app/models/message.py
|
||||
b5f1bbdc4370e2671427c8d7590aba58916b1981f225c4734d8bdeb944b1539a app/models/user.py
|
||||
7c9d4ef216ed8b027ddfbad9746147cf0fed6463baf396b7244bd9b1b286e9ee app/schemas/__init__.py
|
||||
bd00b00ded1c48458b7f3e1ebb51bfb481268de92599d41781cd71e782023b0f app/schemas/attachment.py
|
||||
9a3f14dc23e704d9fdce681ae7187a6b95638f9736711a8edef245fbbaea3eb6 app/schemas/base.py
|
||||
2111aef9c942b34d02afa99da6d23a1d5ca0f6cfd75a1c0ebfb2ba85a29584b1 app/schemas/chat.py
|
||||
1092519716f0c8e5800ccf666c3fe52e8b1e617bee61843d6677fafe83d63d9a app/schemas/message.py
|
||||
617bcba33dcb01e4f66a50b5c425ebcbc1aef1c6148148f0eb862a7743bcf9b6 app/schemas/session.py
|
||||
01fc238693c3686595cc910fadce6200e9753d0c4a0397ff327d8a0c937dc4df app/schemas/user.py
|
||||
33296ca85924a22644fda573be072e5b810a284b939469580445925a85f0b5e9 app/storage/__init__.py
|
||||
59606da77e97e883fd2bdbc4c1ab008ab4165ba545c72c623777e03936fd9805 app/storage/attachments.py
|
||||
e479c8be1f56030fc4faaa74417fb959fb2c1f0c57f72974df8b538ff1209a7b app/storage/chats.py
|
||||
a8cb92ff2fc5de87eb072c9997b1dc33e4c490057c6a6eb8f46d6d1067771345 app/storage/health.py
|
||||
2a9243ad419e7cc48ce0c6da13053df6773bea53a2342eb408cb3ebe2455f921 app/storage/idempotency.py
|
||||
e4b71490655095d4dc9b1fccb04820d7cfaf48295affe05d6c6e1e085c8cbaf0 app/storage/messages.py
|
||||
bec371be921841e7d194f4874c43363a871496299f4f5da61a16c5e0211051fc app/storage/s3.py
|
||||
aeb6851a54d71051912ad588c47de3d5a3d92d518a0a198dbb3e283dd64837c7 app/storage/sessions.py
|
||||
46a0562d557ac96bd49f9975ff25ac8cce7f7f803b8c280d1d0bf2463ebfdaec app/storage/types.py
|
||||
f9dc7df7affda7144991944ff20a1ae5b372921b14fd391afa189d0e613dc45e app/storage/users.py
|
||||
46f25ac85ff2a20a52cddf67b38c69f340bf007a355cd2e18c46e6aab9d22757 compose.test.yaml
|
||||
df8b4d1347466f0aa95a9183e04a8496e29614652229cb3dfd0b78a48be13500 compose.yaml
|
||||
381cc18c03789e935b391d007fb5843964be9cfd9f7530cb6b1996ed4a1c4c37 contracts/examples.json
|
||||
baaeb5a2233096a50d791f521bfc6dd66a23e516f81833c2b17c554cc0bab5d8 contracts/infrastructure.json
|
||||
c5c0ebdcf205018126c5bb91e2512b11f543827e76baa21d776210d05a0b2cca contracts/openapi.json
|
||||
4b492cfedc7d65eb88d8217eefb07db541926ae919770e0d535e767d73fa7947 infra/minio/Dockerfile
|
||||
cfdd8697694458869202d1536edda66c6c376c6d9757720d6b38ac91526ee4bb infra/minio/bootstrap.py
|
||||
8484d85c7d7ad6c7e282300288f614b47a2ff5329289e38dd9d111f0c8e76584 infra/nginx/nginx.conf
|
||||
9d4e7faeab76340dadda9916430048c32c849fb2bf02206653ea827e3304b666 infra/redis/redis.conf
|
||||
0f6fe080f5f7cd1d77da5f8ee9989874e9617bd7f4830f90b91978a5bfb88056 infra/redis/start-redis.sh
|
||||
7d0945d93e302c34c3f26455b152f9d657110ee0a94a5074d85963bc7aa60526 lab.json
|
||||
37dce514d48aa4e021e063f6ebb8fb3e34275f6a76f51926d789802cad8dfa75 migrations/env.py
|
||||
7751187956408f7a64742e0bf746d0684d24013bfe11d1895d936d6757da1766 migrations/script.py.mako
|
||||
4ae6aee859bcbcdb238d4cb2fa35419503d7a1d5a3caaffd0f0d2e9e9dce2937 migrations/versions/49d2c947a3f1_add_idempotency_keys.py
|
||||
0eb1a4e624c0e81a8955245a0071a9e0792722ee0d056df257ddc23062ccc8aa migrations/versions/8f31b94a2d10_add_attachments.py
|
||||
cbe0b9e7584f26c0b859936a2584c147fe3f1ffaa9eb55c85ff753ecb10aa5a4 migrations/versions/abd273076068_add_counters.py
|
||||
dd0e8073817e3a08bae19b17d4d502aa0dca0639f95d0b08caaf0e5dce16f302 migrations/versions/db06fd3126ff_create_initial_schema.py
|
||||
92ce287c8eb0aa508e0efd4553650b4ebd2474d1987587d6467c26e316e6a547 pytest.ini
|
||||
4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525 requirements-dev.txt
|
||||
98fab4585e4ac85841ee93836c9bcacbd09627e278cd54766ba0909a43952191 requirements.txt
|
||||
599958169a2b3c35b72b9b27f54d1c156032b2fadf041cc0e905bd49e48d8c60 scripts/__init__.py
|
||||
7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671 scripts/check_contract.py
|
||||
20fb4ddaa3ab13bc5c350b6762298c6e26dcbf23fcd8e66e496c070d09cdec3b scripts/check_grade4.py
|
||||
1ebdc8a4423305b6b972254e0b856b9381f7a5279aaa537a3c9d3cdb791adccf scripts/check_idempotency.py
|
||||
c95f74ebfec55b047424d65ed201519a79cd3292b9067fcf6913f5ac1bf3ab0b scripts/check_nginx.py
|
||||
4a4b5334ca1a717dfb341dc3ecc4d862b19fcec18d0909b087125800be9ab46e scripts/check_s3.py
|
||||
c46b007560b879cf025a6162a7fe3e405690b23d2716654bb5b4079fa01fbb4a scripts/collect_evidence.py
|
||||
0926fac2e73573a6e8b32c254bfc635132823aed9c4b429e91bf180e047bc32f scripts/deployment.py
|
||||
4cf255992270adfdaa0a3fd304050ed858b7a49d9e3c8856337a310cf59f8596 scripts/expiry_demo.sh
|
||||
21f2e3baa4d9615e0411edbecfbdc394d471b70b4f237d1e45557c9602b0ecad scripts/explain_history.py
|
||||
af3422b5b039583980599765cea8315546a1a3de80671f78c7c205faa2bac65f scripts/failover_all.py
|
||||
e06776d5e44eded34a7fc849ba4cabe955428cf9f924e077a48511656538e7b2 scripts/failure_demo.sh
|
||||
0d132cc0528257b6bf3289607fd796ab2a176748d4921b6ac0c56da28b15154e scripts/init_local.py
|
||||
0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b scripts/restart.example.sh
|
||||
5dcdcb09e56e13e223f5b63e855d853a5a669e6a2b5ff4cb5d4800dd44231352 scripts/restart.sh
|
||||
60d48ba1c8050a79f8a3725a0ea7bba34dadba3bef0b86bd2d2e6a768e6ca7d5 scripts/rolling_update.py
|
||||
563376e1d5bfb235790466d5b51ad0559c8c6a0e27da4109ce82705b73f42670 scripts/s3_faults.py
|
||||
1bcf34394520b89d95b7605ec56675be799eea920e83cfbba306d5dc0a6d9811 scripts/stop-one.example.sh
|
||||
c78f3fee788c907764162069ee09e3bd043b3b3eb3823f5bbb8f84dd1ab5bed0 scripts/stop-one.sh
|
||||
b67cf021073a1b0fed6d536f3fc1f41d9bc34834090f02f2db3fdff8b8a6e356 scripts/upload_load.py
|
||||
4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54 scripts/validate_openapi.py
|
||||
0d23d308c846d2db45e14c6890e6b50be5bdd5a17e89a87b5b8e1e75b27aefc9 student-tests/conftest.py
|
||||
8c11a6fbc9003c2d92225bfc676edfffe416e70d8b6972a864cf6c5c0b64c95b student-tests/helpers.py
|
||||
b09d533125981d19774bff19b02ff096c3b367b8bda1dc62fc4647e8816063c7 student-tests/test_attachments.py
|
||||
20cd1c8ea397fe558a9ded78723dd319cabe47f520a631375171c448a01b1de2 student-tests/test_auth.py
|
||||
f57751337441fbc909549d553cd32e20d7f7918dc42f2000c15f9ba2706349a4 student-tests/test_chats.py
|
||||
b9c2ed985bb2cf0261bfb928f0bcc2694c8980a5c55fea4c445d0ca410ca30c6 student-tests/test_concurrency.py
|
||||
b8c9a1f7535318b946adff13b11ac2459622a1a9b23962f0981d0fc7793de0c9 student-tests/test_constraints.py
|
||||
76b4fe648fd257eb603cfc06da76b59b783986f96a9b357bc87238210757ef34 student-tests/test_errors.py
|
||||
045203d83f8ff50e48b8fad4328dba7f12de8adffebef597efadfd40c79ed5c1 student-tests/test_failures.py
|
||||
2594b7bce03d36e6c32c1644e76f4d8f40e7099de6c687e13a74706e329bcefe student-tests/test_health.py
|
||||
edaf79363adb942f9501d933deb86e39aed558f32c1a73188ae2d18d088378ae student-tests/test_history_plan.py
|
||||
640a12067597a7e576d3db0fb6f9bbb14639a14d701f6a9b682ed97ad70cdf8e student-tests/test_idempotency.py
|
||||
722951c437488d0c5d63839d418b2456c37a40c9e8dc55a52c7e8ea3a4066c3c student-tests/test_instance.py
|
||||
c6d2ce0d47b2eae767a9f4d2b63333eb865c505cfaa3dffb5236877187318fdc student-tests/test_lifecycle.py
|
||||
71e48fab2816753b213603bd977c9c1babb2b540596cd3401c1e62a6f538a3b5 student-tests/test_limits.py
|
||||
cc040ae5ee2f196362fab4c7006711bf8d8c7f5e2f56acc8c74646ef2efb801d student-tests/test_messages.py
|
||||
1ef7a28cb478169001a64974ff0632a55771c1f3faa02ea40a919cb722bf9a37 student-tests/test_migrations.py
|
||||
2c573efd6b0a6204a8bac483bb6e2594c565f2d32faa04ebc3540298eb02af2d student-tests/test_pagination.py
|
||||
0cea69086ff8ecc630eccabdb1a7ff79e72bb2df067cb4a59ce8ad31ba5f08a4 student-tests/test_s3_stream.py
|
||||
cb981f15ad186faa2e1f8b6aecb7766eed66378b6db9dfc496dd1d76afc94b1b student-tests/test_sessions.py
|
||||
bf840d8dcb6094412b9e2947df4a0a3c3f32c5d80af9df19693ed5b52b9c8d6d student-tests/test_users.py
|
||||
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 tests/__init__.py
|
||||
8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d tests/client.py
|
||||
99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75 tests/fixtures/sample.png
|
||||
a9a4f89181c8e0fda6ce42e1a1af32fb42d8e3ae519e314207127c9b9b448b13 tests/image_probe.py
|
||||
6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933 tests/load.py
|
||||
1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b tests/resilience.py
|
||||
52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db tests/smoke.py
|
||||
@@ -0,0 +1,396 @@
|
||||
$ make check validate test-stand-up TEST_PROJECT=mtusi-messenger-lab4-test
|
||||
.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env up -d --build
|
||||
Image mtusi-messenger:lab4 Building
|
||||
Image mtusi-messenger:lab4 Building
|
||||
Image mtusi-messenger:lab4 Building
|
||||
Image mtusi-messenger-minio:lab4 Building
|
||||
Image mtusi-messenger-minio-bootstrap:lab4 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 2.80kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [api internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 797B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [minio-bootstrap internal] load build definition from Dockerfile
|
||||
#3 transferring dockerfile: 1.21kB done
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [minio internal] load metadata for docker.io/library/python:3.12.15-slim-bookworm
|
||||
#4 DONE 1.5s
|
||||
|
||||
#5 [minio-bootstrap internal] load metadata for docker.io/library/golang:1.24.8-bookworm
|
||||
#5 DONE 1.5s
|
||||
|
||||
#6 [minio internal] load .dockerignore
|
||||
#6 transferring context: 196B done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [minio-bootstrap internal] load build context
|
||||
#7 transferring context: 3.50kB done
|
||||
#7 DONE 0.1s
|
||||
|
||||
#8 [migrate internal] load build context
|
||||
#8 transferring context: 318.96kB 0.0s done
|
||||
#8 DONE 0.1s
|
||||
|
||||
#9 [minio compiler 1/3] FROM docker.io/library/golang:1.24.8-bookworm@sha256:4ed690d6649d63c312b99a6120025ec79ce3b542968a37da53d6236c7c61a848
|
||||
#9 resolve docker.io/library/golang:1.24.8-bookworm@sha256:4ed690d6649d63c312b99a6120025ec79ce3b542968a37da53d6236c7c61a848 0.1s done
|
||||
#9 DONE 0.2s
|
||||
|
||||
#10 [cleanup runtime 1/2] FROM docker.io/library/python:3.12.15-slim-bookworm@sha256:6a0e06f5ba0b373d051aabd3fffb9b873f27f9a2a3a14bcbe37dee6f0e3bbc70
|
||||
#10 resolve docker.io/library/python:3.12.15-slim-bookworm@sha256:6a0e06f5ba0b373d051aabd3fffb9b873f27f9a2a3a14bcbe37dee6f0e3bbc70 0.1s done
|
||||
#10 DONE 0.2s
|
||||
|
||||
#11 [minio server 1/1] COPY --from=compiler /out/minio /usr/local/bin/minio
|
||||
#11 CACHED
|
||||
|
||||
#12 [minio-bootstrap bootstrap 1/2] COPY --from=compiler /out/mc /usr/local/bin/mc
|
||||
#12 CACHED
|
||||
|
||||
#13 [minio runtime 2/2] RUN useradd --system --uid 10001 --no-create-home minio && mkdir /data && chown minio /data
|
||||
#13 CACHED
|
||||
|
||||
#14 [minio compiler 3/3] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go install -p 4 -ldflags='-s -w' github.com/minio/mc@RELEASE.2025-08-13T08-35-41Z
|
||||
#14 CACHED
|
||||
|
||||
#15 [minio compiler 2/3] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go install -p 4 -ldflags='-s -w -X github.com/minio/minio/cmd.Version=RELEASE.2025-10-15T17-29-55Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-10-15T17-29-55Z' github.com/minio/minio@RELEASE.2025-10-15T17-29-55Z
|
||||
#15 CACHED
|
||||
|
||||
#16 [minio-bootstrap bootstrap 2/2] COPY infra/minio/bootstrap.py /bootstrap.py
|
||||
#16 CACHED
|
||||
|
||||
#17 [migrate 4/8] COPY requirements.txt .
|
||||
#17 CACHED
|
||||
|
||||
#18 [migrate 5/8] RUN pip install -r requirements.txt
|
||||
#18 CACHED
|
||||
|
||||
#19 [migrate 7/8] COPY migrations ./migrations
|
||||
#19 CACHED
|
||||
|
||||
#20 [migrate 6/8] COPY alembic.ini ./
|
||||
#20 CACHED
|
||||
|
||||
#21 [migrate 3/8] RUN useradd --system --uid 10001 --no-create-home appuser
|
||||
#21 CACHED
|
||||
|
||||
#22 [migrate 2/8] WORKDIR /app
|
||||
#22 CACHED
|
||||
|
||||
#23 [migrate 8/8] COPY app ./app
|
||||
#23 CACHED
|
||||
|
||||
#24 [minio-bootstrap] exporting to image
|
||||
#24 exporting layers done
|
||||
#24 exporting manifest sha256:d7d356b436b22b1950d123996ec850fbe44e7b9b1e5c0f6dfee6c5ed8046fc30 0.0s done
|
||||
#24 exporting config sha256:416fb93e9d28043ec257557a451b5b260a8ec2141fd6bffcf5d1fa090bc5aee0 0.0s done
|
||||
#24 exporting attestation manifest sha256:7159f8f74e3f3ab0500179c06398cf1db149d22995073f2793fbcc3e705348c4
|
||||
#24 exporting attestation manifest sha256:7159f8f74e3f3ab0500179c06398cf1db149d22995073f2793fbcc3e705348c4 0.2s done
|
||||
#24 exporting manifest list sha256:a89064533cc824208502acd48147b7f4d6bff4b9d7e666994249e4be0a11bce9 0.1s done
|
||||
#24 naming to docker.io/library/mtusi-messenger-minio-bootstrap:lab4
|
||||
#24 naming to docker.io/library/mtusi-messenger-minio-bootstrap:lab4 0.0s done
|
||||
#24 unpacking to docker.io/library/mtusi-messenger-minio-bootstrap:lab4
|
||||
#24 unpacking to docker.io/library/mtusi-messenger-minio-bootstrap:lab4 0.1s done
|
||||
#24 DONE 0.6s
|
||||
|
||||
#25 [minio] exporting to image
|
||||
#25 exporting layers done
|
||||
#25 exporting manifest sha256:91da74b8aa80d8f1967b0b1c34cfd963a7db8186f3f6b502396145eb1fc52c3f 0.0s done
|
||||
#25 exporting config sha256:ae66a6f1ec14052043afc5d2bc4d41de5ad1986ea0ea7c44f9f02c7a9837f7d8 0.0s done
|
||||
#25 exporting attestation manifest sha256:ac35b49ea51ebffe7f862b5fcfb5edb5fa9a1ce064b79aa2732473d216fc717f 0.2s done
|
||||
#25 exporting manifest list sha256:4b32014b70b6c840fc6b88d421bcbbfe627f0c6b89ed7dd8d009a0b00e463f39 0.1s done
|
||||
#25 naming to docker.io/library/mtusi-messenger-minio:lab4 0.0s done
|
||||
#25 unpacking to docker.io/library/mtusi-messenger-minio:lab4 0.1s done
|
||||
#25 DONE 0.6s
|
||||
|
||||
#26 [migrate] exporting to image
|
||||
#26 exporting layers done
|
||||
#26 exporting manifest sha256:bc6f252b407c7f0f55cef33ac619c87c0af8aa3444bfd48cff70ec5d13a9d3c6 0.1s done
|
||||
#26 exporting config sha256:07e6fed33c1185350eaaf0ca71bef77b85b69b9f702cc9921b9ded39d0a059dc 0.1s done
|
||||
#26 exporting attestation manifest sha256:2b7da561e7004b93f36c46abac5fbf5d7517b9f54885ed119fab6d19c1a153da 0.2s done
|
||||
#26 exporting manifest list sha256:7e3e13a38949ace57409487e70b8510202c0d6ffdeecafcdb400a16c80c7a817 0.1s done
|
||||
#26 naming to docker.io/library/mtusi-messenger:lab4 0.0s done
|
||||
#26 unpacking to docker.io/library/mtusi-messenger:lab4 0.1s done
|
||||
#26 DONE 0.7s
|
||||
|
||||
#27 [api] exporting to image
|
||||
#27 exporting layers done
|
||||
#27 exporting manifest sha256:5c384a19f40a3937220bb527abc5857f2db10a6b9215ac3440ee1516cc64e779 0.1s done
|
||||
#27 exporting config sha256:4b39ae1766eacf6ef7c55627df3daadcb46ce8ee26f4dd63ada8047fa861ce87 0.1s done
|
||||
#27 exporting attestation manifest sha256:8f6444f4580f96c70c2d6ea0cfd2d3113b93a6c569aea6cde5d714fafa39055a 0.2s done
|
||||
#27 exporting manifest list sha256:01e56602fc2243976c8e491e5dfaebff3cf8aee1cfdf168e2328a442bc47dfca 0.1s done
|
||||
#27 naming to docker.io/library/mtusi-messenger:lab4 0.0s done
|
||||
#27 unpacking to docker.io/library/mtusi-messenger:lab4 0.1s done
|
||||
#27 DONE 0.7s
|
||||
|
||||
#28 [cleanup] exporting to image
|
||||
#28 exporting layers done
|
||||
#28 exporting manifest sha256:6cc0026405e8326374b7eb6900ce3c4ce8c069dedafb7072793ca7fcba6378d4 0.1s done
|
||||
#28 exporting config sha256:421efb8ea526249eff500a1e0a2936e2334d8244ef3d9558f1a70feffd7afc9b 0.1s done
|
||||
#28 exporting attestation manifest sha256:70bb6141a85943d37fabc6631399a7bce798427ee873e9036b3099b27ae5edd9 0.2s done
|
||||
#28 exporting manifest list sha256:7d88364818d984cdb1e1bdc4954841e51e0d842619513cc1951c842e281a9051 0.1s done
|
||||
#28 naming to docker.io/library/mtusi-messenger:lab4 0.0s done
|
||||
#28 unpacking to docker.io/library/mtusi-messenger:lab4 0.1s done
|
||||
#28 DONE 0.7s
|
||||
|
||||
#29 [minio-bootstrap] resolving provenance for metadata file
|
||||
#29 DONE 0.2s
|
||||
|
||||
#30 [minio] resolving provenance for metadata file
|
||||
#30 DONE 0.2s
|
||||
|
||||
#31 [api] resolving provenance for metadata file
|
||||
#31 DONE 0.2s
|
||||
|
||||
#32 [migrate] resolving provenance for metadata file
|
||||
#32 DONE 0.1s
|
||||
|
||||
#33 [cleanup] resolving provenance for metadata file
|
||||
#33 DONE 0.0s
|
||||
Image mtusi-messenger-minio-bootstrap:lab4 Built
|
||||
Image mtusi-messenger:lab4 Built
|
||||
Image mtusi-messenger:lab4 Built
|
||||
Image mtusi-messenger:lab4 Built
|
||||
Image mtusi-messenger-minio:lab4 Built
|
||||
Network mtusi-messenger-lab4-test_objects Creating
|
||||
Network mtusi-messenger-lab4-test_default Creating
|
||||
Volume mtusi-messenger-lab4-test_redisdata Creating
|
||||
Network mtusi-messenger-lab4-test_objects Creating
|
||||
Network mtusi-messenger-lab4-test_default Creating
|
||||
Volume mtusi-messenger-lab4-test_redisdata Creating
|
||||
Volume mtusi-messenger-lab4-test_pgdata Creating
|
||||
Volume mtusi-messenger-lab4-test_pgdata Creating
|
||||
Volume mtusi-messenger-lab4-test_miniodata Creating
|
||||
Volume mtusi-messenger-lab4-test_miniodata Creating
|
||||
Volume mtusi-messenger-lab4-test_pgdata Created
|
||||
Volume mtusi-messenger-lab4-test_pgdata Created
|
||||
Volume mtusi-messenger-lab4-test_miniodata Created
|
||||
Volume mtusi-messenger-lab4-test_miniodata Created
|
||||
Volume mtusi-messenger-lab4-test_redisdata Created
|
||||
Volume mtusi-messenger-lab4-test_redisdata Created
|
||||
Network mtusi-messenger-lab4-test_default Created
|
||||
Network mtusi-messenger-lab4-test_default Created
|
||||
Container mtusi-messenger-lab4-test-redis-1 Creating
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Creating
|
||||
Network mtusi-messenger-lab4-test_objects Created
|
||||
Network mtusi-messenger-lab4-test_objects Created
|
||||
Container mtusi-messenger-lab4-test-minio-1 Creating
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Created
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Creating
|
||||
Container mtusi-messenger-lab4-test-minio-1 Created
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Creating
|
||||
Container mtusi-messenger-lab4-test-redis-1 Created
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Created
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Created
|
||||
Container mtusi-messenger-lab4-test-api-1 Creating
|
||||
Container mtusi-messenger-lab4-test-api-2 Creating
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Creating
|
||||
Container mtusi-messenger-lab4-test-api-1 Created
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Created
|
||||
Container mtusi-messenger-lab4-test-api-2 Created
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Creating
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Created
|
||||
Container mtusi-messenger-lab4-test-minio-1 Starting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Starting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Starting
|
||||
Container mtusi-messenger-lab4-test-minio-1 Started
|
||||
Container mtusi-messenger-lab4-test-minio-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Started
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Started
|
||||
Container mtusi-messenger-lab4-test-minio-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Starting
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Started
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Starting
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Started
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-minio-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Exited
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Exited
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Exited
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Exited
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Starting
|
||||
Container mtusi-messenger-lab4-test-api-2 Starting
|
||||
Container mtusi-messenger-lab4-test-cleanup-1 Started
|
||||
Container mtusi-messenger-lab4-test-api-2 Started
|
||||
Container mtusi-messenger-lab4-test-api-1 Starting
|
||||
Container mtusi-messenger-lab4-test-api-1 Started
|
||||
Container mtusi-messenger-lab4-test-api-2 Waiting
|
||||
Container mtusi-messenger-lab4-test-api-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-api-2 Healthy
|
||||
Container mtusi-messenger-lab4-test-api-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Starting
|
||||
Container mtusi-messenger-lab4-test-nginx-1 Started
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env exec -T postgres sh -c 'createdb -U "$POSTGRES_USER" "$POSTGRES_DB"_test 2>&1 | grep -v "already exists"; true'
|
||||
|
||||
$ make test-docker TEST_PROJECT=mtusi-messenger-lab4-test PYTEST_ARGS=--tb=short
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 DOCKER_TESTS=1 .venv/bin/python -m pytest -q --tb=short
|
||||
........................................................................ [ 38%]
|
||||
........................................................................ [ 76%]
|
||||
............................................ [100%]
|
||||
188 passed in 73.96s (0:01:13)
|
||||
|
||||
$ make test-stand-smoke test-stand-idempotency TEST_PROJECT=mtusi-messenger-lab4-test
|
||||
.venv/bin/python tests/smoke.py --base-url "http://localhost:18080"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
.venv/bin/python -m scripts.check_idempotency --base-url "http://localhost:18080"
|
||||
PASS: 24 concurrent replays, 2 replicas, one message
|
||||
|
||||
$ make test-stand-persistence TEST_PROJECT=mtusi-messenger-lab4-test
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env ps
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-messenger-lab4-test-api-1 mtusi-messenger:lab4 "python -m app" api About a minute ago Up About a minute (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-api-2 mtusi-messenger:lab4 "python -m app" api About a minute ago Up About a minute (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-cleanup-1 mtusi-messenger:lab4 "python -m app.core.…" cleanup About a minute ago Up About a minute 8080/tcp
|
||||
mtusi-messenger-lab4-test-minio-1 mtusi-messenger-minio:lab4 "/usr/local/bin/mini…" minio About a minute ago Up About a minute (healthy)
|
||||
mtusi-messenger-lab4-test-nginx-1 nginx:1.28.0-alpine "/docker-entrypoint.…" nginx About a minute ago Up About a minute (healthy) 80/tcp, 127.0.0.1:18080->8080/tcp
|
||||
mtusi-messenger-lab4-test-postgres-1 postgres:16.10-bookworm "docker-entrypoint.s…" postgres About a minute ago Up About a minute (healthy) 127.0.0.1:15432->5432/tcp
|
||||
mtusi-messenger-lab4-test-redis-1 redis:7.4.2-bookworm "/bin/sh /usr/local/…" redis About a minute ago Up 9 seconds (healthy) 127.0.0.1:16379->6379/tcp
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 .venv/bin/python tests/resilience.py --mode persistence --action-script scripts/restart.sh --base-url "http://localhost:18080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env ps
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-messenger-lab4-test-api-1 mtusi-messenger:lab4 "python -m app" api 2 minutes ago Up 17 seconds (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-api-2 mtusi-messenger:lab4 "python -m app" api 2 minutes ago Up 17 seconds (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-cleanup-1 mtusi-messenger:lab4 "python -m app.core.…" cleanup 2 minutes ago Up Less than a second 8080/tcp
|
||||
mtusi-messenger-lab4-test-minio-1 mtusi-messenger-minio:lab4 "/usr/local/bin/mini…" minio 2 minutes ago Up 23 seconds (healthy)
|
||||
mtusi-messenger-lab4-test-nginx-1 nginx:1.28.0-alpine "/docker-entrypoint.…" nginx 2 minutes ago Up 10 seconds (healthy) 80/tcp, 127.0.0.1:18080->8080/tcp
|
||||
mtusi-messenger-lab4-test-postgres-1 postgres:16.10-bookworm "docker-entrypoint.s…" postgres 2 minutes ago Up 22 seconds (healthy) 127.0.0.1:15432->5432/tcp
|
||||
mtusi-messenger-lab4-test-redis-1 redis:7.4.2-bookworm "/bin/sh /usr/local/…" redis 2 minutes ago Up 23 seconds (healthy) 127.0.0.1:16379->6379/tcp
|
||||
|
||||
$ make test-stand-failover TEST_PROJECT=mtusi-messenger-lab4-test
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env ps
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-messenger-lab4-test-api-1 mtusi-messenger:lab4 "python -m app" api 2 minutes ago Up 17 seconds (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-api-2 mtusi-messenger:lab4 "python -m app" api 2 minutes ago Up 17 seconds (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-cleanup-1 mtusi-messenger:lab4 "python -m app.core.…" cleanup 2 minutes ago Up Less than a second 8080/tcp
|
||||
mtusi-messenger-lab4-test-minio-1 mtusi-messenger-minio:lab4 "/usr/local/bin/mini…" minio 2 minutes ago Up 24 seconds (healthy)
|
||||
mtusi-messenger-lab4-test-nginx-1 nginx:1.28.0-alpine "/docker-entrypoint.…" nginx 2 minutes ago Up 10 seconds (healthy) 80/tcp, 127.0.0.1:18080->8080/tcp
|
||||
mtusi-messenger-lab4-test-postgres-1 postgres:16.10-bookworm "docker-entrypoint.s…" postgres 2 minutes ago Up 22 seconds (healthy) 127.0.0.1:15432->5432/tcp
|
||||
mtusi-messenger-lab4-test-redis-1 redis:7.4.2-bookworm "/bin/sh /usr/local/…" redis 2 minutes ago Up 24 seconds (healthy) 127.0.0.1:16379->6379/tcp
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 .venv/bin/python tests/resilience.py --mode failover --action-script scripts/stop-one.sh --base-url "http://localhost:18080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 112, "failed_attempts": 4, "first_recovery_seconds": 1.885}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env ps -a api
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-messenger-lab4-test-api-1 mtusi-messenger:lab4 "python -m app" api 2 minutes ago Up 34 seconds (healthy) 8080/tcp
|
||||
mtusi-messenger-lab4-test-api-2 mtusi-messenger:lab4 "python -m app" api 2 minutes ago Exited (0) 13 seconds ago
|
||||
COMPOSE_PROJECT_NAME=mtusi-messenger-lab4-test COMPOSE_FILE=compose.yaml:compose.test.yaml LB_HOST_PORT=18080 DB_HOST_PORT=15432 REDIS_HOST_PORT=16379 docker compose --env-file .env up -d --wait api
|
||||
Container mtusi-messenger-lab4-test-minio-1 Running
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Running
|
||||
Container mtusi-messenger-lab4-test-redis-1 Running
|
||||
Container mtusi-messenger-lab4-test-api-1 Running
|
||||
Container mtusi-messenger-lab4-test-minio-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Starting
|
||||
Container mtusi-messenger-lab4-test-minio-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Starting
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Started
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Started
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-minio-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Exited
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Exited
|
||||
Container mtusi-messenger-lab4-test-api-2 Starting
|
||||
Container mtusi-messenger-lab4-test-api-2 Started
|
||||
Container mtusi-messenger-lab4-test-api-2 Waiting
|
||||
Container mtusi-messenger-lab4-test-api-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-minio-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-redis-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Waiting
|
||||
Container mtusi-messenger-lab4-test-postgres-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-minio-bootstrap-1 Exited
|
||||
Container mtusi-messenger-lab4-test-migrate-1 Exited
|
||||
Container mtusi-messenger-lab4-test-redis-1 Healthy
|
||||
Container mtusi-messenger-lab4-test-api-2 Healthy
|
||||
Container mtusi-messenger-lab4-test-api-1 Healthy
|
||||
|
||||
$ .venv/bin/python -m scripts.check_s3 --base-url http://localhost:18080 --with-outage --with-faults
|
||||
PASS: idempotent bootstrap, anonymous GET/PUT denied, restricted API credentials, private console, MinIO outage/recovery
|
||||
PASS: real S3 PUT/database failure, compensation, durable journal, grace period, dry-run, repeated cleanup
|
||||
|
||||
$ .venv/bin/python -m scripts.upload_load --base-url http://localhost:18080 --concurrency 10 --output <temporary>/uploads.json
|
||||
{
|
||||
"concurrency": 10,
|
||||
"rounds": 3,
|
||||
"attempts": 30,
|
||||
"fixture": {
|
||||
"format": "PNG",
|
||||
"width": 1500,
|
||||
"height": 1500,
|
||||
"size_bytes": 6761054,
|
||||
"sha256": "49cb1a9ec3e54c1f22c649fb787c50186c54e449ade4a6f6758a50b2e374504d"
|
||||
},
|
||||
"statuses": {
|
||||
"201": 12,
|
||||
"429": 18
|
||||
},
|
||||
"elapsed_seconds": 5.138,
|
||||
"successful_uploads": 12,
|
||||
"p95_seconds": 2.143,
|
||||
"memory": {
|
||||
"bf64a4a13acb": {
|
||||
"initial_bytes": 88752128,
|
||||
"sampled_peak_bytes": 162426880,
|
||||
"cgroup_peak_before_bytes": 161976320,
|
||||
"cgroup_peak_after_bytes": 162689024,
|
||||
"interval_ms": 20
|
||||
},
|
||||
"7e4180e529e1": {
|
||||
"initial_bytes": 89436160,
|
||||
"sampled_peak_bytes": 163692544,
|
||||
"cgroup_peak_before_bytes": 157728768,
|
||||
"cgroup_peak_after_bytes": 163692544,
|
||||
"interval_ms": 20
|
||||
}
|
||||
},
|
||||
"api_memory_limit": "1610612736",
|
||||
"notes": "20 ms samples include monitor and decoder processes; cgroup peak is cumulative since container creation; 429 and failed requests counted separately; no upload retries"
|
||||
}
|
||||
|
||||
$ .venv/bin/python -m scripts.check_grade4 --base-url http://localhost:18080
|
||||
PASS infrastructure: CPU/RAM, private API ports, scoped read-only file secrets, no environment passwords
|
||||
PASS SIGTERM: readiness 503, live 200, new work 503, in-flight POST 201; exit in 2.390s
|
||||
Сборка нового образа API
|
||||
Однократное применение совместимых миграций
|
||||
Заменена реплика bf64a4a13acb
|
||||
Заменена реплика 7e4180e529e1
|
||||
Готово: 2 здоровых реплик нового образа
|
||||
{"scenario": "rolling update", "replacements": 2, "migration_runs": 1, "successful_writes": 487, "failed_attempts": 13, "errors_by_kind": {"http_503": 13}, "elapsed_seconds": 25.341, "successful_rps": 19.218, "p95_seconds": 0.048}
|
||||
{"scenario": "replica_failure", "phase": "before", "target": "429367307e5f", "replicas": [{"instance": "429367307e5f", "running": true, "health": "healthy"}, {"instance": "20b4b219e7c8", "running": true, "health": "healthy"}]}
|
||||
{"scenario": "replica_failure", "phase": "stopped", "target": "429367307e5f", "replicas": [{"instance": "429367307e5f", "running": false, "health": "unhealthy"}, {"instance": "20b4b219e7c8", "running": true, "health": "healthy"}]}
|
||||
{"scenario": "replica_failure", "phase": "restored", "target": "429367307e5f", "replicas": [{"instance": "429367307e5f", "running": true, "health": "healthy"}, {"instance": "20b4b219e7c8", "running": true, "health": "healthy"}]}
|
||||
{"instance": "429367307e5f", "successful_writes": 777, "failed_attempts": 87, "errors_by_kind": {"http_429": 70, "http_503": 17}, "elapsed_seconds": 13.965, "successful_rps": 55.64, "first_recovery_seconds": 1.865}
|
||||
{"scenario": "replica_failure", "phase": "before", "target": "20b4b219e7c8", "replicas": [{"instance": "429367307e5f", "running": true, "health": "healthy"}, {"instance": "20b4b219e7c8", "running": true, "health": "healthy"}]}
|
||||
{"scenario": "replica_failure", "phase": "stopped", "target": "20b4b219e7c8", "replicas": [{"instance": "429367307e5f", "running": true, "health": "healthy"}, {"instance": "20b4b219e7c8", "running": false, "health": "unhealthy"}]}
|
||||
{"scenario": "replica_failure", "phase": "restored", "target": "20b4b219e7c8", "replicas": [{"instance": "429367307e5f", "running": true, "health": "healthy"}, {"instance": "20b4b219e7c8", "running": true, "health": "healthy"}]}
|
||||
{"instance": "20b4b219e7c8", "successful_writes": 774, "failed_attempts": 96, "errors_by_kind": {"http_429": 79, "http_503": 17}, "elapsed_seconds": 14.127, "successful_rps": 54.79, "first_recovery_seconds": 2.042}
|
||||
PASS infrastructure: CPU/RAM, private API ports, scoped read-only file secrets, no environment passwords
|
||||
|
||||
Reference in New Issue
Block a user