forked from mtusi2026/mtusi2026lab6
Реализация на 5
This commit is contained in:
@@ -3,3 +3,17 @@
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
|
||||
|
||||
## Итоговый набор lab6
|
||||
|
||||
- `research-validation.json`, `slo-summary.json` — полнота и времена обнаружения/восстановления.
|
||||
- `slo-experiment.json`, `slo-run.txt` — исходные наблюдения, нагрузка и ресурсы; прогон 16.11.2026, 08:17–10:16 UTC.
|
||||
- `incident-signals.json`, `correlation.json` — реальные trace/log связи и диагнозы.
|
||||
- `backend-outage.json` — ограниченная очередь, RAM и потери при отказе Tempo.
|
||||
- `persistence-processes.json`, `failover-action.jsonl`, `pipeline.json` — реальные воздействия на процессы/volumes и 13 сценариев pipeline.
|
||||
- `final-checks.txt`, `contracts.txt`, `build.txt`, `signal-checks.txt` — результаты проверок.
|
||||
- `environment.json`, `image-provenance.json` — среда, fingerprint исходников и образы.
|
||||
- `aborted-capacity-*`, `aborted-counter-*` — незавершённые промежуточные прогоны; они не считаются успешным исследованием.
|
||||
|
||||
Методика, команды, результаты и ограничения: [REPORT.md](../REPORT.md). Даты измерений сохранены; итоговая проверка отчёта выполнена 17.11.2026. Секреты и локальные абсолютные пути не являются частью доказательств.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# Незавершённый первый прогон
|
||||
|
||||
2026-11-16 UTC. См. `aborted-capacity-slo-experiment.json` и `aborted-capacity-slo-run.txt`.
|
||||
|
||||
За 996.6 s генератор получил 437 подтверждённых upload, 30 transport/timeouts и 31 ответ 429; после короткой остановки worker восстановление завершилось timeout запуска зависимого s3-init. Этот прогон не является доказательством успешно завершённого исследования.
|
||||
|
||||
Наблюдавшийся native log SeaweedFS около 07:49 UTC:
|
||||
|
||||
```text
|
||||
No writable volumes and no free volumes left
|
||||
create 7 volume, created 0: Not enough data nodes found!
|
||||
```
|
||||
|
||||
В перенесённой конфигурации были `-volume.max=4` и `-master.volumeSizeLimitMB=128`. Ограничение роста writable volumes мешало записи данных/служебного журнала filer. API upload зависал до timeout, затем заполнялись upload slots и возвращался 429. Нулевой HTTP 5xx burn rate не означал отсутствие клиентских ошибок: timeout и 429 не входят в numerator серверного SLI.
|
||||
|
||||
Исправлено без удаления volumes: volume.max=16, volumeSizeLimitMB=1024; worker/Tempo в эксперименте восстанавливаются прямым docker start существующего контейнера, без повторного запуска одноразовых зависимостей. После восстановления все существовавшие jobs были ready (487 на момент проверки), публичный smoke PASS. Затем основной эксперимент запущен заново с полным прогревом.
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"evidence": {},
|
||||
"collection_errors": []
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,44 @@
|
||||
baseline 900 seconds
|
||||
baseline 2 s 24 requests
|
||||
baseline 66 s 697 requests
|
||||
baseline 131 s 1375 requests
|
||||
baseline 195 s 2050 requests
|
||||
baseline 260 s 2727 requests
|
||||
baseline 324 s 3408 requests
|
||||
baseline 389 s 4081 requests
|
||||
baseline 453 s 4761 requests
|
||||
baseline 517 s 5432 requests
|
||||
baseline 582 s 6113 requests
|
||||
baseline 646 s 6787 requests
|
||||
baseline 711 s 7467 requests
|
||||
baseline 775 s 8142 requests
|
||||
baseline 840 s 8817 requests
|
||||
worker_short_1 5 seconds
|
||||
worker_short_1 2 s 9477 requests
|
||||
Traceback (most recent call last):
|
||||
File "<repo>/scripts/experiment-slo.py", line 143, in <module>
|
||||
if __name__=='__main__':main()
|
||||
^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 113, in main
|
||||
worker(5,f'worker_short_{i}');phase(f'worker_short_recovery_{i}',60)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 96, in worker
|
||||
finally:compose('start','worker')
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 12, in compose
|
||||
def compose(*a):return subprocess.run(C+list(a),cwd=ROOT,check=True,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,timeout=90)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 550, in run
|
||||
stdout, stderr = process.communicate(input, timeout=timeout)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1209, in communicate
|
||||
stdout, stderr = self._communicate(input, endtime, timeout)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 2141, in _communicate
|
||||
self.wait(timeout=self._remaining_time(endtime))
|
||||
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1264, in wait
|
||||
return self._wait(timeout=timeout)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 2045, in _wait
|
||||
raise TimeoutExpired(self.args, timeout)
|
||||
subprocess.TimeoutExpired: Command '['<repo>/scripts/compose.sh', 'start', 'worker']' timed out after 89.99991420796141 seconds
|
||||
@@ -0,0 +1,15 @@
|
||||
# Промежуточная проверка учёта первого всплеска
|
||||
|
||||
После исправления ёмкости S3 прогрев дал 9452 успешных ответа без ошибок. Короткая DB-блокировка дала 38 ответов 503 в генераторе. В native counters API было 30 business 5xx; часть остальных ответов создал LB при исчерпании DB pool и временной неготовности API.
|
||||
|
||||
У новых 5xx time series первая точка Prometheus уже содержала весь короткий всплеск. Поэтому rate/increase показывали 0, несмотря на ненулевые raw counters. Этот прогон остановлен, а отсутствие alert не засчитано как успешное подавление короткого всплеска.
|
||||
|
||||
Исправления:
|
||||
|
||||
- При регистрации каждого маршрута HTTP counters публикуются с нулевыми значениями всех status classes. Первый всплеск имеет предшествующие нулевые samples.
|
||||
- HTTP duration histogram объединяет status classes, сохраняя method/route: percentiles включают реальные медленные ошибки в уже существующих сериях без искусственных нулевых измерений.
|
||||
- Jobs counters также инициализируются нулями известных outcomes.
|
||||
- Добавлена gauge ожиданий Lock из pg_stat_activity, без SQL text/IDs; root cause можно отличить по сохранённым сигналам.
|
||||
- DB pool в учебном профиле увеличен с 8 до 16 на процесс: при 10 message requests/s и timeout2s остаётся место для health. Это ограничивает побочное переключение LB, не снимая блокировку messages.
|
||||
|
||||
Полное исследование затем запускается заново на исправленном образе. Промежуточные артефакты: `aborted-counter-*`.
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"evidence": {
|
||||
"worker_long_1": {
|
||||
"captured": 1794816601.2943192,
|
||||
"observed": {
|
||||
"at": 1794816600.582247,
|
||||
"phase": "worker_long_1",
|
||||
"alerts": [
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "ReadyBurnRateFast",
|
||||
"severity": "warning",
|
||||
"slo": "ready"
|
||||
},
|
||||
"annotations": {
|
||||
"runbook": "infra/otel/RUNBOOK.md",
|
||||
"summary": "ready SLO budget burning above 6x"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-16T08:09:39.758725496Z",
|
||||
"value": "1e+00"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "ReadyBurnRateSlow",
|
||||
"severity": "warning",
|
||||
"slo": "ready"
|
||||
},
|
||||
"annotations": {
|
||||
"runbook": "infra/otel/RUNBOOK.md",
|
||||
"summary": "ready SLO budget burning above 3x"
|
||||
},
|
||||
"state": "pending",
|
||||
"activeAt": "2026-11-16T08:09:44.758725496Z",
|
||||
"value": "4.0476190476190477e-01"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"alertname": "QueueLag",
|
||||
"severity": "warning"
|
||||
},
|
||||
"annotations": {
|
||||
"runbook": "infra/otel/RUNBOOK.md",
|
||||
"summary": "Unfinished attachment age exceeds 30s"
|
||||
},
|
||||
"state": "firing",
|
||||
"activeAt": "2026-11-16T08:09:29.758725496Z",
|
||||
"value": "6.3674393e+01"
|
||||
}
|
||||
],
|
||||
"pending": 32.0,
|
||||
"queue_age": 63.674393,
|
||||
"api_burn": 0.0,
|
||||
"ready_burn": 100.0
|
||||
},
|
||||
"worker_received_events": 0,
|
||||
"accepted_upload_events": 35,
|
||||
"diagnosis": "Queue age and ready burn increase while API accepts uploads and no worker consumption is observed"
|
||||
}
|
||||
},
|
||||
"collection_errors": []
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
baseline 900 seconds
|
||||
baseline 2 s 24 requests
|
||||
baseline 66 s 698 requests
|
||||
baseline 131 s 1378 requests
|
||||
baseline 195 s 2049 requests
|
||||
baseline 260 s 2728 requests
|
||||
baseline 324 s 3404 requests
|
||||
baseline 389 s 4083 requests
|
||||
baseline 453 s 4758 requests
|
||||
baseline 517 s 5434 requests
|
||||
baseline 582 s 6116 requests
|
||||
baseline 646 s 6789 requests
|
||||
baseline 711 s 7469 requests
|
||||
baseline 775 s 8140 requests
|
||||
baseline 840 s 8819 requests
|
||||
worker_short_1 5 seconds
|
||||
worker_short_1 2 s 9479 requests
|
||||
worker_short_recovery_1 60 seconds
|
||||
worker_short_recovery_1 2 s 9532 requests
|
||||
db_short_1 5 seconds
|
||||
db_short_1 2 s 10144 requests
|
||||
db_short_recovery_1 60 seconds
|
||||
db_short_recovery_1 2 s 10219 requests
|
||||
worker_long_1 240 seconds
|
||||
worker_long_1 2 s 10849 requests
|
||||
worker_long_1 66 s 11525 requests
|
||||
worker_long_1 131 s 12207 requests
|
||||
worker_long_1 194 s 12869 requests
|
||||
Traceback (most recent call last):
|
||||
File "<repo>/scripts/experiment-slo.py", line 147, in <module>
|
||||
if __name__=='__main__':main()
|
||||
^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 119, in main
|
||||
worker(a.long,f'worker_long_{i}');phase(f'worker_recovery_{i}',a.cooldown)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 99, in worker
|
||||
try:phase(name,duration)
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 92, in phase
|
||||
save();time.sleep(min(5,max(0,at+seconds-time.time())))
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "<repo>/scripts/experiment-slo.py", line 67, in interrupted
|
||||
def interrupted(*_):raise KeyboardInterrupt()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
KeyboardInterrupt
|
||||
@@ -0,0 +1 @@
|
||||
Saved backend outage balance, queue, memory and business persistence evidence
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"attachment_id": "6e909ff4-fb98-496d-a0bf-adc4ac734463",
|
||||
"broker_hostname": "broker",
|
||||
"old_container_id": "4ad7e02f4e35c2a6907afafb3a4bcb48c13c4ddefb09322b46bba644984b3e04",
|
||||
"new_container_id": "56a8639818cd4c10d3c6f521f03a72132c0535824f5bd815906cefc717b6893a",
|
||||
"message_present_before_and_after": true,
|
||||
"outbox_published_before_replacement": true,
|
||||
"dispatcher_stopped_during_replacement": true
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
cd service && go build ./...
|
||||
cd service && go build -o ../bin/benchmark ./cmd/benchmark
|
||||
cd service && go vet ./...
|
||||
@@ -0,0 +1,2 @@
|
||||
Container mtusi2026lab6-otel-collector-run-63fc05410c49 Creating
|
||||
Container mtusi2026lab6-otel-collector-run-63fc05410c49 Created
|
||||
@@ -0,0 +1,4 @@
|
||||
.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 scripts/prove-correlation.py
|
||||
PASS: correlated upload, retry=False
|
||||
PASS: correlated upload, retry=True
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"verified_at_utc": "2026-11-17T09:13:49.849327+00:00",
|
||||
"checked_files": 259,
|
||||
"generated_secret_values_absent": true,
|
||||
"secret_files_ignored": true,
|
||||
"absolute_repository_paths_removed_from_text_evidence": true,
|
||||
"current_smoke_passed": true,
|
||||
"current_correlation_and_privacy_checks_passed": true,
|
||||
"dashboard_pool_worker_backlog_exporter_have_separate_queries": true
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
{
|
||||
"timestamp": 1794906731.3549702,
|
||||
"revision": "8b381c115209cf7ac143df4826c468bf38128d71",
|
||||
"working_tree_dirty": true,
|
||||
"source_sha256": "efaad10cbbe055be8252463aaab6258fcc6b10b2e20211b4dcd56195bcecc991",
|
||||
"platform": "macOS-26.5.1-arm64-arm-64bit",
|
||||
"go": "go version go1.27.0 darwin/arm64",
|
||||
"docker": {
|
||||
"server_version": "29.7.2",
|
||||
"cpus": 14,
|
||||
"memory": 8320954368,
|
||||
"architecture": "aarch64"
|
||||
},
|
||||
"containers": [
|
||||
{
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab6",
|
||||
"image_id": "sha256:c7021c3fed2700b5234fedad71dd0478acb126a697aa25ec5ac1a2c99020962b",
|
||||
"started_at": "2026-11-16T10:20:53.477815219Z",
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab6",
|
||||
"image_id": "sha256:c7021c3fed2700b5234fedad71dd0478acb126a697aa25ec5ac1a2c99020962b",
|
||||
"started_at": "2026-11-16T10:20:53.332318052Z",
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"service": "broker",
|
||||
"image": "rabbitmq:4.2.0-alpine@sha256:32962eea9bf99928c2fc541a7defb78c7feca9df0434c5dfb7b539d61e1af524",
|
||||
"image_id": "sha256:32962eea9bf99928c2fc541a7defb78c7feca9df0434c5dfb7b539d61e1af524",
|
||||
"started_at": "2026-11-16T10:17:58.357427221Z",
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_broker_data",
|
||||
"destination": "/var/lib/rabbitmq"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi-messenger:lab6",
|
||||
"image_id": "sha256:c7021c3fed2700b5234fedad71dd0478acb126a697aa25ec5ac1a2c99020962b",
|
||||
"started_at": "2026-11-16T10:20:53.325688052Z",
|
||||
"memory_limit": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"service": "grafana",
|
||||
"image": "grafana/grafana:13.3.1",
|
||||
"image_id": "sha256:0615ec4fbd4072004b7d86b46ded63013a74b7d6eb1119273dd89e8fa25c13cf",
|
||||
"started_at": "2026-11-16T10:16:16.370235216Z",
|
||||
"memory_limit": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_grafana_data",
|
||||
"destination": "/var/lib/grafana"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.2-alpine@sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0",
|
||||
"image_id": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0",
|
||||
"started_at": "2026-11-16T10:17:15.316601507Z",
|
||||
"memory_limit": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"service": "loki",
|
||||
"image": "grafana/loki:3.7.10",
|
||||
"image_id": "sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7",
|
||||
"started_at": "2026-11-16T10:16:18.125747508Z",
|
||||
"memory_limit": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_loki_data",
|
||||
"destination": "/loki"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "otel-collector",
|
||||
"image": "otel/opentelemetry-collector-contrib:0.140.0",
|
||||
"image_id": "sha256:ffc818ee108d0b934fd14207fd87ff247c9b64f344ed349d0b66c166c18a2312",
|
||||
"started_at": "2026-11-16T10:16:17.9785623Z",
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.11-alpine3.23@sha256:05aa77262db9277fde6374bb2f901c9604b8a9373029e1a7993440c6aae48736",
|
||||
"image_id": "sha256:05aa77262db9277fde6374bb2f901c9604b8a9373029e1a7993440c6aae48736",
|
||||
"started_at": "2026-11-16T10:17:57.426626804Z",
|
||||
"memory_limit": 1073741824,
|
||||
"nano_cpus": 2000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_postgres_data",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "prometheus",
|
||||
"image": "prom/prometheus:v3.16.0",
|
||||
"image_id": "sha256:e04987641b57704f408e31f6373ba4138ecf27cb4a165d24aabb6c38fddd0f06",
|
||||
"started_at": "2026-11-16T10:16:15.930341549Z",
|
||||
"memory_limit": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_prometheus_data",
|
||||
"destination": "/prometheus"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"image": "redis:8.2.11-alpine3.22@sha256:489a769e0a54dc245896132a15c72d2bc7296719954da99398f43a3877e5f8eb",
|
||||
"image_id": "sha256:489a769e0a54dc245896132a15c72d2bc7296719954da99398f43a3877e5f8eb",
|
||||
"started_at": "2026-11-16T10:17:57.309233929Z",
|
||||
"memory_limit": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_redis_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:4.52@sha256:57877e32bb90073b37dc109b438ba66e84fd5ed9ced5f5c04f56444ef243ce59",
|
||||
"image_id": "sha256:57877e32bb90073b37dc109b438ba66e84fd5ed9ced5f5c04f56444ef243ce59",
|
||||
"started_at": "2026-11-16T10:18:22.319458969Z",
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_s3_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "tempo",
|
||||
"image": "grafana/tempo:2.9.0",
|
||||
"image_id": "sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4",
|
||||
"started_at": "2026-11-17T09:01:50.420850382Z",
|
||||
"memory_limit": 402653184,
|
||||
"nano_cpus": 500000000,
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"name": "mtusi2026lab6_tempo_data",
|
||||
"destination": "/var/tempo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab6",
|
||||
"image_id": "sha256:c7021c3fed2700b5234fedad71dd0478acb126a697aa25ec5ac1a2c99020962b",
|
||||
"started_at": "2026-11-17T09:11:55.452974759Z",
|
||||
"memory_limit": 1073741824,
|
||||
"nano_cpus": 1000000000,
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"host": {
|
||||
"cpu": "Apple M4 Pro",
|
||||
"memory": "25769803776"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"at": 1794824242.3058822, "container": "747d3207a8824277939ee3d3727b9528eae03ae9f38e9d7a9d8c7c660b0e5cf8", "instance_id": "78f4a480-202b-41b7-a1a1-ab499d7be4c6", "action": "docker stop", "project": "mtusi2026lab6"}
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:18086"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 133, "failed_attempts": 1, "first_recovery_seconds": 1.148}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,94 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:18086"
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
cd service && TEST_BASE_URL="http://localhost:18086" go test -race -count=1 -v ./...
|
||||
? gitea.privcloud.tech/mtusi2026/cmd/app [no test files]
|
||||
=== RUN TestLostPostResponseIsNotRetried
|
||||
--- PASS: TestLostPostResponseIsNotRetried (0.00s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/cmd/benchmark 1.439s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/adapter/broker [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/adapter/controller/http [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/adapter/repository/cache/outside [no test files]
|
||||
=== RUN TestIdempotencyTransactionAndExpiry
|
||||
idempotency_test.go:27: run make test-storage for an isolated PostgreSQL database
|
||||
--- SKIP: TestIdempotencyTransactionAndExpiry (0.00s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/internal/adapter/repository/storage 1.715s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/config [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/dto [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/gen/contracts [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/apperr [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/auth/jwtprovider [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/cache [no test files]
|
||||
=== RUN TestSessionFingerprints
|
||||
--- PASS: TestSessionFingerprints (0.03s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/internal/pkg/encrypting 1.341s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/fault [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/imageprocessor [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/migrator [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/objectstore [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres/txmanager [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/framework [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/headers [no test files]
|
||||
=== RUN TestVerifiedSessionIsRequestScoped
|
||||
2026/11/16 13:21:03 ERROR http_error error_code=CodeUnauthorized status=401 request_id=a407e1e0-b4ee-4006-b34f-8256cb26951b
|
||||
--- PASS: TestVerifiedSessionIsRequestScoped (0.00s)
|
||||
=== RUN TestMissingTokenDoesNotCallSessionStore
|
||||
2026/11/16 13:21:03 ERROR http_error error_code=CodeUnauthorized status=401 request_id=12e5acbe-dc1b-4b12-ab1a-d7bf23c5b0c2
|
||||
--- PASS: TestMissingTokenDoesNotCallSessionStore (0.00s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/internal/pkg/rest/middleware 1.992s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/router [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/telemetry [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/authprovider [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/environment [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/role [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/validator [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/attachment [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/auth [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/chat [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/observation [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/outbox [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/user [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/migrations [no test files]
|
||||
=== RUN TestInvalidJSON
|
||||
=== RUN TestInvalidJSON/malformed
|
||||
=== RUN TestInvalidJSON/wrong_type
|
||||
=== RUN TestInvalidJSON/unknown_field
|
||||
--- PASS: TestInvalidJSON (0.01s)
|
||||
--- PASS: TestInvalidJSON/malformed (0.01s)
|
||||
--- PASS: TestInvalidJSON/wrong_type (0.00s)
|
||||
--- PASS: TestInvalidJSON/unknown_field (0.00s)
|
||||
=== RUN TestForeignChatIsHidden
|
||||
--- PASS: TestForeignChatIsHidden (0.57s)
|
||||
=== RUN TestEmptyMessage
|
||||
--- PASS: TestEmptyMessage (0.19s)
|
||||
=== RUN TestDuplicateUsername
|
||||
--- PASS: TestDuplicateUsername (0.22s)
|
||||
=== RUN TestMessagePagination
|
||||
--- PASS: TestMessagePagination (0.20s)
|
||||
=== RUN TestAttachmentContractAndErrors
|
||||
=== RUN TestAttachmentContractAndErrors/fake
|
||||
=== RUN TestAttachmentContractAndErrors/mime_mismatch
|
||||
=== RUN TestAttachmentContractAndErrors/wrong_type
|
||||
=== RUN TestAttachmentContractAndErrors/truncated
|
||||
--- PASS: TestAttachmentContractAndErrors (1.05s)
|
||||
--- PASS: TestAttachmentContractAndErrors/fake (0.00s)
|
||||
--- PASS: TestAttachmentContractAndErrors/mime_mismatch (0.00s)
|
||||
--- PASS: TestAttachmentContractAndErrors/wrong_type (0.00s)
|
||||
--- PASS: TestAttachmentContractAndErrors/truncated (0.00s)
|
||||
=== RUN TestConcurrentAttachmentMessage
|
||||
--- PASS: TestConcurrentAttachmentMessage (0.20s)
|
||||
=== RUN TestConcurrentMessages
|
||||
concurrency_test.go:160: 10 clients sent 100 messages; history contains 100 unique messages across 6 pages
|
||||
--- PASS: TestConcurrentMessages (1.46s)
|
||||
=== RUN TestIdempotencyContract
|
||||
--- PASS: TestIdempotencyContract (0.53s)
|
||||
=== RUN TestConcurrentIdempotencyAcrossReplicas
|
||||
idempotency_test.go:103: 32 requests across 2 replicas created exactly one message
|
||||
--- PASS: TestConcurrentIdempotencyAcrossReplicas (0.22s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/tests 6.932s
|
||||
@@ -0,0 +1 @@
|
||||
PASS: first 5xx spike appears in Prometheus increase: 31.11
|
||||
@@ -0,0 +1,349 @@
|
||||
{
|
||||
"at": 1794817011.404624,
|
||||
"before": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"15"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"12"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794816991.111,
|
||||
"0"
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"15"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "715b9cfb-8dd2-451b-89a4-5e2cbc4b4332",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"12"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "de655f64-de54-45b8-923b-ace3dde6c38e",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"15"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "44064e41-06b3-4298-850f-67948dc8dd4c",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "GET",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"15"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "messenger_http_requests_total",
|
||||
"deployment_environment_name": "lab",
|
||||
"exported_instance": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"exported_job": "messenger-api",
|
||||
"instance": "otel-collector:8889",
|
||||
"job": "messenger",
|
||||
"method": "POST",
|
||||
"otel_scope_name": "messenger",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_instance_id": "e57133fe-8e06-48a4-8984-b23d3e6bda08",
|
||||
"service_name": "messenger-api",
|
||||
"service_version": "lab6",
|
||||
"status_class": "5xx"
|
||||
},
|
||||
"value": [
|
||||
1794817011.408,
|
||||
"0"
|
||||
]
|
||||
}
|
||||
],
|
||||
"increase_1m": 31.11488882020327,
|
||||
"statuses": {
|
||||
"200": 20,
|
||||
"503": 30
|
||||
},
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
cd service && TEST_BASE_URL="http://localhost:18086" go test -race -count=1 -v ./...
|
||||
? gitea.privcloud.tech/mtusi2026/cmd/app [no test files]
|
||||
=== RUN TestLostPostResponseIsNotRetried
|
||||
--- PASS: TestLostPostResponseIsNotRetried (0.00s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/cmd/benchmark 1.364s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/adapter/broker [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/adapter/controller/http [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/adapter/repository/cache/outside [no test files]
|
||||
=== RUN TestIdempotencyTransactionAndExpiry
|
||||
idempotency_test.go:27: run make test-storage for an isolated PostgreSQL database
|
||||
--- SKIP: TestIdempotencyTransactionAndExpiry (0.00s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/internal/adapter/repository/storage 1.350s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/config [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/dto [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/gen/contracts [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/apperr [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/auth/jwtprovider [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/cache [no test files]
|
||||
=== RUN TestSessionFingerprints
|
||||
--- PASS: TestSessionFingerprints (0.02s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/internal/pkg/encrypting 1.493s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/fault [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/imageprocessor [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/migrator [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/objectstore [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/postgres/txmanager [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/framework [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/headers [no test files]
|
||||
=== RUN TestVerifiedSessionIsRequestScoped
|
||||
2026/11/16 10:13:58 ERROR response error="revoked session" status=401 requestId=5fc00aba-9637-4083-a41e-e825350baf99
|
||||
--- PASS: TestVerifiedSessionIsRequestScoped (0.00s)
|
||||
=== RUN TestMissingTokenDoesNotCallSessionStore
|
||||
2026/11/16 10:13:58 ERROR response error="missing or invalid bearer token" status=401 requestId=4fb2abe7-293f-4814-96dd-be8dc4a1b768
|
||||
--- PASS: TestMissingTokenDoesNotCallSessionStore (0.00s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/internal/pkg/rest/middleware 1.655s
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/rest/router [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/telemetry [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/authprovider [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/environment [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/types/role [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/pkg/validator [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/attachment [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/auth [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/chat [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/observation [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/outbox [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/internal/service/user [no test files]
|
||||
? gitea.privcloud.tech/mtusi2026/migrations [no test files]
|
||||
=== RUN TestInvalidJSON
|
||||
=== RUN TestInvalidJSON/malformed
|
||||
=== RUN TestInvalidJSON/wrong_type
|
||||
=== RUN TestInvalidJSON/unknown_field
|
||||
--- PASS: TestInvalidJSON (0.02s)
|
||||
--- PASS: TestInvalidJSON/malformed (0.01s)
|
||||
--- PASS: TestInvalidJSON/wrong_type (0.00s)
|
||||
--- PASS: TestInvalidJSON/unknown_field (0.00s)
|
||||
=== RUN TestForeignChatIsHidden
|
||||
--- PASS: TestForeignChatIsHidden (0.61s)
|
||||
=== RUN TestEmptyMessage
|
||||
--- PASS: TestEmptyMessage (0.20s)
|
||||
=== RUN TestDuplicateUsername
|
||||
--- PASS: TestDuplicateUsername (0.29s)
|
||||
=== RUN TestMessagePagination
|
||||
--- PASS: TestMessagePagination (0.22s)
|
||||
=== RUN TestAttachmentContractAndErrors
|
||||
=== RUN TestAttachmentContractAndErrors/fake
|
||||
=== RUN TestAttachmentContractAndErrors/mime_mismatch
|
||||
=== RUN TestAttachmentContractAndErrors/wrong_type
|
||||
=== RUN TestAttachmentContractAndErrors/truncated
|
||||
--- PASS: TestAttachmentContractAndErrors (13.12s)
|
||||
--- PASS: TestAttachmentContractAndErrors/fake (0.00s)
|
||||
--- PASS: TestAttachmentContractAndErrors/mime_mismatch (0.00s)
|
||||
--- PASS: TestAttachmentContractAndErrors/wrong_type (0.00s)
|
||||
--- PASS: TestAttachmentContractAndErrors/truncated (0.01s)
|
||||
=== RUN TestConcurrentAttachmentMessage
|
||||
--- PASS: TestConcurrentAttachmentMessage (0.23s)
|
||||
=== RUN TestConcurrentMessages
|
||||
concurrency_test.go:160: 10 clients sent 100 messages; history contains 100 unique messages across 6 pages
|
||||
--- PASS: TestConcurrentMessages (2.09s)
|
||||
=== RUN TestIdempotencyContract
|
||||
--- PASS: TestIdempotencyContract (0.56s)
|
||||
=== RUN TestConcurrentIdempotencyAcrossReplicas
|
||||
idempotency_test.go:103: 32 requests across 2 replicas created exactly one message
|
||||
--- PASS: TestConcurrentIdempotencyAcrossReplicas (0.21s)
|
||||
PASS
|
||||
ok gitea.privcloud.tech/mtusi2026/tests 19.538s
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"research_tag_descriptor": "sha256:d661ef49e464a482dcae899acf1513fa1cf57fae01664445e2dbfb323e65c28a",
|
||||
"pipeline_tag_descriptor": "sha256:c7021c3fed2700b5234fedad71dd0478acb126a697aa25ec5ac1a2c99020962b",
|
||||
"runtime_platform_manifest": "sha256:cdbc329b56054f2a3effd832e70dcc50e8eff9b8b601515e2cf70f9de1e6d763",
|
||||
"runtime_config": "sha256:90726e8699e10a67adece45ae424631076793a340b603ed12cadae16de4d6a45",
|
||||
"runtime_manifest_present_in_research_build_log": true,
|
||||
"compose_image_labels": {
|
||||
"com.docker.compose.project": "mtusi2026lab6",
|
||||
"com.docker.compose.service": "dispatcher",
|
||||
"com.docker.compose.version": "5.3.1"
|
||||
},
|
||||
"rootfs_layers": [
|
||||
"sha256:18932007cc273c0541920263e57c02d40013c4730d7db35437a4ffcc31422eda",
|
||||
"sha256:3e2a611abc7aa98be9c8ce72079d284cc151fd38da2bcf878ba671bf756e2e7f",
|
||||
"sha256:276547fba5cc9516e768b719cdff99136849d9059b464c0d7bb7322d26d4e9a6",
|
||||
"sha256:e0fa85f3fe36e74b66b4b4dce01473ebabd7b983b3aa57800581c3901774b4a5"
|
||||
],
|
||||
"messenger_binary_sha256": "33c6b59dd87a04c05cf8ff8ad0628fb302c361d32ef125204c4225c1f8337d62",
|
||||
"note": "Compose builds the same Dockerfile for multiple roles and adds different service labels; OCI index/attestation digests differ. The runtime dispatcher platform manifest matches the research build export.",
|
||||
"research_build_exports": {
|
||||
"api": {
|
||||
"platform_manifest": "sha256:fb582ac957d339c0e15c75ffdd5a469f037565dce4e04ff3eae9593e1a00ae59",
|
||||
"config": "sha256:f0c85496a5195527417b80b23ac4764efa4c322ae8b655ffba02c14676428452",
|
||||
"index": "sha256:daa0107d0ba7c7b03e5defcb1e0af9a768384eb3b56e3cb7df597287b06fc32f"
|
||||
},
|
||||
"dispatcher": {
|
||||
"platform_manifest": "sha256:cdbc329b56054f2a3effd832e70dcc50e8eff9b8b601515e2cf70f9de1e6d763",
|
||||
"config": "sha256:90726e8699e10a67adece45ae424631076793a340b603ed12cadae16de4d6a45",
|
||||
"index": "sha256:bd4d9ad2bf79cc347d125dbda02a4ddafc804196f6f9f0e2f1b68cdb9963e0a5"
|
||||
},
|
||||
"worker": {
|
||||
"platform_manifest": "sha256:6f8740eb7bdcd57abb07582d25c02b6b509f184c92ddc2a93ed1f21be1791f34",
|
||||
"config": "sha256:e1220128a009c3c3031d20b771d5685ae8a51a1fd36ac049e6a9a62c351ea1e3",
|
||||
"index": "sha256:9c8899b0323070c8d73943d0b782ae161ed42bf312ce3759bac0e65b737cad1c"
|
||||
},
|
||||
"migrate": {
|
||||
"platform_manifest": "sha256:dfcdf8937da1d219f4383c6f1f1057bc38713c17102e136321d371a2c5a888b9",
|
||||
"config": "sha256:8afe86149f38a380ee2e3bbdd2cd8ec9c9437d3a401218191462a7708530fb2c",
|
||||
"index": "sha256:00b2fe15bc327b038deeeb471cad000ad01e4c32c6f73039e3b5f57ab46d5963"
|
||||
},
|
||||
"s3-init": {
|
||||
"platform_manifest": "sha256:0374cc3c70e64749b51918452b598aad596a8a83896196f6a5b66eb954fc644e",
|
||||
"config": "sha256:99c7245ce4f99b2f48429a11d1b80fb62604400d5e6feb3c3972219901076a6d",
|
||||
"index": "sha256:d661ef49e464a482dcae899acf1513fa1cf57fae01664445e2dbfb323e65c28a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"case": "small",
|
||||
"result": "PASS",
|
||||
"thumbnail": [
|
||||
16,
|
||||
8
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "floor",
|
||||
"result": "PASS",
|
||||
"thumbnail": [
|
||||
256,
|
||||
76
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "alpha",
|
||||
"result": "PASS",
|
||||
"thumbnail": [
|
||||
40,
|
||||
20
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "orientation",
|
||||
"result": "PASS",
|
||||
"thumbnail": [
|
||||
128,
|
||||
256
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "thin",
|
||||
"result": "PASS",
|
||||
"thumbnail": [
|
||||
1,
|
||||
256
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "center_crop",
|
||||
"result": "PASS",
|
||||
"thumbnail": [
|
||||
256,
|
||||
85
|
||||
]
|
||||
}
|
||||
],
|
||||
"negative_cases": 4
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
Container mtusi2026lab6-loki-run-e631f6d38697 Creating
|
||||
Container mtusi2026lab6-loki-run-e631f6d38697 Created
|
||||
level=info ts=2026-11-16T07:28:10.950532589Z caller=main.go:109 msg="config is valid"
|
||||
@@ -0,0 +1 @@
|
||||
PASS: persistence, real restart of all stores, unchanged volume identities
|
||||
@@ -0,0 +1,220 @@
|
||||
{
|
||||
"started": 1794824173.232328,
|
||||
"finished": 1794824240.646864,
|
||||
"command": [
|
||||
"make",
|
||||
"test-persistence",
|
||||
"ACTION_SCRIPT=scripts/restart.sh"
|
||||
],
|
||||
"returncode": 0,
|
||||
"before": {
|
||||
"mtusi2026lab6-api-1": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-16T08:13:21.61203226Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-api-2": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-16T08:13:21.47365851Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-broker-1": {
|
||||
"service": "broker",
|
||||
"started_at": "2026-11-16T07:26:13.19346959Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_broker_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-dispatcher-1": {
|
||||
"service": "dispatcher",
|
||||
"started_at": "2026-11-16T08:13:21.48129851Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-grafana-1": {
|
||||
"service": "grafana",
|
||||
"started_at": "2026-11-16T07:17:01.172943543Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_grafana_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-lb-1": {
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-16T07:18:04.666655461Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-loki-1": {
|
||||
"service": "loki",
|
||||
"started_at": "2026-11-16T07:28:11.851867589Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_loki_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-otel-collector-1": {
|
||||
"service": "otel-collector",
|
||||
"started_at": "2026-11-16T07:17:00.733510959Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-postgres-1": {
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-16T07:26:11.526101381Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_postgres_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-prometheus-1": {
|
||||
"service": "prometheus",
|
||||
"started_at": "2026-11-16T07:17:00.662441876Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_prometheus_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-redis-1": {
|
||||
"service": "redis",
|
||||
"started_at": "2026-11-16T07:26:11.457109339Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_redis_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-s3-1": {
|
||||
"service": "s3",
|
||||
"started_at": "2026-11-16T07:50:16.345342466Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_s3_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-tempo-1": {
|
||||
"service": "tempo",
|
||||
"started_at": "2026-11-16T10:14:35.984164211Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_tempo_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-worker-1": {
|
||||
"service": "worker",
|
||||
"started_at": "2026-11-16T09:43:34.761728669Z",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"mtusi2026lab6-api-1": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-16T10:17:15.204445174Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-api-2": {
|
||||
"service": "api",
|
||||
"started_at": "2026-11-16T10:17:15.085021257Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-broker-1": {
|
||||
"service": "broker",
|
||||
"started_at": "2026-11-16T10:16:17.026791924Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_broker_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-dispatcher-1": {
|
||||
"service": "dispatcher",
|
||||
"started_at": "2026-11-16T10:17:15.074397715Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-grafana-1": {
|
||||
"service": "grafana",
|
||||
"started_at": "2026-11-16T10:16:16.370235216Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_grafana_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-lb-1": {
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-16T10:17:15.316601507Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-loki-1": {
|
||||
"service": "loki",
|
||||
"started_at": "2026-11-16T10:16:18.125747508Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_loki_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-otel-collector-1": {
|
||||
"service": "otel-collector",
|
||||
"started_at": "2026-11-16T10:16:17.9785623Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi2026lab6-postgres-1": {
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-16T10:16:16.097257841Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_postgres_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-prometheus-1": {
|
||||
"service": "prometheus",
|
||||
"started_at": "2026-11-16T10:16:15.930341549Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_prometheus_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-redis-1": {
|
||||
"service": "redis",
|
||||
"started_at": "2026-11-16T10:16:16.023978757Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_redis_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-s3-1": {
|
||||
"service": "s3",
|
||||
"started_at": "2026-11-16T10:16:41.23677863Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_s3_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-tempo-1": {
|
||||
"service": "tempo",
|
||||
"started_at": "2026-11-16T10:16:16.187121549Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab6_tempo_data"
|
||||
]
|
||||
},
|
||||
"mtusi2026lab6-worker-1": {
|
||||
"service": "worker",
|
||||
"started_at": "2026-11-16T10:17:15.092656715Z",
|
||||
"volumes": []
|
||||
}
|
||||
},
|
||||
"checks": {
|
||||
"postgres": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"redis": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"s3": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"broker": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"prometheus": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"loki": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"tempo": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
"grafana": {
|
||||
"restarted": true,
|
||||
"same_volumes": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost: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.
|
||||
@@ -0,0 +1,13 @@
|
||||
{"scenario": "worker_down_and_store_restart", "run": 1, "result": "PASS", "seconds": 66.526, "attachment_id": "2c3b8f0c-8104-4619-a1fe-8041c09a3beb", "job_id": "668e23d6-b840-4577-ba49-3b90791fc3ec", "postgres_restarted": true}
|
||||
{"scenario": "crash_before_objects", "run": 1, "result": "PASS", "seconds": 11.223, "job_id": "41e04582-a1bc-4c99-be90-1f927df9903b", "manifest_rows": 4}
|
||||
{"scenario": "crash_after_original_put", "run": 1, "result": "PASS", "seconds": 10.999, "job_id": "515ac833-e1e4-46dc-96ab-fdcb89e7ed40", "manifest_rows": 4}
|
||||
{"scenario": "crash_after_objects", "run": 1, "result": "PASS", "seconds": 10.992, "job_id": "aceb0f8b-3084-4569-b562-d80cc11f58e2", "manifest_rows": 4}
|
||||
{"scenario": "crash_after_result_commit", "run": 1, "result": "PASS", "seconds": 1.992, "job_id": "f0694c6f-9b0b-41e1-98f4-5816d52c860e", "manifest_rows": 4}
|
||||
{"scenario": "crash_before_ack", "run": 1, "result": "PASS", "seconds": 2.052, "job_id": "8609eafe-72b6-4640-bf8d-447e8fa8eb89", "manifest_rows": 4}
|
||||
{"scenario": "ready_redelivery", "run": 1, "result": "PASS", "seconds": 2.585, "job_id": "c741a727-32ed-4846-878c-be719aa5bc51", "copies": 3}
|
||||
{"scenario": "crash_confirm_before_outbox_mark", "run": 1, "result": "PASS", "seconds": 34.324, "job_id": "22b742c2-f101-4f6d-965a-0dad4bc4a287"}
|
||||
{"scenario": "lease_reorder_and_stale_version", "run": 1, "result": "PASS", "seconds": 14.869, "attachment_id": "bcd403eb-854f-4ea9-b0f2-272731468061", "old_job_id": "e930a58f-f6f0-43cd-b2c0-860cec77ff33", "pipeline_version": 2, "manifest_rows": 8}
|
||||
{"scenario": "bounded_retry_and_explicit_replay", "run": 1, "result": "PASS", "seconds": 13.693, "job_id": "dd8d36b6-387f-453e-a898-e08b7674523e", "failed_attempt": 5, "replayed_attempt": 6}
|
||||
{"scenario": "permanent_error", "run": 1, "result": "PASS", "seconds": 2.667, "job_id": "83a5bdb8-7e1a-4b33-ba40-557ec119c534"}
|
||||
{"scenario": "api_crash_after_staging", "run": 1, "result": "PASS", "seconds": 0.149, "attachment_id": "328ad979-0ee9-4d41-8b16-7c420d4173f0", "accepted_commit": false}
|
||||
{"scenario": "api_crash_after_upload_commit", "run": 1, "result": "PASS", "seconds": 2.262, "attachment_id": "cc0a1cf1-862e-4e81-a276-449b075f5c48", "accepted_commit": true}
|
||||
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"date_utc": "2026-11-16T10:20:50.742339+00:00",
|
||||
"commit": "8b381c115209cf7ac143df4826c468bf38128d71",
|
||||
"working_tree": "implementation changes uncommitted",
|
||||
"repeats": 1,
|
||||
"worker": {
|
||||
"concurrency": 2,
|
||||
"prefetch": 2,
|
||||
"timeout_seconds": 5,
|
||||
"lease_seconds": 8,
|
||||
"memory": "1GiB",
|
||||
"cpus": 1
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"scenario": "worker_down_and_store_restart",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 66.526,
|
||||
"attachment_id": "2c3b8f0c-8104-4619-a1fe-8041c09a3beb",
|
||||
"job_id": "668e23d6-b840-4577-ba49-3b90791fc3ec",
|
||||
"postgres_restarted": true
|
||||
},
|
||||
{
|
||||
"scenario": "crash_before_objects",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 11.223,
|
||||
"job_id": "41e04582-a1bc-4c99-be90-1f927df9903b",
|
||||
"manifest_rows": 4
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_original_put",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 10.999,
|
||||
"job_id": "515ac833-e1e4-46dc-96ab-fdcb89e7ed40",
|
||||
"manifest_rows": 4
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_objects",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 10.992,
|
||||
"job_id": "aceb0f8b-3084-4569-b562-d80cc11f58e2",
|
||||
"manifest_rows": 4
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_result_commit",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 1.992,
|
||||
"job_id": "f0694c6f-9b0b-41e1-98f4-5816d52c860e",
|
||||
"manifest_rows": 4
|
||||
},
|
||||
{
|
||||
"scenario": "crash_before_ack",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 2.052,
|
||||
"job_id": "8609eafe-72b6-4640-bf8d-447e8fa8eb89",
|
||||
"manifest_rows": 4
|
||||
},
|
||||
{
|
||||
"scenario": "ready_redelivery",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 2.585,
|
||||
"job_id": "c741a727-32ed-4846-878c-be719aa5bc51",
|
||||
"copies": 3
|
||||
},
|
||||
{
|
||||
"scenario": "crash_confirm_before_outbox_mark",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 34.324,
|
||||
"job_id": "22b742c2-f101-4f6d-965a-0dad4bc4a287"
|
||||
},
|
||||
{
|
||||
"scenario": "lease_reorder_and_stale_version",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 14.869,
|
||||
"attachment_id": "bcd403eb-854f-4ea9-b0f2-272731468061",
|
||||
"old_job_id": "e930a58f-f6f0-43cd-b2c0-860cec77ff33",
|
||||
"pipeline_version": 2,
|
||||
"manifest_rows": 8
|
||||
},
|
||||
{
|
||||
"scenario": "bounded_retry_and_explicit_replay",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 13.693,
|
||||
"job_id": "dd8d36b6-387f-453e-a898-e08b7674523e",
|
||||
"failed_attempt": 5,
|
||||
"replayed_attempt": 6
|
||||
},
|
||||
{
|
||||
"scenario": "permanent_error",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 2.667,
|
||||
"job_id": "83a5bdb8-7e1a-4b33-ba40-557ec119c534"
|
||||
},
|
||||
{
|
||||
"scenario": "api_crash_after_staging",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 0.149,
|
||||
"attachment_id": "328ad979-0ee9-4d41-8b16-7c420d4173f0",
|
||||
"accepted_commit": false
|
||||
},
|
||||
{
|
||||
"scenario": "api_crash_after_upload_commit",
|
||||
"run": 1,
|
||||
"result": "PASS",
|
||||
"seconds": 2.262,
|
||||
"attachment_id": "cc0a1cf1-862e-4e81-a276-449b075f5c48",
|
||||
"accepted_commit": true
|
||||
}
|
||||
],
|
||||
"image_id": "sha256:c7021c3fed2700b5234fedad71dd0478acb126a697aa25ec5ac1a2c99020962b"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
python3 student-tests/images.py
|
||||
PASS: image geometry, EXIF, alpha, real formats, checksums, ACL and negative inputs
|
||||
python3 student-tests/storage.py
|
||||
PASS: active source protected, ready staging removed, failed retention enforced, restore/replay verified
|
||||
python3 student-tests/broker_persistence.py
|
||||
PASS: confirmed message survived broker container replacement with the same volume and stable node identity
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
{
|
||||
"time": 1794814090673707380,
|
||||
"action": "create",
|
||||
"service": "loki",
|
||||
"container": "c2c4608c32287a2666869a56b5d11cab57bbcc23268d46b5927b3df895b1a4c0",
|
||||
"exit_code": null
|
||||
},
|
||||
{
|
||||
"time": 1794814090753412339,
|
||||
"action": "start",
|
||||
"service": "loki",
|
||||
"container": "c2c4608c32287a2666869a56b5d11cab57bbcc23268d46b5927b3df895b1a4c0",
|
||||
"exit_code": null
|
||||
},
|
||||
{
|
||||
"time": 1794814091040505797,
|
||||
"action": "die",
|
||||
"service": "loki",
|
||||
"container": "c2c4608c32287a2666869a56b5d11cab57bbcc23268d46b5927b3df895b1a4c0",
|
||||
"exit_code": "0"
|
||||
},
|
||||
{
|
||||
"time": 1794814091079755672,
|
||||
"action": "destroy",
|
||||
"service": "loki",
|
||||
"container": "c2c4608c32287a2666869a56b5d11cab57bbcc23268d46b5927b3df895b1a4c0",
|
||||
"exit_code": null
|
||||
},
|
||||
{
|
||||
"time": 1794814091245157881,
|
||||
"action": "kill",
|
||||
"service": "loki",
|
||||
"container": "421f16b0cf6f897f24ffc81e9f95e16919b0364882475923c15de7b8bbfa8e41",
|
||||
"exit_code": null
|
||||
},
|
||||
{
|
||||
"time": 1794814091841150214,
|
||||
"action": "stop",
|
||||
"service": "loki",
|
||||
"container": "421f16b0cf6f897f24ffc81e9f95e16919b0364882475923c15de7b8bbfa8e41",
|
||||
"exit_code": null
|
||||
},
|
||||
{
|
||||
"time": 1794814091842610839,
|
||||
"action": "die",
|
||||
"service": "loki",
|
||||
"container": "421f16b0cf6f897f24ffc81e9f95e16919b0364882475923c15de7b8bbfa8e41",
|
||||
"exit_code": "0"
|
||||
},
|
||||
{
|
||||
"time": 1794814091940223131,
|
||||
"action": "start",
|
||||
"service": "loki",
|
||||
"container": "421f16b0cf6f897f24ffc81e9f95e16919b0364882475923c15de7b8bbfa8e41",
|
||||
"exit_code": null
|
||||
},
|
||||
{
|
||||
"time": 1794814091940331339,
|
||||
"action": "restart",
|
||||
"service": "loki",
|
||||
"container": "421f16b0cf6f897f24ffc81e9f95e16919b0364882475923c15de7b8bbfa8e41",
|
||||
"exit_code": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
Checking /etc/prometheus/prometheus.yaml
|
||||
SUCCESS: 1 rule files found
|
||||
SUCCESS: /etc/prometheus/prometheus.yaml is valid prometheus config file syntax
|
||||
|
||||
Checking /etc/prometheus/alerts.yaml
|
||||
SUCCESS: 16 rules found
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"dashboard_uid": "messenger-lab6",
|
||||
"panels": 22,
|
||||
"provisioned": true,
|
||||
"datasources": [
|
||||
{
|
||||
"uid": "loki",
|
||||
"type": "loki",
|
||||
"jsonData": {
|
||||
"derivedFields": [
|
||||
{
|
||||
"datasourceUid": "tempo",
|
||||
"matcherRegex": "trace_id",
|
||||
"matcherType": "label",
|
||||
"name": "TraceID",
|
||||
"url": "${__value.raw}"
|
||||
}
|
||||
],
|
||||
"maxLines": 1000
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "prometheus",
|
||||
"type": "prometheus",
|
||||
"jsonData": {
|
||||
"timeInterval": "5s"
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "tempo",
|
||||
"type": "tempo",
|
||||
"jsonData": {
|
||||
"nodeGraph": {
|
||||
"enabled": true
|
||||
},
|
||||
"tracesToLogsV2": {
|
||||
"datasourceUid": "loki",
|
||||
"filterBySpanID": false,
|
||||
"filterByTraceID": true,
|
||||
"spanEndTimeShift": "1m",
|
||||
"spanStartTimeShift": "-1m",
|
||||
"tags": [
|
||||
{
|
||||
"key": "service.name",
|
||||
"value": "service_name"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"research_completed": true,
|
||||
"short_incidents": 6,
|
||||
"short_incidents_with_firing": 0,
|
||||
"long_incidents": 6,
|
||||
"long_incidents_all_expected_alerts_fired_and_resolved": true,
|
||||
"collection_errors": 0,
|
||||
"generator_dropped": 0,
|
||||
"confirmed_messages_missing": 0,
|
||||
"attachments_ready": 3529,
|
||||
"attachments_accepted": 3529
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
./scripts/compose.sh up -d --wait --wait-timeout 90 --no-recreate api lb
|
||||
Container mtusi2026lab6-s3-1 Running
|
||||
Container mtusi2026lab6-postgres-1 Running
|
||||
Container mtusi2026lab6-api-1 Running
|
||||
Container mtusi2026lab6-lb-1 Running
|
||||
Container mtusi2026lab6-s3-1 Waiting
|
||||
Container mtusi2026lab6-postgres-1 Waiting
|
||||
Container mtusi2026lab6-postgres-1 Healthy
|
||||
Container mtusi2026lab6-s3-1 Healthy
|
||||
Container mtusi2026lab6-migrate-1 Starting
|
||||
Container mtusi2026lab6-s3-init-1 Starting
|
||||
Container mtusi2026lab6-s3-init-1 Started
|
||||
Container mtusi2026lab6-migrate-1 Started
|
||||
Container mtusi2026lab6-migrate-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Exited
|
||||
Container mtusi2026lab6-migrate-1 Exited
|
||||
Container mtusi2026lab6-api-2 Starting
|
||||
Container mtusi2026lab6-api-2 Started
|
||||
Container mtusi2026lab6-lb-1 Waiting
|
||||
Container mtusi2026lab6-s3-1 Waiting
|
||||
Container mtusi2026lab6-postgres-1 Waiting
|
||||
Container mtusi2026lab6-migrate-1 Waiting
|
||||
Container mtusi2026lab6-api-2 Waiting
|
||||
Container mtusi2026lab6-api-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Waiting
|
||||
Container mtusi2026lab6-s3-init-1 Exited
|
||||
Container mtusi2026lab6-postgres-1 Healthy
|
||||
Container mtusi2026lab6-s3-1 Healthy
|
||||
Container mtusi2026lab6-migrate-1 Exited
|
||||
Container mtusi2026lab6-lb-1 Healthy
|
||||
Container mtusi2026lab6-api-2 Healthy
|
||||
Container mtusi2026lab6-api-1 Healthy
|
||||
@@ -0,0 +1 @@
|
||||
PASS: stored metrics, safe labels, privacy canaries, trace search and dashboard queries
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,151 @@
|
||||
baseline 900 seconds
|
||||
baseline 2 s 17 requests
|
||||
baseline 66 s 693 requests
|
||||
baseline 131 s 1374 requests
|
||||
baseline 195 s 2048 requests
|
||||
baseline 260 s 2728 requests
|
||||
baseline 324 s 3398 requests
|
||||
baseline 388 s 4079 requests
|
||||
baseline 453 s 4753 requests
|
||||
baseline 517 s 5433 requests
|
||||
baseline 582 s 6108 requests
|
||||
baseline 646 s 6785 requests
|
||||
baseline 711 s 7465 requests
|
||||
baseline 775 s 8140 requests
|
||||
baseline 840 s 8820 requests
|
||||
worker_short_1 5 seconds
|
||||
worker_short_1 1 s 9468 requests
|
||||
worker_short_recovery_1 60 seconds
|
||||
worker_short_recovery_1 2 s 9532 requests
|
||||
db_short_1 5 seconds
|
||||
db_short_1 2 s 10143 requests
|
||||
db_short_recovery_1 60 seconds
|
||||
db_short_recovery_1 2 s 10215 requests
|
||||
worker_long_1 240 seconds
|
||||
worker_long_1 2 s 10844 requests
|
||||
worker_long_1 66 s 11525 requests
|
||||
worker_long_1 131 s 12199 requests
|
||||
worker_long_1 195 s 12876 requests
|
||||
worker_recovery_1 660 seconds
|
||||
worker_recovery_1 1 s 13365 requests
|
||||
worker_recovery_1 66 s 14045 requests
|
||||
worker_recovery_1 130 s 14719 requests
|
||||
worker_recovery_1 195 s 15397 requests
|
||||
worker_recovery_1 260 s 16078 requests
|
||||
worker_recovery_1 324 s 16751 requests
|
||||
worker_recovery_1 389 s 17433 requests
|
||||
worker_recovery_1 452 s 18101 requests
|
||||
worker_recovery_1 517 s 18782 requests
|
||||
worker_recovery_1 581 s 19456 requests
|
||||
worker_recovery_1 646 s 20136 requests
|
||||
db_long_1 240 seconds
|
||||
db_long_1 1 s 20283 requests
|
||||
db_long_1 66 s 20957 requests
|
||||
db_long_1 130 s 21630 requests
|
||||
db_long_1 195 s 22307 requests
|
||||
db_recovery_1 660 seconds
|
||||
db_recovery_1 2 s 22827 requests
|
||||
db_recovery_1 67 s 23508 requests
|
||||
db_recovery_1 131 s 24181 requests
|
||||
db_recovery_1 196 s 24863 requests
|
||||
db_recovery_1 260 s 25535 requests
|
||||
db_recovery_1 325 s 26214 requests
|
||||
db_recovery_1 390 s 26895 requests
|
||||
db_recovery_1 454 s 27567 requests
|
||||
db_recovery_1 518 s 28248 requests
|
||||
db_recovery_1 582 s 28917 requests
|
||||
db_recovery_1 647 s 29599 requests
|
||||
worker_short_2 5 seconds
|
||||
worker_short_2 2 s 29760 requests
|
||||
worker_short_recovery_2 60 seconds
|
||||
worker_short_recovery_2 2 s 29816 requests
|
||||
db_short_2 5 seconds
|
||||
db_short_2 2 s 30427 requests
|
||||
db_short_recovery_2 60 seconds
|
||||
db_short_recovery_2 2 s 30502 requests
|
||||
worker_long_2 240 seconds
|
||||
worker_long_2 2 s 31135 requests
|
||||
worker_long_2 67 s 31817 requests
|
||||
worker_long_2 131 s 32488 requests
|
||||
worker_long_2 196 s 33170 requests
|
||||
worker_recovery_2 660 seconds
|
||||
worker_recovery_2 2 s 33658 requests
|
||||
worker_recovery_2 67 s 34341 requests
|
||||
worker_recovery_2 131 s 35009 requests
|
||||
worker_recovery_2 196 s 35690 requests
|
||||
worker_recovery_2 260 s 36363 requests
|
||||
worker_recovery_2 325 s 37044 requests
|
||||
worker_recovery_2 389 s 37718 requests
|
||||
worker_recovery_2 453 s 38395 requests
|
||||
worker_recovery_2 518 s 39077 requests
|
||||
worker_recovery_2 582 s 39749 requests
|
||||
worker_recovery_2 647 s 40431 requests
|
||||
db_long_2 240 seconds
|
||||
db_long_2 2 s 40569 requests
|
||||
db_long_2 67 s 41251 requests
|
||||
db_long_2 131 s 41920 requests
|
||||
db_long_2 196 s 42601 requests
|
||||
db_recovery_2 660 seconds
|
||||
db_recovery_2 2 s 43111 requests
|
||||
db_recovery_2 67 s 43793 requests
|
||||
db_recovery_2 132 s 44475 requests
|
||||
db_recovery_2 197 s 45157 requests
|
||||
db_recovery_2 261 s 45825 requests
|
||||
db_recovery_2 326 s 46506 requests
|
||||
db_recovery_2 390 s 47180 requests
|
||||
db_recovery_2 455 s 47862 requests
|
||||
db_recovery_2 519 s 48535 requests
|
||||
db_recovery_2 583 s 49212 requests
|
||||
db_recovery_2 648 s 49894 requests
|
||||
worker_short_3 5 seconds
|
||||
worker_short_3 2 s 50045 requests
|
||||
worker_short_recovery_3 60 seconds
|
||||
worker_short_recovery_3 2 s 50100 requests
|
||||
db_short_3 5 seconds
|
||||
db_short_3 2 s 50712 requests
|
||||
db_short_recovery_3 60 seconds
|
||||
db_short_recovery_3 2 s 50786 requests
|
||||
worker_long_3 240 seconds
|
||||
worker_long_3 2 s 51420 requests
|
||||
worker_long_3 67 s 52103 requests
|
||||
worker_long_3 132 s 52782 requests
|
||||
worker_long_3 197 s 53464 requests
|
||||
worker_recovery_3 660 seconds
|
||||
worker_recovery_3 2 s 53943 requests
|
||||
worker_recovery_3 67 s 54626 requests
|
||||
worker_recovery_3 132 s 55302 requests
|
||||
worker_recovery_3 197 s 55984 requests
|
||||
worker_recovery_3 261 s 56656 requests
|
||||
worker_recovery_3 326 s 57339 requests
|
||||
worker_recovery_3 389 s 58007 requests
|
||||
worker_recovery_3 454 s 58689 requests
|
||||
worker_recovery_3 518 s 59361 requests
|
||||
worker_recovery_3 583 s 60043 requests
|
||||
worker_recovery_3 647 s 60716 requests
|
||||
db_long_3 240 seconds
|
||||
db_long_3 2 s 60854 requests
|
||||
db_long_3 67 s 61536 requests
|
||||
db_long_3 132 s 62213 requests
|
||||
db_long_3 197 s 62896 requests
|
||||
db_recovery_3 660 seconds
|
||||
db_recovery_3 2 s 63396 requests
|
||||
db_recovery_3 60 s 64004 requests
|
||||
db_recovery_3 124 s 64680 requests
|
||||
db_recovery_3 185 s 65319 requests
|
||||
db_recovery_3 249 s 65991 requests
|
||||
db_recovery_3 309 s 66622 requests
|
||||
db_recovery_3 374 s 67303 requests
|
||||
db_recovery_3 435 s 67938 requests
|
||||
db_recovery_3 499 s 68615 requests
|
||||
db_recovery_3 559 s 69246 requests
|
||||
db_recovery_3 624 s 69926 requests
|
||||
tempo_unavailable 300 seconds
|
||||
tempo_unavailable 2 s 70333 requests
|
||||
tempo_unavailable 60 s 70941 requests
|
||||
tempo_unavailable 124 s 71613 requests
|
||||
tempo_unavailable 184 s 72245 requests
|
||||
tempo_unavailable 249 s 72921 requests
|
||||
tempo_recovery 60 seconds
|
||||
tempo_recovery 2 s 73486 requests
|
||||
final_drain 30 seconds
|
||||
final_drain 2 s 74094 requests
|
||||
@@ -0,0 +1,342 @@
|
||||
{
|
||||
"completed": true,
|
||||
"duration_seconds": 7092.821509838104,
|
||||
"parameters": {
|
||||
"warmup": 900,
|
||||
"long": 240,
|
||||
"cooldown": 660,
|
||||
"repeats": 3,
|
||||
"backend": 300,
|
||||
"output": "evidence/slo-experiment.json"
|
||||
},
|
||||
"incidents": [
|
||||
{
|
||||
"phase": "worker_short_1",
|
||||
"duration": 5.004392862319946,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.3908971041871,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 7.937416899949312,
|
||||
"0.95": 16.20679209008813,
|
||||
"0.99": 17.71804178133607
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_short_1",
|
||||
"duration": 5.0065529346466064,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.5992161038489773,
|
||||
"error_ratio": 0.9090909090909091,
|
||||
"latency_success_ms": {
|
||||
"0.5": 23.7681670114398,
|
||||
"0.95": 27.764666825532913,
|
||||
"0.99": 27.764666825532913
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_long_1",
|
||||
"duration": 240.00321888923645,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": 64.16309976577759,
|
||||
"resolved_after_restore_seconds": 16.647381067276,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": 81.4437928199768,
|
||||
"resolved_after_restore_seconds": 64.19608902931213,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": 91.5375108718872,
|
||||
"resolved_after_restore_seconds": 123.94137406349182,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.499865558974752,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.786541875451803,
|
||||
"0.95": 17.55095785483718,
|
||||
"0.99": 28.451249934732914
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_long_1",
|
||||
"duration": 240.002925157547,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": 53.87334394454956,
|
||||
"resolved_after_restore_seconds": 64.97496175765991,
|
||||
"fired": true
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": 63.97737908363342,
|
||||
"resolved_after_restore_seconds": 124.8059549331665,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.49999409771972575,
|
||||
"error_ratio": 0.952,
|
||||
"latency_success_ms": {
|
||||
"0.5": 27.061082888394594,
|
||||
"0.95": 41.25562496483326,
|
||||
"0.99": 48.944166861474514
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_short_2",
|
||||
"duration": 5.0105671882629395,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.37807944264453,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 6.861874833703041,
|
||||
"0.95": 17.471542116254568,
|
||||
"0.99": 27.467207983136177
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_short_2",
|
||||
"duration": 5.0033698081970215,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.5995964668020037,
|
||||
"error_ratio": 0.9090909090909091,
|
||||
"latency_success_ms": {
|
||||
"0.5": 31.136707868427038,
|
||||
"0.95": 34.025250002741814,
|
||||
"0.99": 34.025250002741814
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_long_2",
|
||||
"duration": 240.0071098804474,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": 64.87712001800537,
|
||||
"resolved_after_restore_seconds": 17.59833526611328,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": 77.18091893196106,
|
||||
"resolved_after_restore_seconds": 72.45875120162964,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": 87.29317092895508,
|
||||
"resolved_after_restore_seconds": 129.3502321243286,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.499693843708734,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.250332903116941,
|
||||
"0.95": 16.793041955679655,
|
||||
"0.99": 24.823333136737347
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_long_2",
|
||||
"duration": 240.00172305107117,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": 49.7854859828949,
|
||||
"resolved_after_restore_seconds": 60.06502294540405,
|
||||
"fired": true
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": 59.878856897354126,
|
||||
"resolved_after_restore_seconds": 119.95286202430725,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.4999965896441693,
|
||||
"error_ratio": 0.952,
|
||||
"latency_success_ms": {
|
||||
"0.5": 28.64320809021592,
|
||||
"0.95": 42.32870787382126,
|
||||
"0.99": 52.682749927043915
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_short_3",
|
||||
"duration": 5.0045859813690186,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.59029924161761,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.69549997150898,
|
||||
"0.95": 24.411499965935946,
|
||||
"0.99": 26.277707889676094
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_short_3",
|
||||
"duration": 5.008757829666138,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 4.591960382015873,
|
||||
"error_ratio": 0.5660377358490566,
|
||||
"latency_success_ms": {
|
||||
"0.5": 904.9617499113083,
|
||||
"0.95": 1902.7691250666976,
|
||||
"0.99": 2003.8470001891255
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_long_3",
|
||||
"duration": 240.00332617759705,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": 59.91160011291504,
|
||||
"resolved_after_restore_seconds": 12.543959856033325,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": 72.20107531547546,
|
||||
"resolved_after_restore_seconds": 65.21866607666016,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": 87.36326217651367,
|
||||
"resolved_after_restore_seconds": 124.68797492980957,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.499858507930577,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.27891705557704,
|
||||
"0.95": 17.318916972726583,
|
||||
"0.99": 25.771250016987324
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_long_3",
|
||||
"duration": 240.00675511360168,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": 44.78353834152222,
|
||||
"resolved_after_restore_seconds": 55.135868310928345,
|
||||
"fired": true
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": 54.89339232444763,
|
||||
"resolved_after_restore_seconds": 119.52835726737976,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.49998607674270545,
|
||||
"error_ratio": 0.952,
|
||||
"latency_success_ms": {
|
||||
"0.5": 27.898625005036592,
|
||||
"0.95": 41.145917028188705,
|
||||
"0.99": 74.70795791596174
|
||||
}
|
||||
}
|
||||
],
|
||||
"traffic": {
|
||||
"requests": 74094,
|
||||
"success": 66860,
|
||||
"errors": 7234,
|
||||
"generator_dropped": 0,
|
||||
"uploads_accepted": 3529,
|
||||
"latency_success_ms": {
|
||||
"0.5": 7.835667114704847,
|
||||
"0.95": 17.5331667996943,
|
||||
"0.99": 29.314542189240456
|
||||
},
|
||||
"statuses": {
|
||||
"200": 56997,
|
||||
"201": 6334,
|
||||
"202": 3529,
|
||||
"503": 7234
|
||||
}
|
||||
},
|
||||
"attachment_states": {
|
||||
"ready": 3529
|
||||
},
|
||||
"image_id": "sha256:d661ef49e464a482dcae899acf1513fa1cf57fae01664445e2dbfb323e65c28a"
|
||||
}
|
||||
@@ -0,0 +1,342 @@
|
||||
{
|
||||
"completed": true,
|
||||
"duration_seconds": 7092.821509838104,
|
||||
"parameters": {
|
||||
"warmup": 900,
|
||||
"long": 240,
|
||||
"cooldown": 660,
|
||||
"repeats": 3,
|
||||
"backend": 300,
|
||||
"output": "evidence/slo-experiment.json"
|
||||
},
|
||||
"incidents": [
|
||||
{
|
||||
"phase": "worker_short_1",
|
||||
"duration": 5.004392862319946,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.3908971041871,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 7.937416899949312,
|
||||
"0.95": 16.20679209008813,
|
||||
"0.99": 17.71804178133607
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_short_1",
|
||||
"duration": 5.0065529346466064,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.5992161038489773,
|
||||
"error_ratio": 0.9090909090909091,
|
||||
"latency_success_ms": {
|
||||
"0.5": 23.7681670114398,
|
||||
"0.95": 27.764666825532913,
|
||||
"0.99": 27.764666825532913
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_long_1",
|
||||
"duration": 240.00321888923645,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": 64.16309976577759,
|
||||
"resolved_after_restore_seconds": 16.647381067276,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": 81.4437928199768,
|
||||
"resolved_after_restore_seconds": 64.19608902931213,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": 91.5375108718872,
|
||||
"resolved_after_restore_seconds": 123.94137406349182,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.499865558974752,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.786541875451803,
|
||||
"0.95": 17.55095785483718,
|
||||
"0.99": 28.451249934732914
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_long_1",
|
||||
"duration": 240.002925157547,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": 53.87334394454956,
|
||||
"resolved_after_restore_seconds": 64.97496175765991,
|
||||
"fired": true
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": 63.97737908363342,
|
||||
"resolved_after_restore_seconds": 124.8059549331665,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.49999409771972575,
|
||||
"error_ratio": 0.952,
|
||||
"latency_success_ms": {
|
||||
"0.5": 27.061082888394594,
|
||||
"0.95": 41.25562496483326,
|
||||
"0.99": 48.944166861474514
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_short_2",
|
||||
"duration": 5.0105671882629395,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.37807944264453,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 6.861874833703041,
|
||||
"0.95": 17.471542116254568,
|
||||
"0.99": 27.467207983136177
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_short_2",
|
||||
"duration": 5.0033698081970215,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.5995964668020037,
|
||||
"error_ratio": 0.9090909090909091,
|
||||
"latency_success_ms": {
|
||||
"0.5": 31.136707868427038,
|
||||
"0.95": 34.025250002741814,
|
||||
"0.99": 34.025250002741814
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_long_2",
|
||||
"duration": 240.0071098804474,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": 64.87712001800537,
|
||||
"resolved_after_restore_seconds": 17.59833526611328,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": 77.18091893196106,
|
||||
"resolved_after_restore_seconds": 72.45875120162964,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": 87.29317092895508,
|
||||
"resolved_after_restore_seconds": 129.3502321243286,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.499693843708734,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.250332903116941,
|
||||
"0.95": 16.793041955679655,
|
||||
"0.99": 24.823333136737347
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_long_2",
|
||||
"duration": 240.00172305107117,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": 49.7854859828949,
|
||||
"resolved_after_restore_seconds": 60.06502294540405,
|
||||
"fired": true
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": 59.878856897354126,
|
||||
"resolved_after_restore_seconds": 119.95286202430725,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.4999965896441693,
|
||||
"error_ratio": 0.952,
|
||||
"latency_success_ms": {
|
||||
"0.5": 28.64320809021592,
|
||||
"0.95": 42.32870787382126,
|
||||
"0.99": 52.682749927043915
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_short_3",
|
||||
"duration": 5.0045859813690186,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.59029924161761,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.69549997150898,
|
||||
"0.95": 24.411499965935946,
|
||||
"0.99": 26.277707889676094
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_short_3",
|
||||
"duration": 5.008757829666138,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": null,
|
||||
"resolved_after_restore_seconds": null,
|
||||
"fired": false
|
||||
}
|
||||
},
|
||||
"successful_rps": 4.591960382015873,
|
||||
"error_ratio": 0.5660377358490566,
|
||||
"latency_success_ms": {
|
||||
"0.5": 904.9617499113083,
|
||||
"0.95": 1902.7691250666976,
|
||||
"0.99": 2003.8470001891255
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "worker_long_3",
|
||||
"duration": 240.00332617759705,
|
||||
"alerts": {
|
||||
"QueueLag": {
|
||||
"detection_seconds": 59.91160011291504,
|
||||
"resolved_after_restore_seconds": 12.543959856033325,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateFast": {
|
||||
"detection_seconds": 72.20107531547546,
|
||||
"resolved_after_restore_seconds": 65.21866607666016,
|
||||
"fired": true
|
||||
},
|
||||
"ReadyBurnRateSlow": {
|
||||
"detection_seconds": 87.36326217651367,
|
||||
"resolved_after_restore_seconds": 124.68797492980957,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 10.499858507930577,
|
||||
"error_ratio": 0.0,
|
||||
"latency_success_ms": {
|
||||
"0.5": 8.27891705557704,
|
||||
"0.95": 17.318916972726583,
|
||||
"0.99": 25.771250016987324
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "db_long_3",
|
||||
"duration": 240.00675511360168,
|
||||
"alerts": {
|
||||
"ApiBurnRateFast": {
|
||||
"detection_seconds": 44.78353834152222,
|
||||
"resolved_after_restore_seconds": 55.135868310928345,
|
||||
"fired": true
|
||||
},
|
||||
"ApiBurnRateSlow": {
|
||||
"detection_seconds": 54.89339232444763,
|
||||
"resolved_after_restore_seconds": 119.52835726737976,
|
||||
"fired": true
|
||||
}
|
||||
},
|
||||
"successful_rps": 0.49998607674270545,
|
||||
"error_ratio": 0.952,
|
||||
"latency_success_ms": {
|
||||
"0.5": 27.898625005036592,
|
||||
"0.95": 41.145917028188705,
|
||||
"0.99": 74.70795791596174
|
||||
}
|
||||
}
|
||||
],
|
||||
"traffic": {
|
||||
"requests": 74094,
|
||||
"success": 66860,
|
||||
"errors": 7234,
|
||||
"generator_dropped": 0,
|
||||
"uploads_accepted": 3529,
|
||||
"latency_success_ms": {
|
||||
"0.5": 7.835667114704847,
|
||||
"0.95": 17.5331667996943,
|
||||
"0.99": 29.314542189240456
|
||||
},
|
||||
"statuses": {
|
||||
"200": 56997,
|
||||
"201": 6334,
|
||||
"202": 3529,
|
||||
"503": 7234
|
||||
}
|
||||
},
|
||||
"attachment_states": {
|
||||
"ready": 3529
|
||||
},
|
||||
"image_id": "sha256:d661ef49e464a482dcae899acf1513fa1cf57fae01664445e2dbfb323e65c28a"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:18086"
|
||||
PASS: lab6 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,109 @@
|
||||
./scripts/test-storage.sh
|
||||
=== RUN TestIdempotencyTransactionAndExpiry
|
||||
2026/11/16 07:14:23 INFO connected to database db=lab5_atomic_1794813262_55454
|
||||
2026/11/16 07:14:23 INFO successfully initialized migrator
|
||||
2026/11/16 07:14:23 INFO successfully loaded migrations error=<nil>
|
||||
2026/11/16 07:14:23 INFO postgres_pool_config max_conns=8 connect_timeout=500ms statement_timeout_ms=2000
|
||||
2026/11/16 07:14:23 INFO successfully connected to postgres pool
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/empty
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/whitespace
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/invalid_UTF8
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nul
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_long
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/duplicate
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_many
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nil_id
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/unknown
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/foreign_chat
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/missing_object
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 WARN chat_cache_read_error chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90 error="cache disabled for storage test"
|
||||
2026/11/16 07:14:23 INFO chat_db_lookup chat_id=0296a27b-f827-49f0-b6ba-a7793543ed90
|
||||
=== RUN TestIdempotencyTransactionAndExpiry/object_lock_cancellation_does_not_leak_a_pooled_lock
|
||||
=== NAME TestIdempotencyTransactionAndExpiry
|
||||
idempotency_test.go:295: rollback removed both side effect and key; expired key created one new message
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry (0.11s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules (0.01s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/empty (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/whitespace (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/invalid_UTF8 (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nul (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_long (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/duplicate (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/too_many (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/nil_id (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/unknown (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/foreign_chat (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/service_owns_message_content_rules/missing_object (0.00s)
|
||||
--- PASS: TestIdempotencyTransactionAndExpiry/object_lock_cancellation_does_not_leak_a_pooled_lock (0.05s)
|
||||
PASS
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"scenario": "queued_staging_protected",
|
||||
"result": "PASS",
|
||||
"attachment_id": "34aa2186-8c54-49ff-b517-03af038fc35c"
|
||||
},
|
||||
{
|
||||
"scenario": "staging_deleted_after_ready",
|
||||
"result": "PASS",
|
||||
"attachment_id": "34aa2186-8c54-49ff-b517-03af038fc35c"
|
||||
},
|
||||
{
|
||||
"scenario": "failed_retention_and_missing_source_replay",
|
||||
"result": "PASS",
|
||||
"age_simulated_hours": 25
|
||||
},
|
||||
{
|
||||
"scenario": "verified_restore_then_replay",
|
||||
"result": "PASS",
|
||||
"job_id": "c425d43e-a61c-4501-b900-8fb75fe0add1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
[
|
||||
{
|
||||
"reference": "otel/opentelemetry-collector-contrib:0.140.0",
|
||||
"id": "sha256:ffc818ee108d0b934fd14207fd87ff247c9b64f344ed349d0b66c166c18a2312",
|
||||
"repo_digests": [
|
||||
"otel/opentelemetry-collector-contrib@sha256:ffc818ee108d0b934fd14207fd87ff247c9b64f344ed349d0b66c166c18a2312"
|
||||
]
|
||||
},
|
||||
{
|
||||
"reference": "prom/prometheus:v3.16.0",
|
||||
"id": "sha256:e04987641b57704f408e31f6373ba4138ecf27cb4a165d24aabb6c38fddd0f06",
|
||||
"repo_digests": [
|
||||
"prom/prometheus@sha256:e04987641b57704f408e31f6373ba4138ecf27cb4a165d24aabb6c38fddd0f06"
|
||||
]
|
||||
},
|
||||
{
|
||||
"reference": "grafana/loki:3.7.10",
|
||||
"id": "sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7",
|
||||
"repo_digests": [
|
||||
"grafana/loki@sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7"
|
||||
]
|
||||
},
|
||||
{
|
||||
"reference": "grafana/tempo:2.9.0",
|
||||
"id": "sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4",
|
||||
"repo_digests": [
|
||||
"grafana/tempo@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4"
|
||||
]
|
||||
},
|
||||
{
|
||||
"reference": "grafana/grafana:13.3.1",
|
||||
"id": "sha256:0615ec4fbd4072004b7d86b46ded63013a74b7d6eb1119273dd89e8fa25c13cf",
|
||||
"repo_digests": [
|
||||
"grafana/grafana@sha256:0615ec4fbd4072004b7d86b46ded63013a74b7d6eb1119273dd89e8fa25c13cf"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user