Verify late lab 5 fixes and refresh observability evidence

This commit is contained in:
Artyom
2026-11-07 04:13:55 +03:00
parent bc1d7aa771
commit 6ca1c75499
115 changed files with 151948 additions and 12 deletions
+33 -1
View File
@@ -25,4 +25,36 @@ Context7 resolve для SQLAlchemy и RabbitMQ вернул `Monthly quota excee
## Проверки и затронутые измерения
Изменение auth/cache влияет на HTTP/DB путь трека, поэтому повторяются все 15 серий с прежними параметрами; `evidence/track5` остаётся историческим результатом bc0b1620825b53fd3a3019623326ebf68cbbbeec. Новые PNG/доставка проверяются через runtime ЛР6 с включённой OTel, включая память, recovery и трассы. Статус и наблюдения будут дополнены после фактического завершения команд.
Изменение auth/cache влияет на HTTP/DB путь трека, поэтому повторяются все 15 серий с прежними параметрами; `evidence/track5` остаётся историческим результатом bc0b1620825b53fd3a3019623326ebf68cbbbeec. Новые PNG/доставка проверяются через runtime ЛР6 с включённой OTel, включая память, recovery и трассы. Наблюдения, сырые результаты и завершённый повтор трека приведены ниже.
## Реальные регрессии на новом runtime
Runtime commit: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`, образ/ресурсы — forward-published/runtime.json. `make student-test`: 995 passed, 2 Linux-only skipped, 19 stack deselected; `make check validate lint`: PASS. Эти локальные проверки выполнены до runtime-коммита, на WIP поверх 97feb04b3f2a6008f636e1fdbdf284b1c97282a1 (точный SHA и команды в логах); затем код зафиксирован в bc1d7aa. Linux memory paths проверены отдельно реальным worker в Docker с 448 MiB/30 s, concurrency2 и cgroup1GiB.
- network.txt: некорректный Basic/NUL, атомарность и ключ идемпотентности, logout на обеих репликах.
- cache-outage.txt: работа при отказе Valkey, logout503 и успешный204 после восстановления.
- postgres-outage.json/txt и postgres-outage-worker.txt: 12 реальных requeue, тот же job_id/attempt1, DLQ без прироста, recovery без replay. policy.txt подтверждает delivery-limit=-1.
- png-http.json/txt: восемь PNG tRNS/Adam7/filter/EXIF случаев, v1/v2 и byte-exact сравнение с независимым белым эталоном; duplicate/stale не меняют результат.
- png-boundary.json/txt: 40MP gray2/4/16/RGB16 и opaque, обе версии; два RGB16 рендера пересекались по времени, peak913227776 bytes <1073741824, oom/oom_kill0. Forced timeout и memory дали processing_failed без retry, следующее обычное задание ready.
- haproxy-errors.txt: 12 сетевых проверок502/503/504 с request_id, JSON валиден и echo совпадает. Временный project hlpipe-lab6-forward-lb остановлен finally.
- upload-negative.txt: 56 ответов негативного suite, 0 ответов5xx.
- pipeline.json/txt: девять затронутых сценариев, включая retry, восстановление брокера/worker, COMMIT/ack и DLQ, с инвариантами.
- persistence.txt, failover.txt, restore.txt: публичные проверки и восстановление реплики PASS.
- telemetry-request/job/leaks.txt, incident-chain/retry.txt: свежие spans и логи приложения, сохранённая цепочка retry, 0 утечек.
- incident-worker/database.txt: alerts firing→resolved; dashboards.txt и obs-config.txt PASS.
Прежние проверки отказа telemetry storage и сохранения истории уровней3/4 остаются применимыми: preserved-mechanisms.json подтверждает неизменность21 файла сигналов/хранилищ. 22 защищённых файла также неизменны. Эти незатронутые серии не прогоняются повторно. Новые cost-series хранятся отдельно в forward-published/cost; метод и ограничения — cost/method.md.
## Сохраняемые ограничения для следующего отчёта
Четыре ранее установленных minor-замечания не исправляются по правилу пользователя «только критичное»: неполные allowlists вспомогательного аудита лимитов, границы API SLI для ответов HAProxy/первой серии, малый запас памяти Collector при отказе storage и whitespace сгенерированных артефактов. Файлы, доказательства и актуальность перечислены в [findings.json](forward-published/findings.json). Новый REPORT здесь не составляется; эти ограничения передаются следующему агенту отчёта. Ни один обязательный неуспешный тест не объявлен успешным.
## Итог повторного трека и завершение
15 пригодных последовательных серий (по три на off/on/head/tail/balanced), 12000 запросов, 0 неожиданных ответов. SDK ended = Collector accepted во всех сериях, экспортных ошибок0. Balanced сохранил48/48 ошибок и48/48 slow; медианный ingest Tempo130,2 KiB против1662,2 KiB у on (−92,2%). Head сохранил6/48 ошибок и3/48 slow. Это наблюдение данного workload, не доказательство статистически значимого изменения latency/CPU. Сводка, диапазоны и графики: [cost/results.md](forward-published/cost/results.md), comparison.json/png/svg. PNG графика визуально проверен.
Два первоначальных прогона on-3/head-3 с разрывом wall clock исключены; HTTP PASS не выдан за пригодное измерение. Их raw JSON/вывод сохранены с SHA-256 в invalid-time-gap и invalid-series.json. Повторены только эти две серии. measurement-audit.json подтверждает штатные окна всех15 включённых серий. Фактический фон записан при старте, после каждого круга и повторения; сторонние проекты в этих снимках отсутствуют, общий host остаётся ограничением.
Штатные SDK on/100%/10s, Collector collector.yaml и COST_EXPERIMENT=false проверены в defaults-restored.json. Финальный публичный smoke прошёл (final-smoke.txt). Собственный стенд остановлен make down без удаления volumes (shutdown.txt); closure.json подтверждает9 volumes, отсутствие своих работающих контейнеров, неизменность22 защищённых файлов, предыдущего evidence и runtime после измерений. Все нагрузки и временный caffeinate завершены. Финальные offline/check/validate/lint — final-quality.txt. Публикаций не выполнялось.
OpenSpec: 11 requirements в10 capabilities синхронизированы и побайтно сверены по блокам с immutable source и delta (spec-sync.json). Архив: openspec/changes/archive/2026-11-07-forward-lab5-published-fixes, archived2026-11-07/lab6;26 specs strict PASS, активных changes0. git diff --cached --check завершился с кодом2 из-за whitespace в сыром выводе/сгенерированных артефактах (whitespace-check.txt), замечание minor сохранено; make lint прошёл.
@@ -0,0 +1,10 @@
date: 2026-11-06T23:37:24Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/pytest -m stack -s -q student-tests/stack/test_faults.py::test_valkey_stopped_is_bypassed_but_logout_waits
valkey остановлен, действующий токен: 200 за 0.008 с
valkey остановлен, неизвестный токен: 401 за 0.004 с
valkey остановлен: ready 200, вход 201, выход 503
valkey снова запущен: повторный выход 204
.
1 passed in 4.06s
exit_code: 0 elapsed_seconds: 4.831
+21
View File
@@ -0,0 +1,21 @@
{
"at": "2026-11-07T01:12:37.041033+00:00",
"implementation_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"source_sha": "c7b8feb805d151e878d77b0dff47320a9436b172",
"protected_files": 22,
"changed_protected": [],
"changed_old_evidence": [],
"changed_runtime_since_measurements": [],
"own_running_containers": [],
"preserved_volumes": [
"mtusi2026lab6_broker-data",
"mtusi2026lab6_grafana-data",
"mtusi2026lab6_healthtools",
"mtusi2026lab6_loki-data",
"mtusi2026lab6_pgdata",
"mtusi2026lab6_prometheus-data",
"mtusi2026lab6_s3data",
"mtusi2026lab6_tempo-data",
"mtusi2026lab6_valkeydata"
]
}
@@ -0,0 +1,102 @@
{
"at": "2026-11-06T23:37:22.532499+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
3.3583984375,
2.19873046875,
2.24169921875
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.14%",
"MemUsage": "116.9MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "0.97%",
"MemUsage": "193.6MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "0.78%",
"MemUsage": "193.4MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.14%",
"MemUsage": "110.9MiB / 1GiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "0.31%",
"MemUsage": "314.9MiB / 384MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "0.84%",
"MemUsage": "151.9MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "0.25%",
"MemUsage": "106.5MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.32%",
"MemUsage": "238.1MiB / 256MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "0.13%",
"MemUsage": "94.06MiB / 512MiB",
"PIDs": "53"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "0.94%",
"MemUsage": "45.65MiB / 768MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "0.10%",
"MemUsage": "22.77MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "0.23%",
"MemUsage": "173.6MiB / 512MiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "0.06%",
"MemUsage": "71.48MiB / 512MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "1.37%",
"MemUsage": "12.66MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-06T23:59:06Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode balanced --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/balanced-1.json
{"mode": "balanced", "repeat": 1, "result": "PASS", "retained": {"normal": 39, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 126.615
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:09:36Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode balanced --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/balanced-2.json
{"mode": "balanced", "repeat": 2, "result": "PASS", "retained": {"normal": 32, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 126.494
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T01:05:01Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode balanced --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/balanced-3.json
{"mode": "balanced", "repeat": 3, "result": "PASS", "retained": {"normal": 30, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 126.531
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 99 KiB

@@ -0,0 +1,102 @@
{
"at": "2026-11-07T01:11:40.821011+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
2.5986328125,
2.326171875,
2.35888671875
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "0.71%",
"MemUsage": "184.3MiB / 512MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "1.70%",
"MemUsage": "192.5MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.67%",
"MemUsage": "116.6MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.14%",
"MemUsage": "108.3MiB / 1GiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.15%",
"MemUsage": "52.7MiB / 256MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "0.39%",
"MemUsage": "320.1MiB / 384MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "0.75%",
"MemUsage": "225.5MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "0.25%",
"MemUsage": "227MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "24.52%",
"MemUsage": "95.97MiB / 512MiB",
"PIDs": "53"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "0.53%",
"MemUsage": "45.99MiB / 768MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "0.66%",
"MemUsage": "25.02MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "0.14%",
"MemUsage": "158.4MiB / 512MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "0.03%",
"MemUsage": "160.2MiB / 512MiB",
"PIDs": "25"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "0.13%",
"MemUsage": "13.07MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
@@ -0,0 +1,102 @@
{
"at": "2026-11-07T01:07:27.961141+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
1.646484375,
1.9970703125,
2.29052734375
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "1.17%",
"MemUsage": "192.9MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "1.03%",
"MemUsage": "192.8MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.62%",
"MemUsage": "108.4MiB / 1GiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.80%",
"MemUsage": "116.7MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.27%",
"MemUsage": "42.03MiB / 256MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "1.83%",
"MemUsage": "320MiB / 384MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "0.62%",
"MemUsage": "228.5MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "0.33%",
"MemUsage": "287.3MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "36.74%",
"MemUsage": "183.4MiB / 512MiB",
"PIDs": "103"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "0.94%",
"MemUsage": "47.72MiB / 768MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "0.61%",
"MemUsage": "24.96MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "0.59%",
"MemUsage": "157.3MiB / 512MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "0.93%",
"MemUsage": "160.2MiB / 512MiB",
"PIDs": "25"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "0.78%",
"MemUsage": "13.07MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
@@ -0,0 +1,102 @@
{
"at": "2026-11-07T00:01:16.214846+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
1.6005859375,
1.84521484375,
2.02685546875
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "1.28%",
"MemUsage": "184MiB / 512MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "0.83%",
"MemUsage": "184.3MiB / 512MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.15%",
"MemUsage": "108.3MiB / 1GiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.19%",
"MemUsage": "116.5MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.36%",
"MemUsage": "46.17MiB / 256MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "0.32%",
"MemUsage": "319.3MiB / 384MiB",
"PIDs": "10"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "0.97%",
"MemUsage": "214.4MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "0.23%",
"MemUsage": "224.8MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "0.24%",
"MemUsage": "95.74MiB / 512MiB",
"PIDs": "53"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "1.49%",
"MemUsage": "44.05MiB / 768MiB",
"PIDs": "11"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "1.03%",
"MemUsage": "23.41MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "1.11%",
"MemUsage": "154.9MiB / 512MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "0.05%",
"MemUsage": "160.2MiB / 512MiB",
"PIDs": "25"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "1.18%",
"MemUsage": "13.05MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
@@ -0,0 +1,102 @@
{
"at": "2026-11-07T00:11:45.236693+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
4.9462890625,
3.5625,
2.7451171875
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "1.19%",
"MemUsage": "184.1MiB / 512MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "3.14%",
"MemUsage": "191.7MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.62%",
"MemUsage": "116.5MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.17%",
"MemUsage": "108.3MiB / 1GiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.28%",
"MemUsage": "42.81MiB / 256MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "0.30%",
"MemUsage": "320MiB / 384MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "1.56%",
"MemUsage": "221.1MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "1.27%",
"MemUsage": "233.4MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "0.25%",
"MemUsage": "95.85MiB / 512MiB",
"PIDs": "53"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "0.73%",
"MemUsage": "45.72MiB / 768MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "0.17%",
"MemUsage": "24.55MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "0.17%",
"MemUsage": "155MiB / 512MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "0.02%",
"MemUsage": "160.2MiB / 512MiB",
"PIDs": "25"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "1.13%",
"MemUsage": "13.12MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
@@ -0,0 +1,102 @@
{
"at": "2026-11-07T01:07:10.780508+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
1.6572265625,
2.015625,
2.30224609375
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "1.54%",
"MemUsage": "183.9MiB / 512MiB",
"PIDs": "13"
},
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "3.32%",
"MemUsage": "192.2MiB / 512MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.18%",
"MemUsage": "108.3MiB / 1GiB",
"PIDs": "6"
},
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.53%",
"MemUsage": "116.5MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.40%",
"MemUsage": "40.87MiB / 256MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "0.42%",
"MemUsage": "320MiB / 384MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "0.70%",
"MemUsage": "228.8MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "0.31%",
"MemUsage": "269.3MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "0.23%",
"MemUsage": "96.34MiB / 512MiB",
"PIDs": "53"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "0.71%",
"MemUsage": "45.93MiB / 768MiB",
"PIDs": "12"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "0.17%",
"MemUsage": "24.96MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "0.14%",
"MemUsage": "157.3MiB / 512MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "0.04%",
"MemUsage": "160.2MiB / 512MiB",
"PIDs": "25"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "0.17%",
"MemUsage": "13.07MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
@@ -0,0 +1,102 @@
{
"at": "2026-11-06T23:50:46.782935+00:00",
"runtime_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"platform": "Darwin",
"architecture": "arm64",
"host_cpus": 16,
"host_load": [
2.43505859375,
2.41015625,
2.33154296875
],
"docker": "16 CPUs; 8217190400 bytes; 28.3.2",
"own_project": "mtusi2026lab6",
"own": [
{
"Name": "mtusi2026lab6-worker-1",
"CPUPerc": "0.25%",
"MemUsage": "339.7MiB / 1GiB",
"PIDs": "15"
},
{
"Name": "mtusi2026lab6-relay-1",
"CPUPerc": "0.15%",
"MemUsage": "118.1MiB / 192MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-api-2",
"CPUPerc": "0.80%",
"MemUsage": "250.3MiB / 512MiB",
"PIDs": "18"
},
{
"Name": "mtusi2026lab6-api-1",
"CPUPerc": "8.79%",
"MemUsage": "255.3MiB / 512MiB",
"PIDs": "19"
},
{
"Name": "mtusi2026lab6-grafana-1",
"CPUPerc": "0.34%",
"MemUsage": "320.6MiB / 384MiB",
"PIDs": "10"
},
{
"Name": "mtusi2026lab6-loki-1",
"CPUPerc": "0.51%",
"MemUsage": "210.6MiB / 384MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-tempo-1",
"CPUPerc": "0.23%",
"MemUsage": "200.6MiB / 384MiB",
"PIDs": "9"
},
{
"Name": "mtusi2026lab6-otel-collector-1",
"CPUPerc": "0.07%",
"MemUsage": "107.4MiB / 256MiB",
"PIDs": "8"
},
{
"Name": "mtusi2026lab6-broker-1",
"CPUPerc": "1.14%",
"MemUsage": "87.95MiB / 512MiB",
"PIDs": "53"
},
{
"Name": "mtusi2026lab6-postgres-1",
"CPUPerc": "1.74%",
"MemUsage": "76.54MiB / 768MiB",
"PIDs": "29"
},
{
"Name": "mtusi2026lab6-lb-1",
"CPUPerc": "0.99%",
"MemUsage": "18.9MiB / 128MiB",
"PIDs": "17"
},
{
"Name": "mtusi2026lab6-prometheus-1",
"CPUPerc": "0.12%",
"MemUsage": "154.4MiB / 512MiB",
"PIDs": "7"
},
{
"Name": "mtusi2026lab6-s3-1",
"CPUPerc": "1.27%",
"MemUsage": "160.9MiB / 512MiB",
"PIDs": "25"
},
{
"Name": "mtusi2026lab6-valkey-1",
"CPUPerc": "1.20%",
"MemUsage": "13.05MiB / 128MiB",
"PIDs": "6"
}
],
"other_projects": {},
"sampling": "Shared Docker snapshot; no throughput claim"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-06T23:54:56Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode head --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/head-1.json
{"mode": "head", "repeat": 1, "result": "PASS", "retained": {"normal": 85, "error": 1, "slow": 1}}
exit_code: 0 elapsed_seconds: 124.106
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:05:25Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode head --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/head-2.json
{"mode": "head", "repeat": 2, "result": "PASS", "retained": {"normal": 76, "error": 4, "slow": 1}}
exit_code: 0 elapsed_seconds: 124.746
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T01:09:32Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode head --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/head-3.json
{"mode": "head", "repeat": 3, "result": "PASS", "retained": {"normal": 76, "error": 1, "slow": 1}}
exit_code: 0 elapsed_seconds: 125.216
@@ -0,0 +1,28 @@
{
"decision_at": "2026-11-07T01:05:32.987756+00:00",
"interpretation": "Observed wall-clock gaps while monotonic elapsed remains nominal; likely host suspension or clock discontinuity. Cause not asserted as proven. Only these two completed series are repeated; raw originals preserved byte-for-byte.",
"runs": [
{
"series": "on-3",
"reason": "Wall-clock discontinuity inside the measurement/accounting window; excluded from resource/ingest comparison, HTTP PASS alone is insufficient.",
"load_seconds": 39.970131158828735,
"finish_to_report_seconds": 932.7143309116364,
"max_resource_gap_seconds": 2.047463893890381,
"files": {
"on-3.json": "d0c4799cea3f5a5c819c175c738b6099158bc5ca9b6d2d840a89c9d73d394953",
"on-3.txt": "64199cc40d2a81d15a219e63c04aac875929eba41110bfbf3909a4d43518e010"
}
},
{
"series": "head-3",
"reason": "Wall-clock discontinuity inside the measurement/accounting window; excluded from resource/ingest comparison, HTTP PASS alone is insufficient.",
"load_seconds": 938.1542620658875,
"finish_to_report_seconds": 34.9133198261261,
"max_resource_gap_seconds": 900.3541407585144,
"files": {
"head-3.json": "3dbecccf017b26bc6a256860b795f8cc9e4c47099da2d46e8303120f49686f45",
"head-3.txt": "0b4f1607837921746893700a5897b1a1c94db115d59c750f3ec9631266e95a69"
}
}
]
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:30:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode head --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/head-3.json
{"mode": "head", "repeat": 3, "result": "PASS", "retained": {"normal": 70, "error": 1, "slow": 3}}
exit_code: 0 elapsed_seconds: 125.007
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:13:50Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode on --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/on-3.json
{"mode": "on", "repeat": 3, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 123.841
@@ -0,0 +1,115 @@
{
"at": "2026-11-07T01:11:53.670099+00:00",
"policy": "40s workload: wall window38..42s, finish-to-report30..45s, maximum2s-sampling gap<5s. All three conditions required independently of HTTP PASS.",
"runs": [
{
"file": "off-1.json",
"load_seconds": 39.9768009185791,
"finish_to_report_seconds": 34.378885984420776,
"max_resource_gap_seconds": 2.047776937484741,
"result": "usable"
},
{
"file": "off-2.json",
"load_seconds": 39.96762013435364,
"finish_to_report_seconds": 35.243422985076904,
"max_resource_gap_seconds": 2.048405885696411,
"result": "usable"
},
{
"file": "off-3.json",
"load_seconds": 39.97038507461548,
"finish_to_report_seconds": 35.21114897727966,
"max_resource_gap_seconds": 2.0483851432800293,
"result": "usable"
},
{
"file": "on-1.json",
"load_seconds": 39.960899114608765,
"finish_to_report_seconds": 35.31035900115967,
"max_resource_gap_seconds": 2.0440289974212646,
"result": "usable"
},
{
"file": "on-2.json",
"load_seconds": 39.967061042785645,
"finish_to_report_seconds": 34.75409412384033,
"max_resource_gap_seconds": 2.045710802078247,
"result": "usable"
},
{
"file": "on-3.json",
"load_seconds": 39.961934089660645,
"finish_to_report_seconds": 35.3386869430542,
"max_resource_gap_seconds": 2.0448179244995117,
"result": "usable"
},
{
"file": "head-1.json",
"load_seconds": 39.960408210754395,
"finish_to_report_seconds": 34.749109983444214,
"max_resource_gap_seconds": 2.0449328422546387,
"result": "usable"
},
{
"file": "head-2.json",
"load_seconds": 39.95907402038574,
"finish_to_report_seconds": 34.537447929382324,
"max_resource_gap_seconds": 2.0501198768615723,
"result": "usable"
},
{
"file": "head-3.json",
"load_seconds": 39.96534299850464,
"finish_to_report_seconds": 35.03631401062012,
"max_resource_gap_seconds": 2.0513830184936523,
"result": "usable"
},
{
"file": "tail-1.json",
"load_seconds": 39.969640254974365,
"finish_to_report_seconds": 35.31044888496399,
"max_resource_gap_seconds": 2.0470268726348877,
"result": "usable"
},
{
"file": "tail-2.json",
"load_seconds": 39.96142888069153,
"finish_to_report_seconds": 34.63654613494873,
"max_resource_gap_seconds": 2.0448548793792725,
"result": "usable"
},
{
"file": "tail-3.json",
"load_seconds": 39.968284130096436,
"finish_to_report_seconds": 35.04265284538269,
"max_resource_gap_seconds": 2.047273874282837,
"result": "usable"
},
{
"file": "balanced-1.json",
"load_seconds": 39.965638160705566,
"finish_to_report_seconds": 34.83575201034546,
"max_resource_gap_seconds": 2.0490190982818604,
"result": "usable"
},
{
"file": "balanced-2.json",
"load_seconds": 39.96572422981262,
"finish_to_report_seconds": 35.22300386428833,
"max_resource_gap_seconds": 2.0449130535125732,
"result": "usable"
},
{
"file": "balanced-3.json",
"load_seconds": 39.96644401550293,
"finish_to_report_seconds": 35.353606939315796,
"max_resource_gap_seconds": 2.0450639724731445,
"result": "usable"
}
],
"excluded": [
"invalid-time-gap/on-3.json",
"invalid-time-gap/head-3.json"
]
}
@@ -0,0 +1,115 @@
{
"at": "2026-11-07T01:11:53.670099+00:00",
"policy": "40s workload: wall window38..42s, finish-to-report30..45s, maximum2s-sampling gap<5s. All three conditions required independently of HTTP PASS.",
"runs": [
{
"file": "off-1.json",
"load_seconds": 39.9768009185791,
"finish_to_report_seconds": 34.378885984420776,
"max_resource_gap_seconds": 2.047776937484741,
"result": "usable"
},
{
"file": "off-2.json",
"load_seconds": 39.96762013435364,
"finish_to_report_seconds": 35.243422985076904,
"max_resource_gap_seconds": 2.048405885696411,
"result": "usable"
},
{
"file": "off-3.json",
"load_seconds": 39.97038507461548,
"finish_to_report_seconds": 35.21114897727966,
"max_resource_gap_seconds": 2.0483851432800293,
"result": "usable"
},
{
"file": "on-1.json",
"load_seconds": 39.960899114608765,
"finish_to_report_seconds": 35.31035900115967,
"max_resource_gap_seconds": 2.0440289974212646,
"result": "usable"
},
{
"file": "on-2.json",
"load_seconds": 39.967061042785645,
"finish_to_report_seconds": 34.75409412384033,
"max_resource_gap_seconds": 2.045710802078247,
"result": "usable"
},
{
"file": "on-3.json",
"load_seconds": 39.961934089660645,
"finish_to_report_seconds": 35.3386869430542,
"max_resource_gap_seconds": 2.0448179244995117,
"result": "usable"
},
{
"file": "head-1.json",
"load_seconds": 39.960408210754395,
"finish_to_report_seconds": 34.749109983444214,
"max_resource_gap_seconds": 2.0449328422546387,
"result": "usable"
},
{
"file": "head-2.json",
"load_seconds": 39.95907402038574,
"finish_to_report_seconds": 34.537447929382324,
"max_resource_gap_seconds": 2.0501198768615723,
"result": "usable"
},
{
"file": "head-3.json",
"load_seconds": 39.96534299850464,
"finish_to_report_seconds": 35.03631401062012,
"max_resource_gap_seconds": 2.0513830184936523,
"result": "usable"
},
{
"file": "tail-1.json",
"load_seconds": 39.969640254974365,
"finish_to_report_seconds": 35.31044888496399,
"max_resource_gap_seconds": 2.0470268726348877,
"result": "usable"
},
{
"file": "tail-2.json",
"load_seconds": 39.96142888069153,
"finish_to_report_seconds": 34.63654613494873,
"max_resource_gap_seconds": 2.0448548793792725,
"result": "usable"
},
{
"file": "tail-3.json",
"load_seconds": 39.968284130096436,
"finish_to_report_seconds": 35.04265284538269,
"max_resource_gap_seconds": 2.047273874282837,
"result": "usable"
},
{
"file": "balanced-1.json",
"load_seconds": 39.965638160705566,
"finish_to_report_seconds": 34.83575201034546,
"max_resource_gap_seconds": 2.0490190982818604,
"result": "usable"
},
{
"file": "balanced-2.json",
"load_seconds": 39.96572422981262,
"finish_to_report_seconds": 35.22300386428833,
"max_resource_gap_seconds": 2.0449130535125732,
"result": "usable"
},
{
"file": "balanced-3.json",
"load_seconds": 39.96644401550293,
"finish_to_report_seconds": 35.353606939315796,
"max_resource_gap_seconds": 2.0450639724731445,
"result": "usable"
}
],
"excluded": [
"invalid-time-gap/on-3.json",
"invalid-time-gap/head-3.json"
]
}
+21
View File
@@ -0,0 +1,21 @@
# Повтор трека после позднего переноса
Приложение и измеритель: `bc1d7aa7713858acb5d65b61d07e69a640f1ee97`. Образ/лимиты: `../runtime.json`. Причина повторения — изменён путь auth/cache, используемый GET users/me; исторические серии `evidence/track5` на bc0b162 остаются неизменными и не выдаются за результат нового кода.
Гипотеза: head 10% уменьшает ingest, теряя редкие события; tail сохраняет ошибки и slow, сокращая запись в Tempo, но сохраняет расходы SDK. Balanced: tail 5% обычных трасс, все ERROR и latency >=300 ms; период метрик 30 s вместо 10 s.
Команда каждой серии: `scripts/lab6.sh python3 scripts/obs_cost.py --mode MODE --repeat N --duration 40 --rate 20 --output evidence/forward-published/cost/MODE-N.json`. Порядок: off/on/head/tail/balanced, три круга. 20 прогревочных GET, 35 s ожидания экспорта; 40 s open-loop, 800 arrivals с периодом 50 ms, 64 клиентских потока. 768 обычных запросов, 16 контролируемых 503, 16 задержек 350 ms. Затем 35 s drain. finally возвращает обычный Collector, SDK on/ratio1/interval10s и отключает fault hook. Все серии идут последовательно, отдельные проверки и другие нагрузки этого агента одновременно не запускаются.
Latency измерена клиентом, schedule_lag записан отдельно. CPU — delta cgroup total_usage / время внешних Docker samples; RAM — usage−inactive_file. Это не SDK-метрики. Группы application (API, relay, worker), observability, business stores/LB раздельны. Окно CPU охватывает нагрузку, не последнюю работу tail sampler во время drain; RAM — пик наблюдаемых samples, не непрерывный максимум.
Ingest: Tempo/Loki received bytes и Prometheus appended samples; разные единицы не складываются. Окно включает drain и постоянный фон self-scrapes. SDK ended сравнивается с Collector accepted, export failures учитываются отдельно; для tail accepted−sent включает намеренную фильтрацию. Отбор server traces по уникальному префиксу каждой серии и категории, search limit5000 >800. Для head неизвестное число несозданных DB spans не оценивается вымышленным числом; наблюдается доля server roots. Off — отсутствие SDK, а не ошибка доставки.
Фон Docker/host записан в conditions-start и conditions-round-N, inventory дополнительно есть в каждом raw JSON. Host не эксклюзивен, поэтому малые различия latency/CPU не доказывают статистическую значимость. Три повтора дают наблюдаемый диапазон, не доверительный интервал. Workload HTTP/DB, worker ожидает заданий; массовая обработка изображений отдельно проверена в png-boundary.json. Tail decision_wait10s не доказывает полноту цепочек с очень поздними retry. Успешные завершённые серии сохраняются для финального аудита без автоматического повторного прогона.
Сводка: `python3 scripts/obs_cost_summary.py evidence/forward-published/cost`. Графики: `uv run --no-project --with matplotlib==3.11.2 python tools/plot_observability.py evidence/forward-published/cost`.
## Пригодность серий и повтор двух прогонов
После двух первых кругов обнаружен разрыв настенных часов относительно монотонного таймера (вероятен сон host, причина не утверждается доказанной). В первоначальном on-3 окно от конца нагрузки до отчёта стало 932,714 s, в head-3 сама нагрузка по wall clock — 938,154 s, максимальный разрыв внешних samples — 900,354 s. HTTP PASS этих прогонов не означает пригодность CPU/ingest. Оба оригинала сохранены без изменения в invalid-time-gap, SHA-256 и решение — invalid-series.json; они исключены из сравнения. Остальные завершённые серии не перезапускаются.
Для оставшихся измерений включён ограниченный по времени `caffeinate -i -s`; повторяются только on-3 и head-3 с теми же параметрами и SHA, последовательно. Проверка пригодности всех включённых серий: finished−started 38..42 s, utc−finished 30..45 s (35 s drain плюс запросы/округление), max соседнего resource.at gap <5 s при периоде2 s. Результат — measurement-audit.json. Отдельные паузы до начала измеряемого окна не включаются в CPU/ingest и сами по себе не бракуют серию. Контекст общего host и фактический фон остаются ограничениями.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-06T23:50:47Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode off --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/off-1.json
{"mode": "off", "repeat": 1, "result": "PASS", "retained": {"normal": 0, "error": 0, "slow": 0}}
exit_code: 0 elapsed_seconds: 125.202
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:01:16Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode off --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/off-2.json
{"mode": "off", "repeat": 2, "result": "PASS", "retained": {"normal": 0, "error": 0, "slow": 0}}
exit_code: 0 elapsed_seconds: 125.016
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:11:45Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode off --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/off-3.json
{"mode": "off", "repeat": 3, "result": "PASS", "retained": {"normal": 0, "error": 0, "slow": 0}}
exit_code: 0 elapsed_seconds: 125.038
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
date: 2026-11-06T23:52:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode on --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/on-1.json
{"mode": "on", "repeat": 1, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 124.436
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
date: 2026-11-07T00:03:21Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode on --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/on-2.json
{"mode": "on", "repeat": 2, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 123.922
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
date: 2026-11-07T01:07:28Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode on --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/on-3.json
{"mode": "on", "repeat": 3, "result": "PASS", "retained": {"normal": 768, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 124.718
@@ -0,0 +1,29 @@
# Результаты повторного трека
Приложение и измеритель: bc1d7aa7713858acb5d65b61d07e69a640f1ee97. Все 15 пригодных серий завершены: 12000 запросов, 0 неожиданных ответов. Два первоначальных прогона (ещё 1600 запросов) исключены по разрывам времени, сохранены в invalid-time-gap и повторены; подробности в method.md и invalid-series.json. Все включённые серии прошли measurement-audit.json. Во всех сериях SDK ended = Collector accepted, exporter failures = 0.
| Режим | normal p95 ms: median [min;max] | общий p99 ms | CPU app / obs cores | RAM app / obs MiB, median peak |
|---|---:|---:|---:|---:|
| off | 11.583 [11.572; 11.856] | 358.73 | 0.1404 / 0.0256 | 655.5 / 1013.3 |
| on | 12.709 [12.554; 12.993] | 359.47 | 0.1726 / 0.0287 | 706.8 / 1058.5 |
| head | 12.556 [12.354; 12.652] | 358.37 | 0.1657 / 0.0261 | 723.8 / 1076.1 |
| tail | 12.781 [12.555; 12.920] | 359.11 | 0.1717 / 0.0272 | 721.0 / 1021.2 |
| balanced | 12.895 [12.833; 13.031] | 359.75 | 0.1749 / 0.0258 | 707.1 / 1027.9 |
| Режим | Tempo KiB | Loki KiB | Prom samples | SDK / sent spans, median | normal /2304 | error /48 | slow /48 |
|---|---:|---:|---:|---:|---:|---:|---:|
| off | 0.0 | 0.0 | 33118 | 0 / 0 | 0 | 0 | 0 |
| on | 1662.2 | 288.3 | 36284 | 5489 / 5489 | 2304 | 48 | 48 |
| head | 176.2 | 288.4 | 37234 | 543 / 543 | 237 | 6 | 3 |
| tail | 251.8 | 289.7 | 36657 | 5492 / 699 | 235 | 48 | 48 |
| balanced | 130.2 | 289.8 | 34459 | 5486 / 352 | 101 | 48 | 48 |
Balanced сохраняет 48/48 errors и 48/48 slow, медианный Tempo ingest ниже on на 92.2%. Head пропустил 42 ошибок и 45 slow. Это отбор sampling, а не сбой доставки.
Фактическая скорость 20.012–20.020 requests/s. Максимальный schedule lag 61.055 ms. Внешних samples на серию: 21–21.
Рекомендация в пределах этого workload: balanced сокращает запись трасс и сохраняет контрольные ERROR/slow, но не устраняет цену SDK. Все spans создаются до tail-решения. Малые различия latency/CPU не доказывают статистическую значимость; ограничения общего host, HTTP/DB workload и окна CPU приведены в method.md. Поздние spans за пределами decision window отдельно не доказаны.
Проверенная конфигурация: `OTEL_COLLECTOR_CONFIG=collector-balanced.yaml OTEL_METRIC_EXPORT_INTERVAL=30000 scripts/lab6.sh docker compose up -d --no-deps --wait otel-collector api relay worker`. Экспериментальные fault hooks по умолчанию выключены. После серий восстановлен default on/100%, рекомендация не включается скрыто.
comparison.json рассчитан из 15 raw JSON; comparison.png/svg показывают median, отдельные повторы и min/max. Старые evidence/track5 не изменены и не смешаны с этим набором.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-06T23:57:01Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode tail --repeat 1 --duration 40 --rate 20 --output evidence/forward-published/cost/tail-1.json
{"mode": "tail", "repeat": 1, "result": "PASS", "retained": {"normal": 82, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 125.775
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:07:30Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode tail --repeat 2 --duration 40 --rate 20 --output evidence/forward-published/cost/tail-2.json
{"mode": "tail", "repeat": 2, "result": "PASS", "retained": {"normal": 65, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 125.706
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
date: 2026-11-07T00:47:55Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_cost.py --mode tail --repeat 3 --duration 40 --rate 20 --output evidence/forward-published/cost/tail-3.json
{"mode": "tail", "repeat": 3, "result": "PASS", "retained": {"normal": 88, "error": 16, "slow": 16}}
exit_code: 0 elapsed_seconds: 127.417
+230
View File
@@ -0,0 +1,230 @@
date: 2026-11-06T23:49:55Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_check.py dashboards --strict
{
"checked_at": "2026-11-06T23:49:56+00:00",
"targets": [
{
"dashboard": "messenger-api.json",
"panel": "RPS бизнес-запросов",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Доля 5xx (2m)",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "p95 latency (5m)",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Доля не-5xx (окно 1h)",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "RPS по маршруту и классу статуса",
"datasource": "prometheus",
"series": 11,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Доля ошибок",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Доля ошибок",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Latency p50 / p95 / p99",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Latency p50 / p95 / p99",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Latency p50 / p95 / p99",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "p95 по маршруту",
"datasource": "prometheus",
"series": 9,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "RPS по реплике",
"datasource": "prometheus",
"series": 4,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Активные запросы",
"datasource": "prometheus",
"series": 6,
"missing_metrics": []
},
{
"dashboard": "messenger-api.json",
"panel": "Логи API (ошибки и предупреждения)",
"datasource": "loki",
"lines": 5
},
{
"dashboard": "messenger-api.json",
"panel": "Трассы API с ошибкой",
"datasource": "tempo",
"traces": 5
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Jobs по исходу",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Длительность обработки job",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Длительность обработки job",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Длительность обработки job",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Логи worker",
"datasource": "loki",
"lines": 5
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Трассы worker",
"datasource": "tempo",
"traces": 5
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Durable queue depth (includes retry)",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Oldest durable job age",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "DB pool used / waiting / capacity",
"datasource": "prometheus",
"series": 9,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Worker busy / capacity",
"datasource": "prometheus",
"series": 2,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Process CPU cores",
"datasource": "prometheus",
"series": 3,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Process resident memory",
"datasource": "prometheus",
"series": 3,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Time to ready p50 / p95 / p99",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Time to ready p50 / p95 / p99",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Time to ready p50 / p95 / p99",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "Ready within 30s, SLO 95% / 1h",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
},
{
"dashboard": "messenger-pipeline.json",
"panel": "API availability, SLO 99% / 1h",
"datasource": "prometheus",
"series": 1,
"missing_metrics": []
}
],
"problems": []
}
exit_code: 0 elapsed_seconds: 0.112
@@ -0,0 +1,45 @@
{
"at": "2026-11-07T01:11:54.405624+00:00",
"process_settings": [
{
"name": "/mtusi2026lab6-api-1",
"settings": {
"OTEL_SDK_DISABLED": "false",
"OTEL_TRACE_RATIO": "1",
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
"COST_EXPERIMENT": "false"
}
},
{
"name": "/mtusi2026lab6-api-2",
"settings": {
"OTEL_SDK_DISABLED": "false",
"OTEL_TRACE_RATIO": "1",
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
"COST_EXPERIMENT": "false"
}
},
{
"name": "/mtusi2026lab6-relay-1",
"settings": {
"OTEL_SDK_DISABLED": "false",
"OTEL_TRACE_RATIO": "1",
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
"COST_EXPERIMENT": null
}
},
{
"name": "/mtusi2026lab6-worker-1",
"settings": {
"OTEL_SDK_DISABLED": "false",
"OTEL_TRACE_RATIO": "1",
"OTEL_METRIC_EXPORT_INTERVAL": "10000",
"COST_EXPERIMENT": null
}
}
],
"collector_command": [
"--config=/etc/otelcol/collector.yaml"
],
"result": "PASS"
}
@@ -0,0 +1,6 @@
date: 2026-11-06T23:44:50Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/python -c 'import sqlalchemy,alembic; from sqlalchemy import select,literal; from sqlalchemy.dialects import postgresql; print("SQLAlchemy",sqlalchemy.__version__,"Alembic",alembic.__version__); print(select(literal(1)).with_for_update(read=True,key_share=True).compile(dialect=postgresql.dialect()))'
SQLAlchemy 2.0.45 Alembic 1.16.5
SELECT %(param_1)s AS anon_1 FOR KEY SHARE
exit_code: 0 elapsed_seconds: 0.182
+8
View File
@@ -0,0 +1,8 @@
date: 2026-11-06T23:45:11Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18086"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 2.876}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
exit_code: 0 elapsed_seconds: 16.433
@@ -0,0 +1,14 @@
date: 2026-11-07T01:12:37Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make check validate lint
python3 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.
.venv/bin/ruff check src student-tests scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
All checks passed!
.venv/bin/ruff format --check src student-tests scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
216 files already formatted
.venv/bin/ty check src student-tests alembic
All checks passed!
exit_code: 0 elapsed_seconds: 0.763
@@ -0,0 +1,6 @@
date: 2026-11-07T01:11:54Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make test
python3 tests/smoke.py --base-url "http://127.0.0.1:18086"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
exit_code: 0 elapsed_seconds: 1.813
+22
View File
@@ -0,0 +1,22 @@
[
{
"severity": "minor",
"file": "scripts/limits.py:33; .github/workflows/application.yml:85",
"problem": "Inherited service allowlists omit OTel/helper services. Runtime limits checked independently in evidence/grade3/runtime.json; helper audit remains incompatible. Late-forward audit: evidence/forward-published/runtime.json confirms current container limits independently."
},
{
"severity": "minor",
"file": "infra/prometheus/rules/messenger.alerts.yml",
"problem": "API error-rate SLI excludes HAProxy-generated 503 and can miss the first burst of a new counter series. Full PostgreSQL pause did not fire (database-incident.txt); sustained SQL-lock incident is verified separately. Late-forward SQL-lock alert firing/resolved: evidence/forward-published/incident-database.txt. No alert rules changed."
},
{
"severity": "minor",
"file": "infra/otel/collector.yaml; compose.yaml",
"problem": "Collector reached 252.7 MiB / 256 MiB (98.7%) during storage outage without observed OOM; memory headroom is small (storage-incident.txt). Configuration unchanged, evidence/forward-published/preserved-mechanisms.json; no claim of a new storage-outage run."
},
{
"severity": "minor",
"file": "evidence/track5/comparison.svg; evidence/track5/*.txt; openspec/specs/lab6-observability-cost/spec.md; evidence/forward-published/cost/comparison.svg; evidence/forward-published/*.txt",
"problem": "git show --check reports trailing whitespace in generated SVG/raw command output and a final blank line in generated OpenSpec. This cosmetic check did not pass; make lint passed. Raw output preserved without reformatting. Current evidence has the same cosmetic class; actual result retained in evidence/forward-published/whitespace-check.txt. No source formatting failure."
}
]
@@ -0,0 +1,52 @@
date: 2026-11-06T23:41:45Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ sh -c '
set -eu
export API_IMAGE=mtusi-messenger:mtusi2026lab6
dc() { docker compose -p hlpipe-lab6-forward-lb -f student-tests/tools/lb_errors/compose.yaml "$@"; }
trap "dc down" EXIT
dc up -d --wait api lb
dc run --rm probe 502
dc run --rm probe 504
dc stop api
dc run --rm probe 503
'
Network hlpipe-lab6-forward-lb_default Creating
Network hlpipe-lab6-forward-lb_default Created
Container hlpipe-lab6-forward-lb-api-1 Creating
Container hlpipe-lab6-forward-lb-lb-1 Creating
Container hlpipe-lab6-forward-lb-api-1 Created
Container hlpipe-lab6-forward-lb-lb-1 Created
Container hlpipe-lab6-forward-lb-api-1 Starting
Container hlpipe-lab6-forward-lb-lb-1 Starting
Container hlpipe-lab6-forward-lb-api-1 Started
Container hlpipe-lab6-forward-lb-lb-1 Started
Container hlpipe-lab6-forward-lb-api-1 Waiting
Container hlpipe-lab6-forward-lb-lb-1 Waiting
Container hlpipe-lab6-forward-lb-lb-1 Healthy
Container hlpipe-lab6-forward-lb-api-1 Healthy
{"status": 502, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.001}
{"status": 502, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.001}
{"status": 502, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.001}
{"status": 502, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.001}
{"status": 504, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 10.012}
{"status": 504, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 10.006}
{"status": 504, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 10.012}
{"status": 504, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 10.005}
Container hlpipe-lab6-forward-lb-api-1 Stopping
Container hlpipe-lab6-forward-lb-api-1 Stopped
{"status": 503, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.004}
{"status": 503, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.0}
{"status": 503, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.0}
{"status": 503, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.0}
Container hlpipe-lab6-forward-lb-api-1 Stopping
Container hlpipe-lab6-forward-lb-lb-1 Stopping
Container hlpipe-lab6-forward-lb-api-1 Stopped
Container hlpipe-lab6-forward-lb-api-1 Removing
Container hlpipe-lab6-forward-lb-api-1 Removed
Container hlpipe-lab6-forward-lb-lb-1 Stopped
Container hlpipe-lab6-forward-lb-lb-1 Removing
Container hlpipe-lab6-forward-lb-lb-1 Removed
Network hlpipe-lab6-forward-lb_default Removing
Network hlpipe-lab6-forward-lb_default Removed
exit_code: 0 elapsed_seconds: 56.915
@@ -0,0 +1,570 @@
date: 2026-11-06T23:46:44Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_incidents.py chain
{
"started": "2026-11-06T23:46:44+00:00",
"finished": "2026-11-06T23:46:51+00:00",
"result": "PASS",
"scenario": "chain",
"observations": {
"upload_request_id": "353d6004-0fce-4307-b74f-3e1330e099f1",
"trace_id": "2a788dd8fe3bdba6c2b00ff3c6578b34",
"retry": false,
"outcomes": [
"done"
],
"spans": [
{
"service": "messenger-api",
"name": "POST /api/v1/chats/{chat_id}/attachments",
"kind": "SPAN_KIND_SERVER",
"status": "STATUS_CODE_UNSET",
"span_id": "1KnDTB7ilNc=",
"parent_span_id": null,
"duration_ms": 12.268,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "kOTXX/pL+PI=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.111,
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "N7KwpItUcOg=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.063,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "ExH/3uFnT+c=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.049,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "6r9mViaW30k=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.059,
"attempt": null
},
{
"service": "messenger-api",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "VV9EDONJaKo=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.176,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "LGXb7KbUBKk=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.054,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "cY2vJIoHh+I=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.058,
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "4WNnApqEnW4=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.046,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "afET0pqdh0w=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.042,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "qqkEFWjNMRc=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.044,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "B2NutixhjjM=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.185,
"attempt": null
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "iXFIfBn80Z4=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.222,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "ClGR/8bvx7s=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.091,
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "KHHQiGtugf8=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.055,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "h6ioIL28mmE=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.062,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "d1s9gYOAjTY=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.044,
"attempt": null
},
{
"service": "messenger-api",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "Z73gIsACvyk=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.226,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "ZU4nVi/O270=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.155,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "2xriCNx45Ss=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.142,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "7clq4wwABWo=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.117,
"attempt": null
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "HCWi0TAraeg=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.192,
"attempt": null
},
{
"service": "messenger-api",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "eqo0RZhx2r4=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 5.315,
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 create",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"span_id": "DdVW16xtPjM=",
"parent_span_id": "1KnDTB7ilNc=",
"duration_ms": 0.033,
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 publish",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"span_id": "T6EWXaDDQRY=",
"parent_span_id": "DdVW16xtPjM=",
"duration_ms": 4.356,
"attempt": null
},
{
"service": "messenger-worker",
"name": "attachments.attachment.process.v1 process",
"kind": "SPAN_KIND_CONSUMER",
"status": "STATUS_CODE_UNSET",
"span_id": "IJrEIXz5vQU=",
"parent_span_id": "DdVW16xtPjM=",
"duration_ms": 42.854,
"attempt": "1"
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "6yaGj8OjHpo=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.284,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "wvYv52Ceymw=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.195,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "IXF/7Dnea8I=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.17,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "ZFDgbFUJ38s=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.164,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "IiJRka3nsOk=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.55,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "Ql3IoVPxbuk=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.385,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "dZVxc0YqKd4=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.207,
"attempt": null
},
{
"service": "messenger-worker",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "z1F9TtIQdcA=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.185,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "eMgOi4KYRuM=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.571,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "2qFq/3351v8=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.173,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "f3lKJAgUqPM=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.142,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "LN76EV7HKBo=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.133,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "jylzdd/SomQ=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.132,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "ZrNx+53YHDg=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.282,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "C3gPIERIt/0=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.45,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "o//TrE5/tR8=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.095,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "eU7D/wTzm3s=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.082,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "hbXwj1bqqr0=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.066,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "7WW7O9uzEag=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.081,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "R5CuUJ4DKx4=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.139,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "BscD3XrQ6IM=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.236,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "yJ5825EbSlY=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.177,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "ctFlHkHK3w4=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.131,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "miaP4WbLSsw=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 0.2,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 get_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "51Ks1BHIgsY=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 3.52,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 copy_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "xKXCi8QQTjI=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 6.112,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "7yfvSxRV3Io=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 3.501,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "qW0rRHnhoqo=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 3.845,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "8LvmSmoKWfM=",
"parent_span_id": "IJrEIXz5vQU=",
"duration_ms": 3.201,
"attempt": null
}
]
}
}
exit_code: 0 elapsed_seconds: 7.279
@@ -0,0 +1,730 @@
date: 2026-11-06T23:48:04Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_incidents.py database
{
"started": "2026-11-06T23:48:04+00:00",
"finished": "2026-11-06T23:49:55+00:00",
"result": "PASS",
"scenario": "database",
"observations": {
"paused": "2026-11-06T23:48:16+00:00",
"restored": "2026-11-06T23:48:59+00:00",
"requests": [
{
"request_id": "db-incident-8b5642602908-10",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-11",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-12",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-13",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-14",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-15",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-16",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-17",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-18",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-19",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-20",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-21",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-22",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-23",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-24",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-25",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-26",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-27",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-28",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-29",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-30",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-31",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-32",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-33",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-34",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-35",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-36",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-37",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-38",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-39",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-40",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-41",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-42",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-43",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-44",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-45",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-46",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-47",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-48",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-49",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-50",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-51",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-52",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-53",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-54",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-55",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-56",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-57",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-58",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-59",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-60",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-61",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-62",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-63",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-64",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-65",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-66",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-67",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-68",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-69",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-70",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-71",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-72",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-73",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-74",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-75",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-76",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-77",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-78",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-79",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-80",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-81",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-82",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-83",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-84",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-85",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-86",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-87",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-88",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-89",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-90",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-91",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-92",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-93",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-94",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-95",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-96",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-97",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-98",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-99",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-100",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-101",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-102",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-103",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-104",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-105",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-106",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-107",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-108",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-109",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-110",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-111",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-112",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-113",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-114",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-115",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-116",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-117",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-118",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-119",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-120",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-121",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-122",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-123",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-124",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-125",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-126",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-127",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-128",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-129",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-130",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-131",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-132",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-133",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-134",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-135",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-136",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-137",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-138",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-139",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-140",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-141",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-142",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-143",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-144",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-145",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-146",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-147",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-148",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-149",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-150",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-151",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-152",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-153",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-154",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-155",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-156",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-157",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-158",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-159",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-160",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-161",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-162",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-163",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-164",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-165",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-166",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-167",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-168",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-169",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-170",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-171",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-172",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-173",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-174",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-175",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-176",
"status": 503
},
{
"request_id": "db-incident-8b5642602908-177",
"status": 503
}
],
"signals": {
"error_ratio": 0.9181136211080942,
"pool_waiting": 0.0
},
"firing": {
"utc": "2026-11-06T23:48:59+00:00",
"state": "firing",
"alerts": [
{
"labels": {
"alertname": "MessengerHighErrorRate",
"severity": "warning"
},
"annotations": {
"description": "Availability target is 99% over 1 hour; health and client 4xx are excluded from failures.",
"runbook": "infra/prometheus/runbooks.md#messengerhigherrorrate",
"summary": "More than 5% business HTTP 5xx over 1 minute"
},
"state": "firing",
"activeAt": "2026-11-06T23:48:43.389340978Z",
"value": "9.181136211080942e-01"
}
]
},
"resolved": {
"utc": "2026-11-06T23:49:54+00:00",
"state": "resolved",
"alerts": []
},
"dependency_traces": [
{
"trace_id": "1cee5df1144b8c4eb2b801d449bfc0d4",
"db_errors": [
{
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_ERROR",
"duration_ms": 2002.866
}
]
}
]
}
}
exit_code: 0 elapsed_seconds: 111.140
@@ -0,0 +1,881 @@
date: 2026-11-06T23:46:51Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_incidents.py retry
{
"started": "2026-11-06T23:46:51+00:00",
"finished": "2026-11-06T23:47:04+00:00",
"result": "PASS",
"scenario": "retry",
"observations": {
"upload_request_id": "6d25dbc3-0394-4733-8ecb-63c1ac721847",
"trace_id": "933831a64efb8a5deb62b2669afc9698",
"retry": true,
"outcomes": [
"retry_scheduled",
"done"
],
"spans": [
{
"service": "messenger-api",
"name": "POST /api/v1/chats/{chat_id}/attachments",
"kind": "SPAN_KIND_SERVER",
"status": "STATUS_CODE_UNSET",
"span_id": "Debvq4Digx0=",
"parent_span_id": null,
"duration_ms": 21.315,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "Waullyq3N34=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.148,
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "K0kakII6xo4=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.094,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "AiKsaFLbKb8=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.088,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "VrrcbEJGSCc=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.076,
"attempt": null
},
{
"service": "messenger-api",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "AEIu7yg0sn0=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.247,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "Wng5k5TYN4E=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.118,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "sQsK2QPQPJU=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.106,
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "7asDsVS6+xs=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.089,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "EdJsPxFHnjM=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.092,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "PcoY45akFEQ=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.072,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "CdbrJRYuFnE=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.438,
"attempt": null
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "DBBcI9Ulv/M=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.317,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "VtOmph6FOBI=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.104,
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "DPXHG5HHGa8=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.068,
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "1BvLOYIb1uQ=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.074,
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "WUjMiYKCT8Q=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.069,
"attempt": null
},
{
"service": "messenger-api",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "hyJX1jww6uc=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.305,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "48fAH8bMuSA=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.294,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "bT2xInlvctI=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.284,
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "k/ENR5nG9/g=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.153,
"attempt": null
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "t3n5uTl2PlM=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.362,
"attempt": null
},
{
"service": "messenger-api",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "0U2pHU/RDjU=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 5.47,
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 create",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"span_id": "bwRa62vgs2k=",
"parent_span_id": "Debvq4Digx0=",
"duration_ms": 0.008,
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 publish",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"span_id": "KBBn1geg3IA=",
"parent_span_id": "bwRa62vgs2k=",
"duration_ms": 1.818,
"attempt": null
},
{
"service": "messenger-worker",
"name": "attachments.attachment.process.v1 process",
"kind": "SPAN_KIND_CONSUMER",
"status": "STATUS_CODE_ERROR",
"span_id": "BfeHo65w9oE=",
"parent_span_id": "bwRa62vgs2k=",
"duration_ms": 1042.638,
"attempt": "1"
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "bukxkY2R92E=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.116,
"attempt": null
},
{
"service": "messenger-worker",
"name": "select",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "FcFtes5C2S0=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.122,
"attempt": null
},
{
"service": "messenger-worker",
"name": "select",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "VnuhpEWn90A=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.109,
"attempt": null
},
{
"service": "messenger-worker",
"name": "show",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "c4vU6fUOroM=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.087,
"attempt": null
},
{
"service": "messenger-worker",
"name": "show",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "vs4kP7fYreM=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.082,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "QRTMZ3eRZuQ=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.087,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "QDbAA2U75Jw=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.086,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "i6m5Do6EEvo=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.562,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "dFJa0q3l5c4=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.545,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "H3ogXCCzG0A=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.211,
"attempt": null
},
{
"service": "messenger-worker",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "RaAOGgl3WQk=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.167,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "/r2s8Kv3oxI=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.365,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "kAk9rtMbpVM=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.088,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "9IR9tpNfKLc=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.167,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "M9S+7N7xuvQ=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.072,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "AFBHKda3lQU=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.086,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "fmP3rOGz/6Y=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.149,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "4bmV8TnBwkU=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.228,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "VlQ2TBIQJ18=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.284,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "g+FdHSn48nA=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.229,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "IcDc7gRMQrI=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.205,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "pUxoqQhJ7e8=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.223,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "PGfPW8e8aUc=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.599,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "O8F+/YbnorM=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.438,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "G3uEKRm668s=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.282,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "N9g279eP5uk=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.596,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "AnDJGXjW+eE=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 1.173,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "UkN0hQ86NWs=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.192,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "7uLkyTzXADQ=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.141,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "8oCbHKZgLgA=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.129,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "rEsJdw/1gEA=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.107,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "6rP7QLkb1I8=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.342,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "fXmqpv3ea4A=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.243,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "4n80obWEpfo=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.153,
"attempt": null
},
{
"service": "messenger-worker",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "w060gr0ejnc=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.126,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "BK1ZrQHnpFA=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.291,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "10uHmCMpWZg=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.08,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "FeXJXVagnQk=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.07,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "Zy5J9SneT4I=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.061,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "OgHgDqHQkAA=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.069,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "UGk4+2mR1SY=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.147,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "JHlQA/pOcPQ=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.204,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 get_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_ERROR",
"span_id": "+ZFBPxYYZB8=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 979.107,
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 create",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"span_id": "ElpYDj40+k0=",
"parent_span_id": "BfeHo65w9oE=",
"duration_ms": 0.02,
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 publish",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"span_id": "orqs4nj6zdU=",
"parent_span_id": "ElpYDj40+k0=",
"duration_ms": 3.277,
"attempt": null
},
{
"service": "messenger-worker",
"name": "attachments.attachment.process.v1 process",
"kind": "SPAN_KIND_CONSUMER",
"status": "STATUS_CODE_UNSET",
"span_id": "8xpUCowkZ+s=",
"parent_span_id": "ElpYDj40+k0=",
"duration_ms": 2490.326,
"attempt": "2"
},
{
"service": "messenger-worker",
"name": "S3 get_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "zhEmRuqzYl4=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 1755.064,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 copy_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "uvNwJ0jDn4g=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 6.867,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "gkl/eAs8x4o=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 3.521,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "wCX2paxCccQ=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 2.763,
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "8UCt7bEeO+Q=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 2.431,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "VMB1TYgfTdk=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.134,
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "UHP5U7dMydE=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.063,
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "GSoLKxyZ0WA=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.055,
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "m+xW8xOWVyQ=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.06,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "c+H4LJWBCek=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.19,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "AYRYePBZsqE=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.343,
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "XUj8IqOu4fY=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.34,
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "f1ZCF+vhHKg=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.106,
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"span_id": "EGs4gQZnt0g=",
"parent_span_id": "8xpUCowkZ+s=",
"duration_ms": 0.219,
"attempt": null
}
]
}
}
exit_code: 0 elapsed_seconds: 13.425
@@ -0,0 +1,45 @@
date: 2026-11-06T23:47:04Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_incidents.py worker
{
"started": "2026-11-06T23:47:04+00:00",
"finished": "2026-11-06T23:48:04+00:00",
"result": "PASS",
"scenario": "worker",
"observations": {
"stopped": "2026-11-06T23:47:05+00:00",
"restored": "2026-11-06T23:47:52+00:00",
"jobs": 8,
"backlog": {
"depth": 8.0,
"age_seconds": 34.470043
},
"firing": {
"utc": "2026-11-06T23:47:49+00:00",
"state": "firing",
"alerts": [
{
"labels": {
"alertname": "MessengerQueueLag",
"severity": "warning"
},
"annotations": {
"description": "Target is 95% ready within 30 seconds over 1 hour; depth includes retry and leased work.",
"runbook": "infra/prometheus/runbooks.md#messengerqueuelag",
"summary": "Durable attachment backlog has waited more than 15 seconds"
},
"state": "firing",
"activeAt": "2026-11-06T23:47:33.389340978Z",
"value": "3.4470043e+01"
}
]
},
"resolved": {
"utc": "2026-11-06T23:48:04+00:00",
"state": "resolved",
"alerts": []
},
"depth_after": 0.0
}
}
exit_code: 0 elapsed_seconds: 59.808
+154
View File
@@ -0,0 +1,154 @@
date: 2026-11-06T23:37:24Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/python student-tests/tools/forward_network.py
{
"checks": [
{
"case": "non_ascii_basic",
"raw_hex": "42617369632080",
"status": 401,
"instance": "88b81a690916"
},
{
"case": "non_ascii_basic",
"raw_hex": "426173696320ff",
"status": 401,
"instance": "cbf0e0c086a8"
},
{
"case": "non_ascii_basic",
"raw_hex": "426173696320c3a9",
"status": 401,
"instance": "88b81a690916"
},
{
"case": "non_ascii_basic",
"raw_hex": "42617369632059577870593255366332566a636d5630ff",
"status": 401,
"instance": "cbf0e0c086a8"
},
{
"case": "nul_basic_display_title",
"position": "'\\x00'",
"status": [
401,
400,
201,
400
],
"instance": "88b81a690916"
},
{
"case": "nul_basic_display_title",
"position": "'\\x00abc'",
"status": [
401,
400,
201,
400
],
"instance": "cbf0e0c086a8"
},
{
"case": "nul_basic_display_title",
"position": "'abc\\x00def'",
"status": [
401,
400,
201,
400
],
"instance": "88b81a690916"
},
{
"case": "nul_basic_display_title",
"position": "'abc\\x00'",
"status": [
401,
400,
201,
400
],
"instance": "cbf0e0c086a8"
},
{
"case": "nul_message_corrected_retry",
"position": "'\\x00'",
"instances": [
"cbf0e0c086a8",
"88b81a690916"
],
"status": [
400,
201,
201
],
"copies": 1
},
{
"case": "nul_message_corrected_retry",
"position": "'\\x00abc'",
"instances": [
"88b81a690916",
"cbf0e0c086a8"
],
"status": [
400,
201,
201
],
"copies": 1
},
{
"case": "nul_message_corrected_retry",
"position": "'abc\\x00def'",
"instances": [
"cbf0e0c086a8",
"88b81a690916"
],
"status": [
400,
201,
201
],
"copies": 1
},
{
"case": "nul_message_corrected_retry",
"position": "'abc\\x00'",
"instances": [
"88b81a690916",
"cbf0e0c086a8"
],
"status": [
400,
201,
201
],
"copies": 1
},
{
"case": "nul_access",
"status": [
404,
404
]
},
{
"case": "logout_across_replicas",
"status": [
204,
401,
401,
401,
401
]
}
],
"instances": [
"88b81a690916",
"cbf0e0c086a8"
],
"pass": true
}
exit_code: 0 elapsed_seconds: 0.326
+19
View File
@@ -0,0 +1,19 @@
date: 2026-11-06T23:46:04Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make obs-validate
sh scripts/obs-validate.sh
otelcol-contrib validate collector.yaml: OK
Checking /etc/prometheus/prometheus.yml
SUCCESS: 2 rule files found
SUCCESS: /etc/prometheus/prometheus.yml is valid prometheus config file syntax
Checking /etc/prometheus/rules/messenger.alerts.yml
SUCCESS: 5 rules found
Checking /etc/prometheus/rules/messenger.recording.yml
SUCCESS: 8 rules found
loki -verify-config: OK
tempo -config.verify: OK
grafana dashboards: valid JSON with uid and panels
exit_code: 0 elapsed_seconds: 1.003
@@ -0,0 +1,43 @@
date: 2026-11-07T01:12:53Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ openspec archive forward-lab5-published-fixes --yes
Proposal warnings in proposal.md (non-blocking):
⚠ Consider splitting changes with more than 10 deltas
Task status: ✓ Complete
Specs to update:
lab1-messenger-chats: update
lab1-messenger-history: update
lab1-messenger-identity: update
lab2-auth-sessions: update
lab2-session-cache: update
lab3-load-balancing: update
lab4-attachments: update
lab5-image-variants: update
lab5-job-delivery: update
lab5-job-recovery: update
Applying changes to openspec/specs/lab1-messenger-chats/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab1-messenger-history/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab1-messenger-identity/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab2-auth-sessions/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab2-session-cache/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab3-load-balancing/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab4-attachments/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab5-image-variants/spec.md:
~ 2 modified
Applying changes to openspec/specs/lab5-job-delivery/spec.md:
~ 1 modified
Applying changes to openspec/specs/lab5-job-recovery/spec.md:
~ 1 modified
Totals: + 0, ~ 11, - 0, → 0
Specs updated successfully.
Change 'forward-lab5-published-fixes' archived as '2026-11-07-forward-lab5-published-fixes'.
exit_code: 0 elapsed_seconds: 0.799
@@ -0,0 +1,32 @@
date: 2026-11-07T01:12:54Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ openspec validate --all --strict
- Validating...
✓ spec/lab1-event-publication
✓ spec/lab1-messenger-chats
✓ spec/lab1-messenger-history
✓ spec/lab1-messenger-identity
✓ spec/lab1-service-operability
✓ spec/lab2-auth-sessions
✓ spec/lab2-dependency-failures
✓ spec/lab2-history-index
✓ spec/lab2-persistent-storage
✓ spec/lab2-session-cache
✓ spec/lab3-failover-operations
✓ spec/lab3-idempotent-messages
✓ spec/lab3-load-balancing
✓ spec/lab4-attachments
✓ spec/lab4-object-storage
✓ spec/lab4-storage-reconciler
✓ spec/lab4-upload-resilience
✓ spec/lab5-attachment-pipeline
✓ spec/lab5-image-variants
✓ spec/lab5-job-delivery
✓ spec/lab5-job-recovery
✓ spec/lab5-versioned-pipeline
✓ spec/lab6-observability-cost
✓ spec/lab6-observability-resilience
✓ spec/lab6-service-telemetry
✓ spec/lab6-telemetry-stack
Totals: 26 passed, 0 failed (26 items)
exit_code: 0 elapsed_seconds: 0.840
@@ -0,0 +1,7 @@
date: 2026-11-06T23:44:57Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18086"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit_code: 0 elapsed_seconds: 14.386
+396
View File
@@ -0,0 +1,396 @@
{
"suite": "lab5-pipeline-idempotency",
"started_at": "2026-11-06T23:43:01.778840Z",
"source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"config": {
"base_url": "http://127.0.0.1:18086",
"level": 4,
"only": "smoke_pipeline,worker_down_broker_restart,duplicate_after_ready,poison_image,s3_outage_recovers,retry_exhausted,crash_after_s3_before_commit,crash_after_commit_before_ack,malformed_message_dead_lettered",
"expect_variants": "thumbnail,crop,optimized",
"max_attempts": 5,
"stall_seconds": 15.0,
"compose": "docker compose",
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
},
"invariants": [
{
"id": "terminal",
"statement": "every 202 reaches its expected terminal state",
"result": "PASS",
"details": {
"accepted": 7
}
},
{
"id": "single_effect",
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
"result": "PASS",
"details": {
"rows": 0
}
},
{
"id": "no_ready_rollback",
"statement": "ready never returns to queued or processing",
"result": "PASS",
"details": {
"traced": 7
}
},
{
"id": "monotonic_publication",
"statement": "published_version only moves forward",
"result": "PASS",
"details": {
"sampled": 4
}
},
{
"id": "bytes_match_metadata",
"statement": "sha256, size and real dimensions match served bytes",
"result": "PASS",
"details": {
"verified": 6
}
},
{
"id": "bounded_attempts",
"statement": "attempt <= JOB_MAX_ATTEMPTS",
"result": "PASS",
"details": {
"rows": 0
}
},
{
"id": "no_orphans",
"statement": "no pending outbox, messages, dead letters, staging, objects",
"result": "PASS",
"details": {
"queues": {
"attachments.process": [
0,
0
],
"attachments.process.dlq": [
1,
0
]
},
"s3_objects": 25,
"scoped_attachments": 7
}
},
{
"id": "no_lost_202",
"statement": "every 202 is present in PostgreSQL and the API",
"result": "PASS",
"details": {
"accepted": 7
}
}
],
"accepted_ids": [
"01a1b33e-a321-7142-83b3-3fdee94a1e28",
"01a1b33e-aa74-7790-8cd5-3fee8c57126d",
"01a1b33e-f795-73b2-b69a-743288712b08",
"01a1b33f-0b50-777a-9469-1535113a47a9",
"01a1b33f-5692-76e5-8536-f28c4945ae13",
"01a1b33f-a49c-7103-b67d-c29f1bd65c84",
"01a1b33f-d382-774e-9583-d5cef2d30c38"
],
"scenarios": [
{
"name": "smoke_pipeline",
"level": 3,
"window": "upload, ready, variants match metadata",
"seconds": 1.3,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33e-a321-7142-83b3-3fdee94a1e28",
"variants": [
"crop",
"optimized",
"thumbnail"
]
}
},
{
"name": "worker_down_broker_restart",
"level": 3,
"window": "worker down, API and broker restart",
"seconds": 20.3,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33e-aa74-7790-8cd5-3fee8c57126d",
"timeline": [
{
"at": "2026-11-06T23:43:10.959629Z",
"step": "worker stopped",
"containers": [
"mtusi2026lab6-worker-1 1751d02b9333 exited Exited (0) Less than a second ago"
]
},
{
"at": "2026-11-06T23:43:10.973606Z",
"step": "upload 202 queued",
"attachment_id": "01a1b33e-aa74-7790-8cd5-3fee8c57126d"
},
{
"at": "2026-11-06T23:43:10.978342Z",
"step": "content 409 while queued"
},
{
"at": "2026-11-06T23:43:10.990681Z",
"step": "message with attachment 201, other messages work",
"message_id": "01a1b33e-aa83-71e1-aaff-3b25d41ca558"
},
{
"at": "2026-11-06T23:43:15.525465Z",
"step": "job is in the broker queue",
"queues": {
"attachments.process": [
1,
0
],
"attachments.process.dlq": [
0,
0
]
}
},
{
"at": "2026-11-06T23:43:21.703039Z",
"step": "API replicas and relay restarted"
},
{
"at": "2026-11-06T23:43:27.716415Z",
"step": "broker restarted with its volume, job survived",
"queues": {
"attachments.process": [
1,
0
],
"attachments.process.dlq": [
0,
0
]
}
},
{
"at": "2026-11-06T23:43:30.530159Z",
"step": "worker started"
},
{
"at": "2026-11-06T23:43:30.703821Z",
"step": "ready",
"variants": [
"crop",
"optimized",
"thumbnail"
]
}
]
}
},
{
"name": "duplicate_after_ready",
"level": 3,
"window": "redelivery of a finished job",
"seconds": 4.6,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33e-f795-73b2-b69a-743288712b08",
"events": [
{
"kind": "enqueued",
"attempt": 1
},
{
"kind": "claimed",
"attempt": 1
},
{
"kind": "done",
"attempt": 1
},
{
"kind": "duplicate_noop",
"attempt": 1
}
]
}
},
{
"name": "poison_image",
"level": 3,
"window": "permanent error without retries",
"seconds": 0.0,
"result": "PASS",
"observed": {
"rejected_by_api": 415
}
},
{
"name": "s3_outage_recovers",
"level": 3,
"window": "transient error with retry",
"seconds": 15.9,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33f-0b50-777a-9469-1535113a47a9",
"jobs": [
{
"job_id": "01a1b33f-0b59-7414-89dc-2384926372d0",
"pipeline_version": 1,
"status": "done",
"attempt": 2
}
]
}
},
{
"name": "retry_exhausted",
"level": 3,
"window": "transient error until JOB_MAX_ATTEMPTS",
"seconds": 20.0,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33f-5692-76e5-8536-f28c4945ae13",
"jobs": [
{
"job_id": "01a1b33f-569e-75f6-9488-c469cbd4d0f4",
"pipeline_version": 1,
"status": "failed",
"attempt": 5
}
]
}
},
{
"name": "crash_after_s3_before_commit",
"level": 4,
"window": "after S3 write, before COMMIT",
"seconds": 11.9,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33f-a49c-7103-b67d-c29f1bd65c84",
"exit_code": 137,
"after_crash": {
"status": "processing",
"variant_rows": 0,
"containers": [
"mtusi2026lab6-worker-1 3382d464922e exited Exited (137) Less than a second ago"
]
},
"variants": [
{
"pipeline_version": 1,
"name": "crop",
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
"size_bytes": 1820,
"object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/crop-97bf1400b30a28c1.jpg"
},
{
"pipeline_version": 1,
"name": "optimized",
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
"size_bytes": 2462,
"object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/optimized-1090d84ed8411226.webp"
},
{
"pipeline_version": 1,
"name": "thumbnail",
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
"size_bytes": 4679,
"object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/thumbnail-7bc40bf315c8e18e.jpg"
}
]
}
},
{
"name": "crash_after_commit_before_ack",
"level": 4,
"window": "after COMMIT, before ack",
"seconds": 12.7,
"result": "PASS",
"observed": {
"attachment_id": "01a1b33f-d382-774e-9583-d5cef2d30c38",
"exit_code": 137,
"after_crash": {
"status": "ready",
"variants": [
{
"pipeline_version": 1,
"name": "crop",
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
"size_bytes": 1820,
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/crop-97bf1400b30a28c1.jpg"
},
{
"pipeline_version": 1,
"name": "optimized",
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
"size_bytes": 2462,
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/optimized-1090d84ed8411226.webp"
},
{
"pipeline_version": 1,
"name": "thumbnail",
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
"size_bytes": 4679,
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/thumbnail-7bc40bf315c8e18e.jpg"
}
],
"queues": {
"attachments.process": [
0,
0
],
"attachments.process.dlq": [
0,
0
]
},
"containers": [
"mtusi2026lab6-worker-1 efd5bb99e208 exited Exited (137) 1 second ago"
]
},
"variants": [
{
"pipeline_version": 1,
"name": "crop",
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
"size_bytes": 1820,
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/crop-97bf1400b30a28c1.jpg"
},
{
"pipeline_version": 1,
"name": "optimized",
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
"size_bytes": 2462,
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/optimized-1090d84ed8411226.webp"
},
{
"pipeline_version": 1,
"name": "thumbnail",
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
"size_bytes": 4679,
"object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/thumbnail-7bc40bf315c8e18e.jpg"
}
]
}
},
{
"name": "malformed_message_dead_lettered",
"level": 4,
"window": "message that is not a job goes to the DLQ",
"seconds": 5.9,
"result": "PASS",
"observed": {
"dead_letters": 1
}
}
],
"result": "PASS",
"finished_at": "2026-11-06T23:44:57.145369Z"
}
+23
View File
@@ -0,0 +1,23 @@
date: 2026-11-06T23:43:01Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/pipeline_suite.py --level 4 --only smoke_pipeline,worker_down_broker_restart,duplicate_after_ready,poison_image,s3_outage_recovers,retry_exhausted,crash_after_s3_before_commit,crash_after_commit_before_ack,malformed_message_dead_lettered --output evidence/forward-published/pipeline.json
RUN smoke_pipeline
PASS smoke_pipeline
RUN worker_down_broker_restart
PASS worker_down_broker_restart
RUN duplicate_after_ready
PASS duplicate_after_ready
RUN poison_image
PASS poison_image
RUN s3_outage_recovers
PASS s3_outage_recovers
RUN retry_exhausted
PASS retry_exhausted
RUN crash_after_s3_before_commit
PASS crash_after_s3_before_commit
RUN crash_after_commit_before_ack
PASS crash_after_commit_before_ack
RUN malformed_message_dead_lettered
PASS malformed_message_dead_lettered
PASS: lab5 pipeline suite, report evidence/forward-published/pipeline.json
exit_code: 0 elapsed_seconds: 115.421
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,12 @@
date: 2026-11-06T23:39:45Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py png-boundary
gray2 PASS
gray4 PASS
gray16 PASS
rgb16 PASS
gray16-without-trns PASS
concurrent-rgb16 PASS
forced-timeout PASS
forced-memory PASS
exit_code: 0 elapsed_seconds: 98.076
+748
View File
@@ -0,0 +1,748 @@
{
"mode": "png-http",
"source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"started_at": "2026-11-06T23:38:53.013357Z",
"cases": [
{
"name": "gray1",
"started_at": "2026-11-06T23:38:54.717702Z",
"observed": {
"attachment_id": "01a1b33a-c188-72af-b1ce-4978e1626795",
"input_sha256": "1bf59ee41fbd12bf572ac294e0505cc00b904363dd479d643b43062199dd67e3",
"input_bytes": 154,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "1b88218fd7e3ff00d6fa3e4bb732411617126591b2b6837aecdcaef426327eda",
"bytes": 380,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "315ce3f53ac2012226bbeb906c7d37997a7f6fabb3d0ede23a797e66fe4b51ee",
"bytes": 66,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "c5745603d7848377a38bb5228f7817f5d4d4f5af26dadd7d3b2fb97b6a598a8e",
"bytes": 308,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "45eac1bd54dba273142a01a3f01a1530787db5a9fe04aa2483862256dbf16132",
"bytes": 380,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "8c5e7cc56874d00f7d5731a6a89461b264ef4e3b450899b63f4608231180b5aa",
"bytes": 66,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "19305cfd18dc8f3e504d6ef5667ddd7be788836e16317dba5b2c6f590b6a2667",
"bytes": 308,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 5.09
},
{
"name": "gray2",
"started_at": "2026-11-06T23:38:59.807965Z",
"observed": {
"attachment_id": "01a1b33a-d565-77b2-994f-7518e468fdf5",
"input_sha256": "80754a3aa0c8a6014dc7a282b2009d49d064a5c02ed48e634d05d01c0aa3df6b",
"input_bytes": 189,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "def030bc04042aa23362c895a36b18d1d9748360df045decaf68eaeb0aa68deb",
"bytes": 1324,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "fd49dc2d33e7b7963cd8f8f6ef0f0b80117e2c4a7dfb4fd2ee79285e47ff789a",
"bytes": 98,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "1b6f714677aa69673da7ed9eefba73376b8df42eae70a3d91002d2aab7272d9e",
"bytes": 332,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "d14b6cc6fe415bd8c4fef55402a4fb196bc4f39d493ee505d536594b28841697",
"bytes": 1489,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "c8f23e1adbf1add646f23531e270dc25d5108453d50947dec3e73700b0d6741f",
"bytes": 96,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "93107a3ba1a8aba475f8993dfb0d03658cef12a416c08a230653370921dcc00b",
"bytes": 335,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 4.397
},
{
"name": "gray4",
"started_at": "2026-11-06T23:39:04.205343Z",
"observed": {
"attachment_id": "01a1b33a-e693-7245-b762-fe88b9d29eaa",
"input_sha256": "d0ed5b64b3b875be881dd286bedb7948fd06570f9ef1d2cfe41b665a838e426b",
"input_bytes": 263,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "43323e552e3c79e1a1688478d72c2ce370c21e55f1560958f9f6a225bc32f909",
"bytes": 1034,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "dbc0ec3736c18df42f26b8f396b2eb243a18c6a0f5b6bbef8bf4ff7e563032c3",
"bytes": 90,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "d594ebb80ca7939643379ba54392070444eb900ca40bec9c6beee75175fd81ab",
"bytes": 330,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "16e27d4c1df7aac7185381a1f4c8c9cceb05647e98f941c41e38f4dfe4c5ec75",
"bytes": 1197,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "cd31de25056767d9050108c4475d4b72ccd1ab3c36c1c96159b104019e4e3493",
"bytes": 92,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "86afdaf8b40f77c2426ebf10c8d603535d75caa4fc720462be9acc43e39d4fbd",
"bytes": 330,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 4.34
},
{
"name": "gray8",
"started_at": "2026-11-06T23:39:08.545858Z",
"observed": {
"attachment_id": "01a1b33a-f788-73e9-a214-04c3c430adc6",
"input_sha256": "31cb54aacd9e1c324b14e38377f83a21d4084dc134aa3d3e1e5c40e3d9c5dd2f",
"input_bytes": 286,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "14a6e4afbe7e4cf766330007adda1c14168f16957f9409f402a8699a0e5de62f",
"bytes": 621,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "d35d7d59302099ea5fea9e91a405f4ebf8823aae1f53a59f88a09015619136fa",
"bytes": 74,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "d8fac3c82defab08dbb276681b1a7fb2545d883830dae5f965349474897373c7",
"bytes": 324,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "dba34622f93edcd2d3449e217eb9605b1fac739c7c873a875af5d88d8e76bf2e",
"bytes": 637,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "3d4823a2da9971a444b16cf060be5f0b2b7a16bf50a26e7343283d48b562d105",
"bytes": 76,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "d9d4ed6ef383acdf227745e511acaffddf6e90c4f100d0f6ea117f5783581d29",
"bytes": 324,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 4.784
},
{
"name": "gray16",
"started_at": "2026-11-06T23:39:13.331133Z",
"observed": {
"attachment_id": "01a1b33b-0a3a-7163-8d8a-72d0bb6dd9e3",
"input_sha256": "f7fbc2506997045f18891037f3cde42cf1e3b55461948f790779817317574f77",
"input_bytes": 344,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "e49a69181bafd0ebb4348db7030ad2cbf632b296a65f0ba05fe984b3d2b1ccdc",
"bytes": 632,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "751dc647784804af94b6cda23248840f73cab0cfe03227c4568b75195c00603a",
"bytes": 80,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "1bc87b25d02a179dc0cf5a883fb624fda094ba042ed9476c883ae1c12da6f1b6",
"bytes": 322,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "a94faef9b08b5ab6ab239b6618c0e92b0ab92abca889acd714d6d9179dde90ef",
"bytes": 662,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "b22468814595a3ae63a9b326ed55fefb9a833a0e621be5f366b113ad6cf18a12",
"bytes": 72,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "d2267d9adb990db045e8c186737a4bdf66aa4e8d82d785c0bb3d8e87c34c5072",
"bytes": 323,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 4.03
},
{
"name": "rgb8",
"started_at": "2026-11-06T23:39:17.361270Z",
"observed": {
"attachment_id": "01a1b33b-19fb-706d-b760-19cb45783bf0",
"input_sha256": "8c27c74500758b1a24ccc96261334265e304d55530780aefc7ef4a1109c11852",
"input_bytes": 385,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "c36bf54d185cfcf7abddd219a5e586e11b0c4d10007df5db55978f74ddcad2d0",
"bytes": 1069,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "7b78675ebd18218e82922e75072a801eea74b4d5f26cde2b5810407c86509b88",
"bytes": 116,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "f6e37a29401efe000eb8deb1490975d745f621f2ab229f4d85162945189e1791",
"bytes": 385,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "fd82664e5924528cd7916b3b9e30b71517fa13c2763a8705e750fd4293f3027c",
"bytes": 1184,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "a05ef5a9f1305b2941cc99ab594eb3671bb87babe35d28ac97127791881137bb",
"bytes": 120,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "3cac9f1ca274bcac1dc05cf186cd88eb622fd947fb1a7958a1175e77623a96d6",
"bytes": 392,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 4.223
},
{
"name": "rgb16",
"started_at": "2026-11-06T23:39:21.585038Z",
"observed": {
"attachment_id": "01a1b33b-2a7e-7352-89bf-3b612ebf49bd",
"input_sha256": "e8e5f64cf3a0312b17549aed29f062e3cb03d0c1bf327396c6a25c4b88dec89f",
"input_bytes": 724,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "6386114c3d0b89c4df88745eec318b5db1a779d488e1b08f34ac34138c7feb99",
"bytes": 671,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "fed7e1bf230e91296a5ea9a85b51d190152639bb2963b661f872029d852cc4ad",
"bytes": 94,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "af0a65a6596a0905a79403a9a6ef32a1301671a98ae3c8b5c3d6ced2d20a1009",
"bytes": 332,
"dimensions": [
64,
64
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "dedcbac123226e3012a4dbd178b7aae7a7aba4f2c44c91be274c86804238b208",
"bytes": 696,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "bc09a1696563daae4385190d2c52afac8230e18fff4b5eba701a42f0facde043",
"bytes": 94,
"dimensions": [
64,
64
]
},
{
"name": "thumbnail",
"sha256": "218bc7fd6fa995a3c4cf725016714408073699d13f39d0d364ffe3595856d272",
"bytes": 333,
"dimensions": [
64,
64
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 5.404
},
{
"name": "rgb16-adam7-filter4-exif6",
"started_at": "2026-11-06T23:39:26.989752Z",
"observed": {
"attachment_id": "01a1b33b-3f9a-74e5-8ce1-3e819686cf10",
"input_sha256": "b9c1cb1e309024e4578d1f17bf6bb0f0645aad4d8973e16098b65c54cfd4930a",
"input_bytes": 1297,
"versions": [
{
"version": 1,
"variants": [
{
"name": "crop",
"sha256": "f257bf8fa4f30f0e4df6672de140799375cebd2bf735a656432cf702663414a1",
"bytes": 601,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "cb92af5a047068048eba212d944513edb2c454f64e124339820d46c24e69ea45",
"bytes": 112,
"dimensions": [
63,
65
]
},
{
"name": "thumbnail",
"sha256": "110cf7571f07d2db04821e8ef1861f74b5a16978851a4b0082ca60aedc1d29e4",
"bytes": 419,
"dimensions": [
63,
65
]
}
]
},
{
"version": 2,
"variants": [
{
"name": "crop",
"sha256": "0a7fea5640c5877026100e65e39848e7b15ee5eebb93897ebbeb95d441e8d652",
"bytes": 675,
"dimensions": [
128,
128
]
},
{
"name": "optimized",
"sha256": "9d4b7431a72adfc10284e4443c4e56b4cd19a67c0729979041fc8b0bc2c6ca34",
"bytes": 116,
"dimensions": [
63,
65
]
},
{
"name": "thumbnail",
"sha256": "529ceb55a8675e5ed870ed7917d7f1a5753c898b689f3e431e403b9b3682a732",
"bytes": 440,
"dimensions": [
63,
65
]
}
]
}
],
"stale_and_duplicate_noop": true
},
"result": "PASS",
"elapsed_seconds": 4.435
}
],
"conditions": {
"host_load": [
2.11083984375,
2.130859375,
2.21337890625
],
"containers": [
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 2 minutes (healthy)",
"mtusi2026lab6-api-2 88b81a690916 running Up 2 minutes (healthy)",
"mtusi2026lab6-broker-1 7873087d1e11 running Up 2 minutes (healthy)",
"mtusi2026lab6-grafana-1 4941a61de404 running Up 2 minutes (healthy)",
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 2 minutes ago",
"mtusi2026lab6-lb-1 15275930393c running Up 2 minutes (healthy)",
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 2 minutes (healthy)",
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 2 minutes ago",
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 2 minutes (healthy)",
"mtusi2026lab6-postgres-1 048b32582d06 running Up About a minute (healthy)",
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 2 minutes (healthy)",
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 2 minutes (healthy)",
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 2 minutes (healthy)",
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 2 minutes ago",
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 2 minutes (healthy)",
"mtusi2026lab6-valkey-1 4377a65332f0 running Up About a minute (healthy)",
"mtusi2026lab6-worker-1 f492f4c8ff12 running Up About a minute (healthy)"
],
"running": "mtusi2026lab6-relay-1 Up 2 minutes (healthy)\nmtusi2026lab6-api-2 Up 2 minutes (healthy)\nmtusi2026lab6-api-1 Up 2 minutes (healthy)\nmtusi2026lab6-worker-1 Up About a minute (healthy)\nmtusi2026lab6-grafana-1 Up 2 minutes (healthy)\nmtusi2026lab6-loki-1 Up 2 minutes (healthy)\nmtusi2026lab6-tempo-1 Up 2 minutes (healthy)\nmtusi2026lab6-otel-collector-1 Up 2 minutes (healthy)\nmtusi2026lab6-broker-1 Up 2 minutes (healthy)\nmtusi2026lab6-postgres-1 Up About a minute (healthy)\nmtusi2026lab6-lb-1 Up 2 minutes (healthy)\nmtusi2026lab6-prometheus-1 Up 2 minutes (healthy)\nmtusi2026lab6-s3-1 Up 2 minutes (healthy)\nmtusi2026lab6-valkey-1 Up About a minute (healthy)\n",
"worker_limits": "448\n30\n2\n"
},
"accepted_ids": [
"01a1b33a-c188-72af-b1ce-4978e1626795",
"01a1b33a-d565-77b2-994f-7518e468fdf5",
"01a1b33a-e693-7245-b762-fe88b9d29eaa",
"01a1b33a-f788-73e9-a214-04c3c430adc6",
"01a1b33b-0a3a-7163-8d8a-72d0bb6dd9e3",
"01a1b33b-19fb-706d-b760-19cb45783bf0",
"01a1b33b-2a7e-7352-89bf-3b612ebf49bd",
"01a1b33b-3f9a-74e5-8ce1-3e819686cf10"
],
"invariants": [
{
"id": "terminal",
"statement": "every 202 reaches its expected terminal state",
"result": "PASS",
"details": {
"accepted": 8
}
},
{
"id": "single_effect",
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
"result": "PASS",
"details": {
"rows": 0
}
},
{
"id": "no_ready_rollback",
"statement": "ready never returns to queued or processing",
"result": "PASS",
"details": {
"traced": 8
}
},
{
"id": "monotonic_publication",
"statement": "published_version only moves forward",
"result": "PASS",
"details": {
"sampled": 8
}
},
{
"id": "bytes_match_metadata",
"statement": "sha256, size and real dimensions match served bytes",
"result": "PASS",
"details": {
"verified": 8
}
},
{
"id": "bounded_attempts",
"statement": "attempt <= JOB_MAX_ATTEMPTS",
"result": "PASS",
"details": {
"rows": 0
}
},
{
"id": "no_orphans",
"statement": "no pending outbox, messages, dead letters, staging, objects",
"result": "PASS",
"details": {
"queues": {
"attachments.process": [
0,
0
],
"attachments.process.dlq": [
0,
0
]
},
"s3_objects": 56,
"scoped_attachments": 8
}
},
{
"id": "no_lost_202",
"statement": "every 202 is present in PostgreSQL and the API",
"result": "PASS",
"details": {
"accepted": 8
}
}
],
"finished_at": "2026-11-06T23:39:45.742835Z",
"result": "PASS"
}
+12
View File
@@ -0,0 +1,12 @@
date: 2026-11-06T23:38:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py png-http
gray1 PASS
gray2 PASS
gray4 PASS
gray8 PASS
gray16 PASS
rgb8 PASS
rgb16 PASS
rgb16-adam7-filter4-exif6 PASS
exit_code: 0 elapsed_seconds: 52.917
+7
View File
@@ -0,0 +1,7 @@
date: 2026-11-06T23:38:52Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ docker compose exec -T broker rabbitmqctl -q list_policies -p messenger
vhost name pattern apply-to definition priority
messenger attachments-process ^attachments\.process$ queues {"dead-letter-exchange":"attachments.dlx","dead-letter-strategy":"at-least-once","delivery-limit":-1,"overflow":"reject-publish"} 10
messenger attachments-dlq ^attachments\.process\.dlq$ queues {"max-length":100000,"overflow":"reject-publish"} 10
exit_code: 0 elapsed_seconds: 0.567
@@ -0,0 +1,12 @@
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:35.499371Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"41be89a662b9a221"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:36.513321Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"4ab8e795558d967a"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:37.527402Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"8c1d13fb7e34cdd4"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:38.540916Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"df8d28b163fa5561"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:39.547003Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"145b6b3ee1335b63"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:40.554934Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"38334953e59c2602"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:41.567220Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"b0ea8561dd0af7eb"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:42.588765Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"ff0cfaf8f2f76fd5"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:43.598837Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"e5feda78982252ca"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:44.614558Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"2a30c82af924f4ab"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:45.621422Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"cb3d9011e5e6edaf"}
worker-1 | {"job_id":"01a1b339-834c-74bb-84db-3d19ddd39140","error":"Unavailable","event":"job.requeued","level":"warning","ts":"2026-11-06T23:37:46.629166Z","trace_id":"9668448662e45c1066c59b646f8f7a71","span_id":"c49f0f088039a6b2"}
@@ -0,0 +1,217 @@
{
"mode": "postgres-outage",
"source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"started_at": "2026-11-06T23:37:29.930841Z",
"cases": [
{
"name": "published_outbox_database_outage",
"started_at": "2026-11-06T23:37:31.636682Z",
"observed": {
"attachment_id": "01a1b339-8342-75ca-b4aa-731491bfcd0d",
"jobs_before": [
{
"job_id": "01a1b339-834c-74bb-84db-3d19ddd39140",
"pipeline_version": 1,
"status": "queued",
"attempt": 1
}
],
"jobs_after": [
{
"job_id": "01a1b339-834c-74bb-84db-3d19ddd39140",
"pipeline_version": 1,
"status": "done",
"attempt": 1
}
],
"requeues": 12,
"queues_during": {
"attachments.process": [
0,
1
],
"attachments.process.dlq": [
0,
0
]
},
"queues_after": {
"attachments.process": [
0,
0
],
"attachments.process.dlq": [
0,
0
]
},
"replay": false,
"stopped_containers": [
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 41 seconds (healthy)",
"mtusi2026lab6-api-2 88b81a690916 running Up 41 seconds (healthy)",
"mtusi2026lab6-broker-1 7873087d1e11 running Up 48 seconds (healthy)",
"mtusi2026lab6-grafana-1 4941a61de404 running Up 47 seconds (healthy)",
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 48 seconds ago",
"mtusi2026lab6-lb-1 15275930393c running Up 48 seconds (healthy)",
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 47 seconds (healthy)",
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 46 seconds ago",
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 47 seconds (healthy)",
"mtusi2026lab6-postgres-1 048b32582d06 exited Exited (0) Less than a second ago",
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 48 seconds (healthy)",
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 41 seconds (healthy)",
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 48 seconds (healthy)",
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 42 seconds ago",
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 47 seconds (healthy)",
"mtusi2026lab6-valkey-1 4377a65332f0 running Up 8 seconds (healthy)",
"mtusi2026lab6-worker-1 f492f4c8ff12 exited Exited (0) 1 second ago"
]
},
"result": "PASS",
"elapsed_seconds": 20.39
}
],
"conditions": {
"host_load": [
3.24951171875,
2.1953125,
2.240234375
],
"containers": [
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 38 seconds (healthy)",
"mtusi2026lab6-api-2 88b81a690916 running Up 38 seconds (healthy)",
"mtusi2026lab6-broker-1 7873087d1e11 running Up 44 seconds (healthy)",
"mtusi2026lab6-grafana-1 4941a61de404 running Up 44 seconds (healthy)",
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 44 seconds ago",
"mtusi2026lab6-lb-1 15275930393c running Up 44 seconds (healthy)",
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 44 seconds (healthy)",
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 43 seconds ago",
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 44 seconds (healthy)",
"mtusi2026lab6-postgres-1 048b32582d06 running Up 44 seconds (healthy)",
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 44 seconds (healthy)",
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 38 seconds (healthy)",
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 44 seconds (healthy)",
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 39 seconds ago",
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 44 seconds (healthy)",
"mtusi2026lab6-valkey-1 4377a65332f0 running Up 5 seconds (healthy)",
"mtusi2026lab6-worker-1 f492f4c8ff12 running Up 38 seconds (healthy)"
],
"running": "mtusi2026lab6-relay-1 Up 38 seconds (healthy)\nmtusi2026lab6-api-2 Up 38 seconds (healthy)\nmtusi2026lab6-api-1 Up 38 seconds (healthy)\nmtusi2026lab6-worker-1 Up 38 seconds (healthy)\nmtusi2026lab6-grafana-1 Up 44 seconds (healthy)\nmtusi2026lab6-loki-1 Up 44 seconds (healthy)\nmtusi2026lab6-tempo-1 Up 44 seconds (healthy)\nmtusi2026lab6-otel-collector-1 Up 44 seconds (healthy)\nmtusi2026lab6-broker-1 Up 45 seconds (healthy)\nmtusi2026lab6-postgres-1 Up 45 seconds (healthy)\nmtusi2026lab6-lb-1 Up 45 seconds (healthy)\nmtusi2026lab6-prometheus-1 Up 45 seconds (healthy)\nmtusi2026lab6-s3-1 Up 45 seconds (healthy)\nmtusi2026lab6-valkey-1 Up 5 seconds (healthy)\n",
"worker_limits": "448\n30\n2\n"
},
"accepted_ids": [
"01a1b339-8342-75ca-b4aa-731491bfcd0d"
],
"outage_checkpoint": {
"attachment_id": "01a1b339-8342-75ca-b4aa-731491bfcd0d",
"jobs_before": [
{
"job_id": "01a1b339-834c-74bb-84db-3d19ddd39140",
"pipeline_version": 1,
"status": "queued",
"attempt": 1
}
],
"dlq_before": [
0,
0
],
"stopped_containers": [
"mtusi2026lab6-api-1 cbf0e0c086a8 running Up 41 seconds (healthy)",
"mtusi2026lab6-api-2 88b81a690916 running Up 41 seconds (healthy)",
"mtusi2026lab6-broker-1 7873087d1e11 running Up 48 seconds (healthy)",
"mtusi2026lab6-grafana-1 4941a61de404 running Up 47 seconds (healthy)",
"mtusi2026lab6-healthtools-1 8f69bafc4222 exited Exited (0) 48 seconds ago",
"mtusi2026lab6-lb-1 15275930393c running Up 48 seconds (healthy)",
"mtusi2026lab6-loki-1 0ec38f765d14 running Up 47 seconds (healthy)",
"mtusi2026lab6-migrate-1 defa24920883 exited Exited (0) 46 seconds ago",
"mtusi2026lab6-otel-collector-1 c3358f2286f1 running Up 47 seconds (healthy)",
"mtusi2026lab6-postgres-1 048b32582d06 exited Exited (0) Less than a second ago",
"mtusi2026lab6-prometheus-1 a5beedf02a59 running Up 48 seconds (healthy)",
"mtusi2026lab6-relay-1 72f54d7a9ffa running Up 41 seconds (healthy)",
"mtusi2026lab6-s3-1 f5d31170eb6e running Up 48 seconds (healthy)",
"mtusi2026lab6-s3-init-1 16089f3dbc16 exited Exited (0) 42 seconds ago",
"mtusi2026lab6-tempo-1 33a125d574c3 running Up 47 seconds (healthy)",
"mtusi2026lab6-valkey-1 4377a65332f0 running Up 8 seconds (healthy)",
"mtusi2026lab6-worker-1 f492f4c8ff12 exited Exited (0) 1 second ago"
]
},
"invariants": [
{
"id": "terminal",
"statement": "every 202 reaches its expected terminal state",
"result": "PASS",
"details": {
"accepted": 1
}
},
{
"id": "single_effect",
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
"result": "PASS",
"details": {
"rows": 0
}
},
{
"id": "no_ready_rollback",
"statement": "ready never returns to queued or processing",
"result": "PASS",
"details": {
"traced": 1
}
},
{
"id": "monotonic_publication",
"statement": "published_version only moves forward",
"result": "PASS",
"details": {
"sampled": 0
}
},
{
"id": "bytes_match_metadata",
"statement": "sha256, size and real dimensions match served bytes",
"result": "PASS",
"details": {
"verified": 1
}
},
{
"id": "bounded_attempts",
"statement": "attempt <= JOB_MAX_ATTEMPTS",
"result": "PASS",
"details": {
"rows": 0
}
},
{
"id": "no_orphans",
"statement": "no pending outbox, messages, dead letters, staging, objects",
"result": "PASS",
"details": {
"queues": {
"attachments.process": [
0,
0
],
"attachments.process.dlq": [
0,
0
]
},
"s3_objects": 4,
"scoped_attachments": 1
}
},
{
"id": "no_lost_202",
"statement": "every 202 is present in PostgreSQL and the API",
"result": "PASS",
"details": {
"accepted": 1
}
}
],
"finished_at": "2026-11-06T23:37:57.234619Z",
"result": "PASS"
}
@@ -0,0 +1,5 @@
date: 2026-11-06T23:37:29Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ env PYTHONPATH=.:scripts:student-tests .venv/bin/python student-tests/tools/forward_runtime.py postgres-outage
published_outbox_database_outage PASS
exit_code: 0 elapsed_seconds: 27.475
@@ -0,0 +1,30 @@
{
"base_sha": "237a7c93e507b984add5b49c51c6720a6bfca505",
"protected_files": 22,
"changed_protected": [],
"unchanged_telemetry_paths": [
"infra/grafana/dashboards/messenger-api.json",
"infra/grafana/dashboards/messenger-pipeline.json",
"infra/grafana/provisioning/alerting/alerting.yaml",
"infra/grafana/provisioning/dashboards/messenger.yaml",
"infra/grafana/provisioning/datasources/datasources.yaml",
"infra/grafana/provisioning/plugins/plugins.yaml",
"infra/loki/loki.yaml",
"infra/otel/README.md",
"infra/otel/collector-balanced.yaml",
"infra/otel/collector-tail.yaml",
"infra/otel/collector.yaml",
"infra/prometheus/prometheus.yml",
"infra/prometheus/rules/messenger.alerts.yml",
"infra/prometheus/rules/messenger.recording.yml",
"infra/prometheus/runbooks.md",
"infra/tempo/tempo.yaml",
"src/messenger/attachments/infrastructure/telemetry.py",
"src/messenger/shared/entrypoints/telemetry.py",
"src/messenger/shared/infrastructure/runtime_metrics.py",
"src/messenger/shared/infrastructure/telemetry.py",
"src/messenger/shared/infrastructure/trace_context.py"
],
"changed_telemetry": [],
"basis": "Prior grade3/grade4 storage-outage and persisted-history series remain applicable: instrumentation and collector/storage/provisioning configs unchanged. Request/job/retry/alerts and cost repeated for auth/PNG/broker changes."
}
+12
View File
@@ -0,0 +1,12 @@
date: 2026-11-06T23:45:28Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make restore
scripts/restore.sh
Container mtusi2026lab6-api-1 Running
Container mtusi2026lab6-api-2 Starting
Container mtusi2026lab6-api-2 Started
Container mtusi2026lab6-api-2 Waiting
Container mtusi2026lab6-api-1 Waiting
Container mtusi2026lab6-api-2 Healthy
Container mtusi2026lab6-api-1 Healthy
exit_code: 0 elapsed_seconds: 3.660
+132
View File
@@ -0,0 +1,132 @@
{
"utc": "2026-11-06T23:50:47.030278+00:00",
"application_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97",
"containers": [
{
"name": "/mtusi2026lab6-worker-1",
"image": "mtusi-messenger:mtusi2026lab6",
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
"memory": 1073741824,
"nano_cpus": 2000000000,
"user": "10001:10001",
"oom": false
},
{
"name": "/mtusi2026lab6-relay-1",
"image": "mtusi-messenger:mtusi2026lab6",
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
"memory": 201326592,
"nano_cpus": 500000000,
"user": "10001:10001",
"oom": false
},
{
"name": "/mtusi2026lab6-api-2",
"image": "mtusi-messenger:mtusi2026lab6",
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
"memory": 536870912,
"nano_cpus": 1000000000,
"user": "10001:10001",
"oom": false
},
{
"name": "/mtusi2026lab6-api-1",
"image": "mtusi-messenger:mtusi2026lab6",
"image_id": "sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d",
"memory": 536870912,
"nano_cpus": 1000000000,
"user": "10001:10001",
"oom": false
},
{
"name": "/mtusi2026lab6-grafana-1",
"image": "grafana/grafana:12.4.14@sha256:ae509d9ae8c1021ca32ec370a9ca975d40165eda9fccd1e1102d317ff8787cd7",
"image_id": "sha256:ae509d9ae8c1021ca32ec370a9ca975d40165eda9fccd1e1102d317ff8787cd7",
"memory": 402653184,
"nano_cpus": 500000000,
"user": "472",
"oom": false
},
{
"name": "/mtusi2026lab6-loki-1",
"image": "grafana/loki:3.7.9@sha256:0db216b630ae1f348a1584c67f3cead8b4c1fc839169a39501db664744158e28",
"image_id": "sha256:0db216b630ae1f348a1584c67f3cead8b4c1fc839169a39501db664744158e28",
"memory": 402653184,
"nano_cpus": 500000000,
"user": "10001",
"oom": false
},
{
"name": "/mtusi2026lab6-tempo-1",
"image": "grafana/tempo:2.10.10@sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38",
"image_id": "sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38",
"memory": 402653184,
"nano_cpus": 500000000,
"user": "10001:10001",
"oom": false
},
{
"name": "/mtusi2026lab6-otel-collector-1",
"image": "otel/opentelemetry-collector-contrib:0.163.2@sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849",
"image_id": "sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849",
"memory": 268435456,
"nano_cpus": 500000000,
"user": "10001:10001",
"oom": false
},
{
"name": "/mtusi2026lab6-broker-1",
"image": "rabbitmq:4.1.8-management-alpine@sha256:54ef5ff505352c1beef05a97ee9bd6ab95b3559a76629ba0119b1d63d8d6e4b2",
"image_id": "sha256:54ef5ff505352c1beef05a97ee9bd6ab95b3559a76629ba0119b1d63d8d6e4b2",
"memory": 536870912,
"nano_cpus": 1000000000,
"user": "100:101",
"oom": false
},
{
"name": "/mtusi2026lab6-postgres-1",
"image": "postgres:17.11-alpine@sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b",
"image_id": "sha256:266d3c257594e195b309ae9d1805e54c788f1d7b375f56bf6c367aac6c917e7b",
"memory": 805306368,
"nano_cpus": 2000000000,
"user": "70:70",
"oom": false
},
{
"name": "/mtusi2026lab6-lb-1",
"image": "haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b",
"image_id": "sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b",
"memory": 134217728,
"nano_cpus": 1000000000,
"user": "haproxy",
"oom": false
},
{
"name": "/mtusi2026lab6-prometheus-1",
"image": "prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2",
"image_id": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2",
"memory": 536870912,
"nano_cpus": 500000000,
"user": "nobody",
"oom": false
},
{
"name": "/mtusi2026lab6-s3-1",
"image": "rustfs/rustfs:1.0.4@sha256:ed9210d6411d77ffceb70d94b964a3cb7d225983368bc25bebe01e995293dcc2",
"image_id": "sha256:ed9210d6411d77ffceb70d94b964a3cb7d225983368bc25bebe01e995293dcc2",
"memory": 536870912,
"nano_cpus": 1000000000,
"user": "rustfs",
"oom": false
},
{
"name": "/mtusi2026lab6-valkey-1",
"image": "valkey/valkey:8.1.11-alpine@sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a",
"image_id": "sha256:2602ace2be6569bc2bbb06f873776516ab9089821525be34f4305c67eb9db02a",
"memory": 134217728,
"nano_cpus": 500000000,
"user": "999:1000",
"oom": false
}
]
}
+77
View File
@@ -0,0 +1,77 @@
date: 2026-11-07T01:12:03Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make down
docker compose --profile bench --profile tools --profile reconcile down
Container mtusi2026lab6-relay-1 Stopping
Container mtusi2026lab6-api-2 Stopping
Container mtusi2026lab6-lb-1 Stopping
Container mtusi2026lab6-worker-1 Stopping
Container mtusi2026lab6-api-1 Stopping
Container mtusi2026lab6-otel-collector-1 Stopping
Container mtusi2026lab6-grafana-1 Stopping
Container mtusi2026lab6-grafana-1 Stopped
Container mtusi2026lab6-grafana-1 Removing
Container mtusi2026lab6-grafana-1 Removed
Container mtusi2026lab6-tempo-1 Stopping
Container mtusi2026lab6-loki-1 Stopping
Container mtusi2026lab6-prometheus-1 Stopping
Container mtusi2026lab6-lb-1 Stopped
Container mtusi2026lab6-lb-1 Removing
Container mtusi2026lab6-otel-collector-1 Stopped
Container mtusi2026lab6-otel-collector-1 Removing
Container mtusi2026lab6-lb-1 Removed
Container mtusi2026lab6-prometheus-1 Stopped
Container mtusi2026lab6-prometheus-1 Removing
Container mtusi2026lab6-otel-collector-1 Removed
Container mtusi2026lab6-prometheus-1 Removed
Container mtusi2026lab6-tempo-1 Stopped
Container mtusi2026lab6-tempo-1 Removing
Container mtusi2026lab6-tempo-1 Removed
Container mtusi2026lab6-loki-1 Stopped
Container mtusi2026lab6-loki-1 Removing
Container mtusi2026lab6-loki-1 Removed
Container mtusi2026lab6-healthtools-1 Stopping
Container mtusi2026lab6-healthtools-1 Stopped
Container mtusi2026lab6-healthtools-1 Removing
Container mtusi2026lab6-healthtools-1 Removed
Container mtusi2026lab6-relay-1 Stopped
Container mtusi2026lab6-relay-1 Removing
Container mtusi2026lab6-relay-1 Removed
Container mtusi2026lab6-worker-1 Stopped
Container mtusi2026lab6-worker-1 Removing
Container mtusi2026lab6-worker-1 Removed
Container mtusi2026lab6-broker-1 Stopping
Container mtusi2026lab6-broker-1 Stopped
Container mtusi2026lab6-broker-1 Removing
Container mtusi2026lab6-broker-1 Removed
Container mtusi2026lab6-api-1 Stopped
Container mtusi2026lab6-api-1 Removing
Container mtusi2026lab6-api-1 Removed
Container mtusi2026lab6-api-2 Stopped
Container mtusi2026lab6-api-2 Removing
Container mtusi2026lab6-api-2 Removed
Container mtusi2026lab6-s3-init-1 Stopping
Container mtusi2026lab6-migrate-1 Stopping
Container mtusi2026lab6-valkey-1 Stopping
Container mtusi2026lab6-s3-init-1 Stopped
Container mtusi2026lab6-s3-init-1 Removing
Container mtusi2026lab6-migrate-1 Stopped
Container mtusi2026lab6-migrate-1 Removing
Container mtusi2026lab6-s3-init-1 Removed
Container mtusi2026lab6-s3-1 Stopping
Container mtusi2026lab6-migrate-1 Removed
Container mtusi2026lab6-postgres-1 Stopping
Container mtusi2026lab6-valkey-1 Stopped
Container mtusi2026lab6-valkey-1 Removing
Container mtusi2026lab6-valkey-1 Removed
Container mtusi2026lab6-s3-1 Stopped
Container mtusi2026lab6-s3-1 Removing
Container mtusi2026lab6-postgres-1 Stopped
Container mtusi2026lab6-postgres-1 Removing
Container mtusi2026lab6-s3-1 Removed
Container mtusi2026lab6-postgres-1 Removed
Network mtusi2026lab6_backend Removing
Network mtusi2026lab6_edge Removing
Network mtusi2026lab6_edge Removed
Network mtusi2026lab6_backend Removed
exit_code: 0 elapsed_seconds: 5.193
+6
View File
@@ -0,0 +1,6 @@
date: 2026-11-06T23:37:22Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make test
python3 tests/smoke.py --base-url "http://127.0.0.1:18086"
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
exit_code: 0 elapsed_seconds: 1.751
+61
View File
@@ -0,0 +1,61 @@
{
"source_sha": "c7b8feb805d151e878d77b0dff47320a9436b172",
"requirements": [
{
"capability": "lab1-messenger-chats",
"requirement": "Создание чата",
"matches_source_and_delta": true
},
{
"capability": "lab1-messenger-history",
"requirement": "Отправка сообщения",
"matches_source_and_delta": true
},
{
"capability": "lab1-messenger-identity",
"requirement": "Регистрация пользователя",
"matches_source_and_delta": true
},
{
"capability": "lab2-auth-sessions",
"requirement": "Вход по Basic выдаёт сессию",
"matches_source_and_delta": true
},
{
"capability": "lab2-session-cache",
"requirement": "Выход инвалидирует кэш",
"matches_source_and_delta": true
},
{
"capability": "lab3-load-balancing",
"requirement": "Готовность backend и обновление адресов",
"matches_source_and_delta": true
},
{
"capability": "lab4-attachments",
"requirement": "Тип определяется по содержимому",
"matches_source_and_delta": true
},
{
"capability": "lab5-image-variants",
"requirement": "Crop и optimized",
"matches_source_and_delta": true
},
{
"capability": "lab5-image-variants",
"requirement": "Пределы обработки изображения в worker",
"matches_source_and_delta": true
},
{
"capability": "lab5-job-delivery",
"requirement": "Брокер и отдельные процессы в стенде",
"matches_source_and_delta": true
},
{
"capability": "lab5-job-recovery",
"requirement": "Реестр failed и явный replay",
"matches_source_and_delta": true
}
],
"active_changes": 0
}
@@ -0,0 +1,546 @@
date: 2026-11-06T23:46:11Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_check.py job --base-url http://127.0.0.1:18086
{
"checked_at": "2026-11-06T23:46:28+00:00",
"upload_request_id": "da03c5c0-d3b6-4dc3-bf9c-8abc9532a5b4",
"attachment_status": "ready",
"traces": [
"ea7dfcc8afa7b7d4975b31e90a165abf"
],
"spans": [
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.09,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.052,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.056,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.047,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.282,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.055,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.062,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.051,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.046,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.046,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.405,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.193,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.089,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.069,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.061,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.055,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.233,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.226,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.251,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.126,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.387,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "POST /api/v1/chats/{chat_id}/attachments",
"kind": "SPAN_KIND_SERVER",
"status": "STATUS_CODE_UNSET",
"duration_ms": 17.162,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-api",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 4.703,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 create",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.01,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-relay",
"name": "attachments.attachment.process.v1 publish",
"kind": "SPAN_KIND_PRODUCER",
"status": "STATUS_CODE_UNSET",
"duration_ms": 1.233,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.133,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.08,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.086,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.067,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.176,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.171,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.097,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "SELECT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.105,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.217,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.056,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.041,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.036,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.043,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.084,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.16,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.084,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.448,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.616,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "UPDATE",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.347,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.141,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.231,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 get_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 1.552,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 copy_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 5.49,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 3.138,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 3.72,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "S3 put_object",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 2.525,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": null
},
{
"service": "messenger-worker",
"name": "attachments.attachment.process.v1 process",
"kind": "SPAN_KIND_CONSUMER",
"status": "STATUS_CODE_UNSET",
"duration_ms": 723.018,
"links": 0,
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"attempt": "1"
}
],
"worker_logs": [
{
"line": "job.processed",
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"span_id": "1cdf50be931b71b9"
},
{
"line": "audit.job_settled",
"trace_id": "ea7dfcc8afa7b7d4975b31e90a165abf",
"span_id": "1cdf50be931b71b9"
}
]
}
exit_code: 0 elapsed_seconds: 17.315
@@ -0,0 +1,27 @@
date: 2026-11-06T23:46:28Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_check.py leaks --base-url http://127.0.0.1:18086
{
"checked_at": "2026-11-06T23:46:43+00:00",
"window_seconds": 20,
"traces_scanned": 8,
"hits": {
"password": {
"loki": 0,
"tempo": 0
},
"token": {
"loki": 0,
"tempo": 0
},
"message_text": {
"loki": 0,
"tempo": 0
},
"filename": {
"loki": 0,
"tempo": 0
}
}
}
exit_code: 0 elapsed_seconds: 15.296
@@ -0,0 +1,66 @@
date: 2026-11-06T23:46:05Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ python3 scripts/obs_check.py request --base-url http://127.0.0.1:18086
{
"checked_at": "2026-11-06T23:46:11+00:00",
"request_id": "961b6674-246d-474e-8567-6ecfdc920756",
"log": {
"line": "request.handled",
"trace_id": "86f716d7557e4ef4208ded75f75d6173",
"span_id": "b24b56e1b1b421d8",
"service_name": "messenger-api",
"severity": "INFO"
},
"trace": [
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.785
},
{
"service": "messenger-api",
"name": ";",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.251
},
{
"service": "messenger-api",
"name": "ROLLBACK;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.233
},
{
"service": "messenger-api",
"name": "BEGIN;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.172
},
{
"service": "messenger-api",
"name": "INSERT",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.259
},
{
"service": "messenger-api",
"name": "COMMIT;",
"kind": "SPAN_KIND_CLIENT",
"status": "STATUS_CODE_UNSET",
"duration_ms": 0.631
},
{
"service": "messenger-api",
"name": "POST /api/v1/users",
"kind": "SPAN_KIND_SERVER",
"status": "STATUS_CODE_UNSET",
"duration_ms": 15.934
}
]
}
exit_code: 0 elapsed_seconds: 6.128
+230
View File
@@ -0,0 +1,230 @@
date: 2026-11-06T23:35:40Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ make up
sh scripts/secrets.sh
sh scripts/broker-secrets.sh
broker and S3 worker secrets ready in secrets/ (values not printed)
sh scripts/secrets-lab6.sh
secrets/grafana_admin_password is ready (value not printed)
docker compose build
#1 [internal] load local bake definitions
#1 reading from stdin 432B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.65kB done
#2 DONE 0.0s
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
#3 DONE 0.0s
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
#4 DONE 1.4s
#5 [internal] load .dockerignore
#5 transferring context: 453B done
#5 DONE 0.0s
#6 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
#6 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d done
#6 DONE 0.0s
#7 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
#7 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
#7 DONE 0.0s
#8 [internal] load build context
#8 transferring context: 137.54kB 0.0s done
#8 DONE 0.0s
#9 [builder 3/7] WORKDIR /build
#9 CACHED
#10 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
#10 CACHED
#11 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
#11 CACHED
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
#12 CACHED
#13 [builder 6/7] COPY src ./src
#13 DONE 0.1s
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
#14 0.246 Resolved 100 packages in 9ms
#14 0.275 Building mtusi-messenger @ file:///build
#14 1.692 Built mtusi-messenger @ file:///build
#14 1.697 Prepared 1 package in 1.42s
#14 1.701 Installed 1 package in 3ms
#14 1.938 Bytecode compiled 2806 files in 237ms
#14 1.938 + mtusi-messenger==1.6.0 (from file:///build)
#14 DONE 2.0s
#15 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
#15 CACHED
#16 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
#16 DONE 0.4s
#17 [runtime 4/6] WORKDIR /app
#17 DONE 0.0s
#18 [runtime 5/6] COPY --chown=root:root alembic.ini ./
#18 DONE 0.0s
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
#19 DONE 0.0s
#20 exporting to image
#20 exporting layers
#20 exporting layers 3.0s done
#20 exporting manifest sha256:492ff49bc1f0a99e4adb59e711800539c0cc7feaad62c7fd83bfd7ccdcf68cce
#20 exporting manifest sha256:492ff49bc1f0a99e4adb59e711800539c0cc7feaad62c7fd83bfd7ccdcf68cce done
#20 exporting config sha256:7d56cd97955ba1fe0f95f59f060ba7e79ace5c63756412be8674e188edcf933a done
#20 exporting attestation manifest sha256:031044e4b9cd3d8af8d60bed863e0f3ff85984fc717b9912ce15acb4e6366e2f done
#20 exporting manifest list sha256:66c7d75903f514e14fea21689d039eeba1d9d85a0d27ef3d70d4ab41288e2f6d done
#20 naming to docker.io/library/mtusi-messenger:mtusi2026lab6 done
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab6
#20 unpacking to docker.io/library/mtusi-messenger:mtusi2026lab6 0.7s done
#20 DONE 3.7s
#21 resolving provenance for metadata file
#21 DONE 0.0s
api Built
docker compose up -d --wait
Network mtusi2026lab6_backend Creating
Network mtusi2026lab6_backend Created
Network mtusi2026lab6_edge Creating
Network mtusi2026lab6_edge Created
Container mtusi2026lab6-healthtools-1 Creating
Container mtusi2026lab6-broker-1 Creating
Container mtusi2026lab6-lb-1 Creating
Container mtusi2026lab6-s3-1 Creating
Container mtusi2026lab6-prometheus-1 Creating
Container mtusi2026lab6-postgres-1 Creating
Container mtusi2026lab6-valkey-1 Creating
Container mtusi2026lab6-valkey-1 Created
Container mtusi2026lab6-s3-1 Created
Container mtusi2026lab6-s3-init-1 Creating
Container mtusi2026lab6-healthtools-1 Created
Container mtusi2026lab6-otel-collector-1 Creating
Container mtusi2026lab6-loki-1 Creating
Container mtusi2026lab6-tempo-1 Creating
Container mtusi2026lab6-lb-1 Created
Container mtusi2026lab6-postgres-1 Created
Container mtusi2026lab6-prometheus-1 Created
Container mtusi2026lab6-migrate-1 Creating
Container mtusi2026lab6-broker-1 Created
Container mtusi2026lab6-s3-init-1 Created
Container mtusi2026lab6-otel-collector-1 Created
Container mtusi2026lab6-tempo-1 Created
Container mtusi2026lab6-loki-1 Created
Container mtusi2026lab6-grafana-1 Creating
Container mtusi2026lab6-migrate-1 Created
Container mtusi2026lab6-relay-1 Creating
Container mtusi2026lab6-worker-1 Creating
Container mtusi2026lab6-api-2 Creating
Container mtusi2026lab6-api-1 Creating
Container mtusi2026lab6-api-1 Created
Container mtusi2026lab6-grafana-1 Created
Container mtusi2026lab6-worker-1 Created
Container mtusi2026lab6-relay-1 Created
Container mtusi2026lab6-api-2 Created
Container mtusi2026lab6-postgres-1 Starting
Container mtusi2026lab6-broker-1 Starting
Container mtusi2026lab6-s3-1 Starting
Container mtusi2026lab6-prometheus-1 Starting
Container mtusi2026lab6-healthtools-1 Starting
Container mtusi2026lab6-valkey-1 Starting
Container mtusi2026lab6-lb-1 Starting
Container mtusi2026lab6-healthtools-1 Started
Container mtusi2026lab6-healthtools-1 Waiting
Container mtusi2026lab6-healthtools-1 Waiting
Container mtusi2026lab6-healthtools-1 Waiting
Container mtusi2026lab6-postgres-1 Started
Container mtusi2026lab6-postgres-1 Waiting
Container mtusi2026lab6-valkey-1 Started
Container mtusi2026lab6-s3-1 Started
Container mtusi2026lab6-s3-1 Waiting
Container mtusi2026lab6-lb-1 Started
Container mtusi2026lab6-prometheus-1 Started
Container mtusi2026lab6-broker-1 Started
Container mtusi2026lab6-healthtools-1 Exited
Container mtusi2026lab6-healthtools-1 Exited
Container mtusi2026lab6-otel-collector-1 Starting
Container mtusi2026lab6-loki-1 Starting
Container mtusi2026lab6-healthtools-1 Exited
Container mtusi2026lab6-tempo-1 Starting
Container mtusi2026lab6-postgres-1 Healthy
Container mtusi2026lab6-migrate-1 Starting
Container mtusi2026lab6-tempo-1 Started
Container mtusi2026lab6-migrate-1 Started
Container mtusi2026lab6-loki-1 Started
Container mtusi2026lab6-grafana-1 Starting
Container mtusi2026lab6-otel-collector-1 Started
Container mtusi2026lab6-grafana-1 Started
Container mtusi2026lab6-s3-1 Healthy
Container mtusi2026lab6-s3-init-1 Starting
Container mtusi2026lab6-s3-init-1 Started
Container mtusi2026lab6-migrate-1 Waiting
Container mtusi2026lab6-s3-init-1 Waiting
Container mtusi2026lab6-s3-init-1 Waiting
Container mtusi2026lab6-broker-1 Waiting
Container mtusi2026lab6-migrate-1 Waiting
Container mtusi2026lab6-migrate-1 Waiting
Container mtusi2026lab6-s3-init-1 Waiting
Container mtusi2026lab6-broker-1 Waiting
Container mtusi2026lab6-migrate-1 Exited
Container mtusi2026lab6-migrate-1 Exited
Container mtusi2026lab6-s3-init-1 Exited
Container mtusi2026lab6-migrate-1 Exited
Container mtusi2026lab6-s3-init-1 Exited
Container mtusi2026lab6-api-2 Starting
Container mtusi2026lab6-s3-init-1 Exited
Container mtusi2026lab6-broker-1 Healthy
Container mtusi2026lab6-worker-1 Starting
Container mtusi2026lab6-broker-1 Healthy
Container mtusi2026lab6-relay-1 Starting
Container mtusi2026lab6-api-2 Started
Container mtusi2026lab6-api-1 Starting
Container mtusi2026lab6-relay-1 Started
Container mtusi2026lab6-worker-1 Started
Container mtusi2026lab6-api-1 Started
Container mtusi2026lab6-broker-1 Waiting
Container mtusi2026lab6-lb-1 Waiting
Container mtusi2026lab6-loki-1 Waiting
Container mtusi2026lab6-postgres-1 Waiting
Container mtusi2026lab6-healthtools-1 Waiting
Container mtusi2026lab6-worker-1 Waiting
Container mtusi2026lab6-migrate-1 Waiting
Container mtusi2026lab6-s3-init-1 Waiting
Container mtusi2026lab6-otel-collector-1 Waiting
Container mtusi2026lab6-prometheus-1 Waiting
Container mtusi2026lab6-tempo-1 Waiting
Container mtusi2026lab6-grafana-1 Waiting
Container mtusi2026lab6-api-2 Waiting
Container mtusi2026lab6-api-1 Waiting
Container mtusi2026lab6-s3-1 Waiting
Container mtusi2026lab6-relay-1 Waiting
Container mtusi2026lab6-valkey-1 Waiting
Container mtusi2026lab6-valkey-1 Healthy
Container mtusi2026lab6-postgres-1 Healthy
Container mtusi2026lab6-grafana-1 Healthy
Container mtusi2026lab6-s3-1 Healthy
Container mtusi2026lab6-broker-1 Healthy
Container mtusi2026lab6-otel-collector-1 Healthy
Container mtusi2026lab6-prometheus-1 Healthy
Container mtusi2026lab6-s3-init-1 Exited
Container mtusi2026lab6-healthtools-1 Exited
Container mtusi2026lab6-migrate-1 Exited
Container mtusi2026lab6-api-2 Healthy
Container mtusi2026lab6-api-1 Healthy
Container mtusi2026lab6-relay-1 Healthy
Container mtusi2026lab6-worker-1 Healthy
Container mtusi2026lab6-lb-1 Healthy
Container mtusi2026lab6-loki-1 Healthy
Container mtusi2026lab6-tempo-1 Healthy
scripts/lb-wait.sh
exit_code: 0 elapsed_seconds: 85.591
@@ -0,0 +1,45 @@
date: 2026-11-06T23:42:59Z commit: bc1d7aa7713858acb5d65b61d07e69a640f1ee97
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
$ .venv/bin/pytest -m stack -s -q student-tests/stack/test_attachment_faults.py::test_user_errors_never_become_500
10 MiB + 1 с Content-Length, тело не отправлено: 413
10 MiB + 1 chunked: 413
PNG 100000×100000 (бомба): 413
PNG 8001×5000: 413
PNG с корректными CRC и битым IDAT: 415
PNG с повторным IHDR: 415
обрезанный PNG: 415
обрезанный JPEG: 415
JPEG как image/png: 415
GIF как image/png: 415
WebP как image/png: 415
текст как image/png: 415
PNG как image/jpeg: 415
пустое тело: 415
application/octet-stream: 415
без Content-Type: 415
filename='../a.png': 400
filename='a/b.png': 400
filename='a\\b.png': 400
filename='a\x00.png': 400
filename='a\x01.png': 400
filename='a\x7f.png': 400
filename='': 400
filename=' ': 400
filename='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: 400
filename=None: 400
посторонний: upload в чужой чат: 404
посторонний: метаданные: 404
посторонний: /content: 404
посторонний: ссылка на чужое вложение: 404
вложение другого чата: 404
неизвестное вложение: 404
11 вложений: 400
повтор вложения: 400
невалидный UUID: 400
пустой текст без вложений: 400
невалидный id вложения: 400
variant=preview: 400
строк вложений в чате: 2 (= ответов 202); ответов в журнале реплик: 56, из них 5xx: 0
.
1 passed in 1.02s
exit_code: 0 elapsed_seconds: 1.790
File diff suppressed because it is too large Load Diff
@@ -1,2 +1,4 @@
schema: spec-driven
created: 2026-11-07
archived: 2026-11-07
lab: 6

Some files were not shown because too many files have changed in this diff Show More