forked from mtusi2026/mtusi2026lab5
Document verified lab 5 grades and archive the versioned pipeline
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
# Проверенные результаты для агента REPORT
|
||||
|
||||
Код: `9ba3076fa8ba707de932e053fc22f455d83b3210`, 2026-11-06 UTC. Основа: ЛР4 `d7478726a85791c21e065d58f610735a9e687433`. Методика, гипотеза, причины исправлений и ограничения — ../NOTES.md; остаточные minor — ../findings.json. Это evidence-заметки, исходный REPORT.md не менялся.
|
||||
|
||||
## Критерии 3/4
|
||||
|
||||
| Критерий | Реальная проверка | Наблюдение / файл |
|
||||
| --- | --- | --- |
|
||||
| Структура/контракты/качество | make check validate lint; make student-test | static.txt PASS; student-test.txt: 508 passed, 1 skipped (RLIMIT_AS на macOS), 19 deselected (отдельные stack tests) |
|
||||
| Минимум API ЛР4 и состояния ЛР5 | make test; suite --level 4 | smoke.txt и resume-smoke.txt PASS; level4.json включает queued/processing/ready/failed, checksum/форматы и негативные коды |
|
||||
| Устойчивость данных и сессии | make test-persistence ACTION_SCRIPT=scripts/restart.sh | persistence.txt PASS; persistence-scope.json: 9 прежних ID перезапущены, named volumes прежние |
|
||||
| Отказ реплики | make test-failover ACTION_SCRIPT=scripts/stop-one.sh; make restore; lab4_scenarios.py failover-upload --restore | 133 записи / 0 ошибок; upload-failover.json: остановленная 69a2869bbc83, другой сервер 22f6be0c42c2 отдаёт прежний sha256 |
|
||||
| Worker остановлен; API/broker рестарт | level4.json / worker_down_broker_restart | 202 queued, сообщение 201, сохранение работы с volumes, затем ready и thumbnail |
|
||||
| Outbox, confirm, COMMIT→ack | crash_commit_publish, crash_publish_confirm, crash_after_s3_before_commit, crash_after_commit_before_ack | Фактические exited контейнеры/коды в after_crash; исходные jobs завершаются, повтор без второго эффекта |
|
||||
| Retry/DLQ/replay | s3_outage_recovers, retry_exhausted, retry_backoff_jitter, malformed_message_dead_lettered, replay_failed | Максимум 5 попыток, equal jitter, DLQ +1, replay failed и noop ready |
|
||||
| Варианты/лимиты worker | image_matrix, worker_limits | Crop 128×128, WebP, EXIF/alpha; 40 Мп / 116714 bytes: 0.5 s и 200 MiB → failed, worker жив; штатно ready с 3 вариантами, peak 423 MiB < 1024 MiB |
|
||||
| Lease/fencing и staging | lease_expiry_fencing, failed_retention, итоговый inventory | Зависший держатель fenced; staging удаляется после безопасной фиксации/retention; cleanup активных версий дополнительно покрыт регрессиями |
|
||||
|
||||
Полный `level4.json`: **17 сценариев, 8 инвариантов PASS**, 277.625 s; 33 принятых вложения, 28 ready с проверенными байтами, 5 ожидаемых failed, 116 S3-объектов строго по ожидаемым ключам SQL. DLQ 13→14 только из-за malformed message. Linux memory/time проверяет пропущенный на macOS механизм в реальном worker.
|
||||
|
||||
SQLAlchemy 2.0.45 / Alembic 1.16.5 / asyncpg 0.32.0 / FastStream 0.7.8 / aio-pika 10.2.1 / Pillow 13.0.0 подтверждены в runtime.txt. Durable quorum, persistent message, publisher confirm, manual ack и prefetch=2: исходные доказательства grade3 и повторные crash-сценарии level4. Код topology/ack не ослаблялся.
|
||||
|
||||
## Трек 2: три пригодных повтора
|
||||
|
||||
Файлы: run1.json, run2.json, run3-retry.json; 13 сценариев и 8 инвариантов PASS в каждом. **39 разных принятых IDs, 174 фактических объекта S3**, все 202 сохранены и завершены, метаданные/размеры/sha256 совпадают с отданными байтами. Дублей эффектов, отката ready/версии, незаконченных outbox и неожиданных dead letters нет для этих IDs. Сохранённая DLQ остаётся 14; исторические сообщения не очищались.
|
||||
|
||||
Длительности полных команд: 187.789, 178.973, 188.824 s; медиана 187.789 s. Сценарные значения ниже взяты непосредственно из JSON (округление suite до 0.1 s); полные времена включают также итоговый inventory. Контроль smoke_pipeline и все faults сравниваются на одном коде.
|
||||
|
||||
| Сценарий | Повтор 1, s | Повтор 2, s | Повтор 3, s | Медиана, s | Min, s | Max, s |
|
||||
| --- | --- | --- | --- | --- | --- | --- |
|
||||
| smoke_pipeline | 1.3 | 1.3 | 1.3 | 1.3 | 1.3 | 1.3 |
|
||||
| duplicate_after_ready | 9.1 | 4.7 | 8.8 | 8.8 | 4.7 | 9.1 |
|
||||
| crash_commit_publish | 9.7 | 9.4 | 9.4 | 9.4 | 9.4 | 9.7 |
|
||||
| crash_publish_confirm | 9.3 | 9.4 | 9.9 | 9.4 | 9.3 | 9.9 |
|
||||
| crash_after_s3_before_commit | 12.2 | 12.1 | 12.1 | 12.1 | 12.1 | 12.2 |
|
||||
| crash_after_commit_before_ack | 11.0 | 9.9 | 11.1 | 11.0 | 9.9 | 11.1 |
|
||||
| lease_expiry_fencing | 33.9 | 33.6 | 33.8 | 33.8 | 33.6 | 33.9 |
|
||||
| crash_before_side_effect | 11.3 | 12.4 | 16.6 | 12.4 | 11.3 | 16.6 |
|
||||
| worker_kill_mid_task | 11.9 | 11.4 | 11.2 | 11.4 | 11.2 | 11.9 |
|
||||
| duplicate_in_flight | 13.8 | 16.2 | 14.0 | 14.0 | 13.8 | 16.2 |
|
||||
| reorder_attempts | 14.0 | 15.3 | 14.3 | 14.3 | 14.0 | 15.3 |
|
||||
| reorder_versions | 13.0 | 11.5 | 13.8 | 13.0 | 11.5 | 13.8 |
|
||||
| stale_after_new_version | 9.5 | 4.8 | 4.9 | 4.9 | 4.8 | 9.5 |
|
||||
|
||||
## Различимость и монотонность версий
|
||||
|
||||
В каждом повторе v2 принудительно достигает published=2 до доставки v1; v1 затем завершается superseded, v2 остаётся done, публичный снимок не меняется. В отдельном stale_after_new_version опубликованы v1→v2, после поздней v1 снимок v2/SQL идентичен. Внутри каждого recipe все три повтора дают одинаковые hashes и размеры; между recipe они различаются. Полные hashes всех повторов — version-comparison.csv; ниже первые 16 hex для чтения.
|
||||
|
||||
| Вариант | Размеры | v1 bytes | v2 bytes | v1 sha256 prefix | v2 sha256 prefix |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| crop | 128×128 | 1820 | 2142 | 97bf1400b30a28c1 | 5b6fb2a66216f8ca |
|
||||
| optimized | 320×200 | 2462 | 2790 | 1090d84ed8411226 | fe520c978bd45fc8 |
|
||||
| thumbnail | 256×160 | 4679 | 5628 | 7bc40bf315c8e18e | fa0db661078d4da9 |
|
||||
|
||||
Версия 2 меняет качество кодирования (JPEG 85→90, WebP 80→85), а не геометрию; рост размера не объявляется измерением визуального качества. Состояние ready остаётся доступным во время upgrade. Потерянные confirm/ack дают дубли доставки, поэтому вывод — идемпотентный эффект в проверенной матрице, а не exactly-once доставка.
|
||||
|
||||
## Пригодность и ограничения
|
||||
|
||||
- qualified/run3.json исключён: остановленный broker и Broken pipe прервали выполнение. Две первые успешные серии сохранены; повторена только третья. Все 10 принятых до прерывания вложений восстановились без ручного replay (interrupted-recovery.json).
|
||||
- Docker общий. Фон первых двух серий не измерялся непрерывно. Поздние background-*.json не обнаружили других работающих Docker projects в момент снимков, но это не доказательство отсутствия внешней CPU-нагрузки. host-conditions.json: 16 CPU, host 48 GiB, Docker 8217190400 bytes, load averages 7.28/5.27/4.33 в момент снимка. Времена сценариев не служат изолированными throughput/latency метриками. Третий пригодный повтор выполнен после паузы и перезапуска стенда.
|
||||
- Один host, один broker/DB, три повтора и дискретные API-снимки не доказывают устойчивость к потере диска/кластера или все возможные чередования. Конкурентные тесты и SQL guards дополняют fault matrix.
|
||||
- Три minor из ../findings.json остаются: ложный FAIL порядка secrets в limits.py; старый reconcile_track.py ЛР4; отсутствие отдельного retry failed upgrade при ready предыдущей версии. Команде limits.py PASS не присвоен.
|
||||
|
||||
Гипотеза подтверждена в проверенной матрице на SQLAlchemy-коде: принятые задания сохраняются, эффект уникален, более новая публикация не затирается старой. Исходные реальные провалы и исправления не скрыты; окончательный REPORT и независимое ревью выполняет следующий агент.
|
||||
|
||||
Завершение: down.txt — make down exit 0; shutdown.json — контейнеров собственного project нет, все четыре постоянных volumes сохранены. Публикация и сообщения не выполнялись.
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"at": "2026-11-06T09:10:29.000550+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"parsed_json_files": 32,
|
||||
"secret_pattern_scan": {
|
||||
"scope": "evidence/sqlalchemy-2026-11-06/track2",
|
||||
"patterns": [
|
||||
"credential_url",
|
||||
"authorization_value",
|
||||
"private_key",
|
||||
"unredacted_cookie_hash"
|
||||
],
|
||||
"findings": [],
|
||||
"limit": "Pattern scan is not proof of universal secret absence"
|
||||
},
|
||||
"protected_paths_unchanged_from": "02228a2847f0d2292e827b98662d37651b267050",
|
||||
"runtime_and_tests_unchanged_after_qualification": true,
|
||||
"result": "PASS",
|
||||
"git_diff_check": {
|
||||
"all_exit_code": 2,
|
||||
"excluding_raw_evidence_exit_code": 0,
|
||||
"raw_output_whitespace_locations": 19,
|
||||
"explanation": "Literal command output contains trailing spaces emitted by Make; preserved as evidence. Derived CSV uses LF. No code/spec whitespace errors."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"at": "2026-11-06T09:04:13.514457+00:00",
|
||||
"phase": "retry-finished",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"commands": [
|
||||
"docker ps --format JSON",
|
||||
"docker stats --no-stream --format JSON"
|
||||
],
|
||||
"sampling": "Instantaneous shared Docker observation; no other containers controlled",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab5-worker-1",
|
||||
"CPUPerc": "0.13%",
|
||||
"MemUsage": "95.65MiB / 1GiB",
|
||||
"MemPerc": "9.34%",
|
||||
"PIDs": "3"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-relay-1",
|
||||
"CPUPerc": "0.47%",
|
||||
"MemUsage": "106MiB / 192MiB",
|
||||
"MemPerc": "55.21%",
|
||||
"PIDs": "4"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-api-2",
|
||||
"CPUPerc": "0.30%",
|
||||
"MemUsage": "242.5MiB / 512MiB",
|
||||
"MemPerc": "47.36%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-api-1",
|
||||
"CPUPerc": "0.42%",
|
||||
"MemUsage": "232.3MiB / 512MiB",
|
||||
"MemPerc": "45.37%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-broker-1",
|
||||
"CPUPerc": "47.62%",
|
||||
"MemUsage": "130.5MiB / 512MiB",
|
||||
"MemPerc": "25.49%",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-postgres-1",
|
||||
"CPUPerc": "1.80%",
|
||||
"MemUsage": "71.68MiB / 1GiB",
|
||||
"MemPerc": "7.00%",
|
||||
"PIDs": "14"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-lb-1",
|
||||
"CPUPerc": "0.77%",
|
||||
"MemUsage": "27.29MiB / 128MiB",
|
||||
"MemPerc": "21.32%",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-s3-1",
|
||||
"CPUPerc": "0.09%",
|
||||
"MemUsage": "223.4MiB / 512MiB",
|
||||
"MemPerc": "43.64%",
|
||||
"PIDs": "11"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-valkey-1",
|
||||
"CPUPerc": "0.14%",
|
||||
"MemUsage": "21.1MiB / 128MiB",
|
||||
"MemPerc": "16.48%",
|
||||
"PIDs": "7"
|
||||
}
|
||||
],
|
||||
"other_projects": {}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"at": "2026-11-06T09:02:51.597231+00:00",
|
||||
"phase": "retry-middle",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"commands": [
|
||||
"docker ps --format JSON",
|
||||
"docker stats --no-stream --format JSON"
|
||||
],
|
||||
"sampling": "Instantaneous shared Docker observation; no other containers controlled",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab5-api-2",
|
||||
"CPUPerc": "13.44%",
|
||||
"MemUsage": "242.1MiB / 512MiB",
|
||||
"MemPerc": "47.29%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-api-1",
|
||||
"CPUPerc": "13.40%",
|
||||
"MemUsage": "232.1MiB / 512MiB",
|
||||
"MemPerc": "45.33%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-broker-1",
|
||||
"CPUPerc": "31.35%",
|
||||
"MemUsage": "199.7MiB / 512MiB",
|
||||
"MemPerc": "39.01%",
|
||||
"PIDs": "103"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-postgres-1",
|
||||
"CPUPerc": "1.55%",
|
||||
"MemUsage": "71.71MiB / 1GiB",
|
||||
"MemPerc": "7.00%",
|
||||
"PIDs": "11"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-lb-1",
|
||||
"CPUPerc": "0.06%",
|
||||
"MemUsage": "26.84MiB / 128MiB",
|
||||
"MemPerc": "20.97%",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-s3-1",
|
||||
"CPUPerc": "2.59%",
|
||||
"MemUsage": "218.2MiB / 512MiB",
|
||||
"MemPerc": "42.63%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-valkey-1",
|
||||
"CPUPerc": "0.68%",
|
||||
"MemUsage": "20.84MiB / 128MiB",
|
||||
"MemPerc": "16.28%",
|
||||
"PIDs": "7"
|
||||
}
|
||||
],
|
||||
"other_projects": {}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"at": "2026-11-06T09:01:10.887668+00:00",
|
||||
"phase": "retry-start",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"commands": [
|
||||
"docker ps --format JSON",
|
||||
"docker stats --no-stream --format JSON"
|
||||
],
|
||||
"sampling": "Instantaneous shared Docker observation; no other containers controlled",
|
||||
"own": [
|
||||
{
|
||||
"Name": "mtusi2026lab5-relay-1",
|
||||
"CPUPerc": "0.52%",
|
||||
"MemUsage": "106.3MiB / 192MiB",
|
||||
"MemPerc": "55.38%",
|
||||
"PIDs": "4"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-api-2",
|
||||
"CPUPerc": "0.38%",
|
||||
"MemUsage": "241.6MiB / 512MiB",
|
||||
"MemPerc": "47.19%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-api-1",
|
||||
"CPUPerc": "0.37%",
|
||||
"MemUsage": "226.3MiB / 512MiB",
|
||||
"MemPerc": "44.21%",
|
||||
"PIDs": "12"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-broker-1",
|
||||
"CPUPerc": "0.51%",
|
||||
"MemUsage": "129.5MiB / 512MiB",
|
||||
"MemPerc": "25.29%",
|
||||
"PIDs": "53"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-postgres-1",
|
||||
"CPUPerc": "1.68%",
|
||||
"MemUsage": "79.04MiB / 1GiB",
|
||||
"MemPerc": "7.72%",
|
||||
"PIDs": "19"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-lb-1",
|
||||
"CPUPerc": "0.04%",
|
||||
"MemUsage": "26.73MiB / 128MiB",
|
||||
"MemPerc": "20.88%",
|
||||
"PIDs": "17"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-s3-1",
|
||||
"CPUPerc": "1.32%",
|
||||
"MemUsage": "217.3MiB / 512MiB",
|
||||
"MemPerc": "42.45%",
|
||||
"PIDs": "13"
|
||||
},
|
||||
{
|
||||
"Name": "mtusi2026lab5-valkey-1",
|
||||
"CPUPerc": "0.17%",
|
||||
"MemUsage": "20.83MiB / 128MiB",
|
||||
"MemPerc": "16.28%",
|
||||
"PIDs": "7"
|
||||
}
|
||||
],
|
||||
"other_projects": {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
date: 2026-11-06T09:09:22Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {}
|
||||
$ make lint
|
||||
.venv/bin/ruff check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
183 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit_code: 0 elapsed_seconds: 0.241
|
||||
@@ -0,0 +1,53 @@
|
||||
date: 2026-11-06T09:04:19Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make down
|
||||
docker compose --profile bench --profile tools --profile reconcile down
|
||||
Container mtusi2026lab5-lb-1 Stopping
|
||||
Container mtusi2026lab5-relay-1 Stopping
|
||||
Container mtusi2026lab5-worker-1 Stopping
|
||||
Container mtusi2026lab5-api-1 Stopping
|
||||
Container mtusi2026lab5-api-2 Stopping
|
||||
Container mtusi2026lab5-worker-1 Stopped
|
||||
Container mtusi2026lab5-worker-1 Removing
|
||||
Container mtusi2026lab5-relay-1 Stopped
|
||||
Container mtusi2026lab5-relay-1 Removing
|
||||
Container mtusi2026lab5-worker-1 Removed
|
||||
Container mtusi2026lab5-lb-1 Stopped
|
||||
Container mtusi2026lab5-lb-1 Removing
|
||||
Container mtusi2026lab5-relay-1 Removed
|
||||
Container mtusi2026lab5-broker-1 Stopping
|
||||
Container mtusi2026lab5-lb-1 Removed
|
||||
Container mtusi2026lab5-broker-1 Stopped
|
||||
Container mtusi2026lab5-broker-1 Removing
|
||||
Container mtusi2026lab5-api-2 Stopped
|
||||
Container mtusi2026lab5-api-2 Removing
|
||||
Container mtusi2026lab5-broker-1 Removed
|
||||
Container mtusi2026lab5-api-2 Removed
|
||||
Container mtusi2026lab5-api-1 Stopped
|
||||
Container mtusi2026lab5-api-1 Removing
|
||||
Container mtusi2026lab5-api-1 Removed
|
||||
Container mtusi2026lab5-s3-init-1 Stopping
|
||||
Container mtusi2026lab5-migrate-1 Stopping
|
||||
Container mtusi2026lab5-valkey-1 Stopping
|
||||
Container mtusi2026lab5-s3-init-1 Stopped
|
||||
Container mtusi2026lab5-s3-init-1 Removing
|
||||
Container mtusi2026lab5-migrate-1 Stopped
|
||||
Container mtusi2026lab5-migrate-1 Removing
|
||||
Container mtusi2026lab5-migrate-1 Removed
|
||||
Container mtusi2026lab5-postgres-1 Stopping
|
||||
Container mtusi2026lab5-s3-init-1 Removed
|
||||
Container mtusi2026lab5-s3-1 Stopping
|
||||
Container mtusi2026lab5-postgres-1 Stopped
|
||||
Container mtusi2026lab5-postgres-1 Removing
|
||||
Container mtusi2026lab5-postgres-1 Removed
|
||||
Container mtusi2026lab5-valkey-1 Stopped
|
||||
Container mtusi2026lab5-valkey-1 Removing
|
||||
Container mtusi2026lab5-s3-1 Stopped
|
||||
Container mtusi2026lab5-s3-1 Removing
|
||||
Container mtusi2026lab5-valkey-1 Removed
|
||||
Container mtusi2026lab5-s3-1 Removed
|
||||
Network mtusi2026lab5_backend Removing
|
||||
Network mtusi2026lab5_edge Removing
|
||||
Network mtusi2026lab5_backend Removed
|
||||
Network mtusi2026lab5_edge Removed
|
||||
exit_code: 0 elapsed_seconds: 3.409
|
||||
@@ -0,0 +1,8 @@
|
||||
date: 2026-11-06T08:03:48Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18085"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 133, "failed_attempts": 0, "first_recovery_seconds": 2.816}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit_code: 0 elapsed_seconds: 17.126
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"at": "2026-11-06T09:03:33.600522+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"system": "Darwin",
|
||||
"architecture": "arm64",
|
||||
"scope": "One current host/engine snapshot, not a continuous monitor of earlier runs",
|
||||
"host_load": {
|
||||
"command": [
|
||||
"sysctl",
|
||||
"-n",
|
||||
"vm.loadavg"
|
||||
],
|
||||
"value": "{ 7.28 5.27 4.33 }"
|
||||
},
|
||||
"host_logical_cpus": {
|
||||
"command": [
|
||||
"sysctl",
|
||||
"-n",
|
||||
"hw.logicalcpu"
|
||||
],
|
||||
"value": "16"
|
||||
},
|
||||
"host_memory_bytes": {
|
||||
"command": [
|
||||
"sysctl",
|
||||
"-n",
|
||||
"hw.memsize"
|
||||
],
|
||||
"value": "51539607552"
|
||||
},
|
||||
"docker": {
|
||||
"command": [
|
||||
"docker",
|
||||
"info",
|
||||
"--format",
|
||||
"{{.NCPU}} CPUs; {{.MemTotal}} bytes; engine {{.ServerVersion}}"
|
||||
],
|
||||
"value": "16 CPUs; 8217190400 bytes; engine 28.3.2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"at": "2026-11-06T09:00:12.320878Z",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"accepted_ids": [
|
||||
"01a1afed-0343-7056-963a-533b9f14601f",
|
||||
"01a1afed-0861-74d5-b1f0-ffb482cb709a",
|
||||
"01a1afed-3527-7458-b5b8-c3b9d791f8e4",
|
||||
"01a1afed-5c3b-713a-9a8f-4b645658bdc8",
|
||||
"01a1afed-7fe4-7535-a6f6-2ce5dc8c9228",
|
||||
"01a1afed-b05e-7165-8aec-99b3d269e5a8",
|
||||
"01a1afed-d8bc-7453-9280-c874d964f09e",
|
||||
"01a1afee-579c-7516-bbed-967aad29268f",
|
||||
"01a1afee-8345-72cf-bfd2-5fac1fa1991b",
|
||||
"01a1afee-b8ba-7392-a662-9b28645b5761"
|
||||
],
|
||||
"nonterminal": [],
|
||||
"attachments": {
|
||||
"01a1afed-0343-7056-963a-533b9f14601f": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afed-0861-74d5-b1f0-ffb482cb709a": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afed-3527-7458-b5b8-c3b9d791f8e4": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afed-5c3b-713a-9a8f-4b645658bdc8": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afed-7fe4-7535-a6f6-2ce5dc8c9228": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afed-b05e-7165-8aec-99b3d269e5a8": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afed-d8bc-7453-9280-c874d964f09e": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afee-579c-7516-bbed-967aad29268f": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afee-8345-72cf-bfd2-5fac1fa1991b": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
],
|
||||
"01a1afee-b8ba-7392-a662-9b28645b5761": [
|
||||
{
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"error_code": null,
|
||||
"staging_key": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"result": "PASS",
|
||||
"manual_replay": false
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"at": "2026-11-06T08:59:28.735848+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"result": "INCOMPLETE",
|
||||
"evidence": "run3.json",
|
||||
"observed": "broker rabbit node was not running during duplicate_in_flight; output pipe then closed; all own service containers later observed exited with code 0",
|
||||
"retained_valid_runs": [
|
||||
"run1.json",
|
||||
"run2.json"
|
||||
],
|
||||
"repeat": "Only incomplete third series, on unchanged code",
|
||||
"redaction": {
|
||||
"file": "run3.json",
|
||||
"cookie_hash_lines": 1,
|
||||
"original_file_sha256": "e29768216c2fd7a803fdbe0177acf40594cf91058fbe5bb0d4af6f0a2c3d7ac7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,977 @@
|
||||
{
|
||||
"suite": "lab5-pipeline-idempotency",
|
||||
"started_at": "2026-11-06T08:04:16.362022Z",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"config": {
|
||||
"base_url": "http://127.0.0.1:18085",
|
||||
"level": 4,
|
||||
"only": "",
|
||||
"expect_variants": "thumbnail,crop,optimized",
|
||||
"max_attempts": 5,
|
||||
"stall_seconds": 15.0,
|
||||
"compose": "docker compose",
|
||||
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
|
||||
},
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 33
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 33
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 28
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 116,
|
||||
"scoped_attachments": 33
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 33
|
||||
}
|
||||
}
|
||||
],
|
||||
"accepted_ids": [
|
||||
"01a1afe3-2d92-7203-b6b3-819c58ae9335",
|
||||
"01a1afe3-34b6-7389-bb04-db926330963b",
|
||||
"01a1afe3-78f1-740c-ad7c-aed58f2e89d0",
|
||||
"01a1afe3-8bc8-7041-85d5-fe948f128f3c",
|
||||
"01a1afe3-c6e6-75e4-b192-e8b4e11b9848",
|
||||
"01a1afe4-0369-71eb-89dd-9801bcdac639",
|
||||
"01a1afe4-0872-7012-b7f2-22bbeae2bc38",
|
||||
"01a1afe4-0c35-7009-945b-0d52afe36b42",
|
||||
"01a1afe4-0d8d-74dc-b6bd-53fcd421f9b8",
|
||||
"01a1afe4-1037-77d8-b6d3-779193c8a85e",
|
||||
"01a1afe4-119c-70be-aa5b-d4f7e813f5c6",
|
||||
"01a1afe4-1451-703b-8de7-a876c2317b1c",
|
||||
"01a1afe4-15bc-76db-a5f0-dd115aef821a",
|
||||
"01a1afe4-171e-7351-846f-035ed90b9f78",
|
||||
"01a1afe4-19e4-70be-8133-c98951a31660",
|
||||
"01a1afe4-1b46-7205-bee8-89e3965e6fce",
|
||||
"01a1afe4-1de0-72fc-ada9-dedad1128696",
|
||||
"01a1afe4-1f44-72f7-ad4b-5e08f4e81811",
|
||||
"01a1afe4-21f2-773b-bc57-961e99c8576c",
|
||||
"01a1afe4-2356-763a-a6d6-0e7dc01f236a",
|
||||
"01a1afe4-25fd-715d-b504-11d36327c4b1",
|
||||
"01a1afe4-27a8-76a4-a19e-1d1203aa4d29",
|
||||
"01a1afe4-389e-76b9-b778-2073d6551951",
|
||||
"01a1afe4-5cd8-7172-b759-e4abd7cb9a3a",
|
||||
"01a1afe4-813e-7267-a21e-58c9d3e5578b",
|
||||
"01a1afe4-aefb-7046-a383-a810ec522fb6",
|
||||
"01a1afe4-da00-7679-b38f-ef9b775109ee",
|
||||
"01a1afe5-5a1c-75a8-bf33-c5b51776d029",
|
||||
"01a1afe5-d706-73c5-8f02-d4243c76b86a",
|
||||
"01a1afe5-e84e-7498-a4a4-dddbaa36ed35",
|
||||
"01a1afe5-fa6f-722b-bd87-aaa2ca549313",
|
||||
"01a1afe6-0ee3-7380-89c3-312d6daf004a",
|
||||
"01a1afe6-651a-762d-8d7a-f28d97526838"
|
||||
],
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "smoke_pipeline",
|
||||
"level": 3,
|
||||
"window": "upload, ready, variants match metadata",
|
||||
"seconds": 1.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe3-2d92-7203-b6b3-819c58ae9335",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_down_broker_restart",
|
||||
"level": 3,
|
||||
"window": "worker down, API and broker restart",
|
||||
"seconds": 18.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe3-34b6-7389-bb04-db926330963b",
|
||||
"timeline": [
|
||||
{
|
||||
"at": "2026-11-06T08:04:25.395290Z",
|
||||
"step": "worker stopped",
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 4704712a23cc exited Exited (0) Less than a second ago"
|
||||
]
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:25.407157Z",
|
||||
"step": "upload 202 queued",
|
||||
"attachment_id": "01a1afe3-34b6-7389-bb04-db926330963b"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:25.410438Z",
|
||||
"step": "content 409 while queued"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:25.434091Z",
|
||||
"step": "message with attachment 201, other messages work",
|
||||
"message_id": "01a1afe3-34c4-77f4-81c4-30e1528742b4"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:28.945236Z",
|
||||
"step": "job is in the broker queue",
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
1,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
13,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:34.533232Z",
|
||||
"step": "API replicas and relay restarted"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:39.919749Z",
|
||||
"step": "broker restarted with its volume, job survived",
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
1,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
13,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:42.691110Z",
|
||||
"step": "worker started"
|
||||
},
|
||||
{
|
||||
"at": "2026-11-06T08:04:42.858723Z",
|
||||
"step": "ready",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_after_ready",
|
||||
"level": 3,
|
||||
"window": "redelivery of a finished job",
|
||||
"seconds": 4.5,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe3-78f1-740c-ad7c-aed58f2e89d0",
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "poison_image",
|
||||
"level": 3,
|
||||
"window": "permanent error without retries",
|
||||
"seconds": 0.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"rejected_by_api": 415
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "s3_outage_recovers",
|
||||
"level": 3,
|
||||
"window": "transient error with retry",
|
||||
"seconds": 11.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe3-8bc8-7041-85d5-fe948f128f3c",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe3-8bd0-72ff-9bf6-cf5d4726a0f9",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "retry_exhausted",
|
||||
"level": 3,
|
||||
"window": "transient error until JOB_MAX_ATTEMPTS",
|
||||
"seconds": 18.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe3-c6e6-75e4-b192-e8b4e11b9848",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe3-c6f1-76e1-8cd9-2e95ccb29cd4",
|
||||
"pipeline_version": 1,
|
||||
"status": "failed",
|
||||
"attempt": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "image_matrix",
|
||||
"level": 4,
|
||||
"window": "limits and variants",
|
||||
"seconds": 10.5,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"images": [
|
||||
{
|
||||
"file": "png-rgb-320x200.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-rgba-300x300.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-palette-trns-200x100.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-gray-17x1000.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-gray-alpha-640x480.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-gray16-300x200.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-rgba16-64x64.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-1x1.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-wide-3000x2.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-small-50x30.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "jpeg-rgb-1000x750.jpg",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "jpeg-gray-801x601.jpg",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "jpeg-cmyk-400x300.jpg",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "jpeg-exif6-400x200.jpg",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "jpeg-exif3-300x200.jpg",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "jpeg-rgb-4000x3000.jpg",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-exactly-10mib.png",
|
||||
"http": 202,
|
||||
"status": "ready",
|
||||
"error_code": null,
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "png-over-10mib.png",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "png-over-pixels-8001x5000.png",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "jpeg-over-pixels-10000x5000.jpg",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "png-truncated.png",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "png-corrupt-idat.png",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "jpeg-truncated.jpg",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "png-zero-width.png",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "not-an-image.png",
|
||||
"http": "rejected"
|
||||
},
|
||||
{
|
||||
"file": "gif-declared-as-png.png",
|
||||
"http": "rejected"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_commit_publish",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before publish",
|
||||
"seconds": 9.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe4-389e-76b9-b778-2073d6551951",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": false,
|
||||
"status": "queued",
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 0a63dd18538d exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe4-389e-76b9-b778-2073d6551951/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe4-389e-76b9-b778-2073d6551951/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe4-389e-76b9-b778-2073d6551951/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_publish_confirm",
|
||||
"level": 4,
|
||||
"window": "after publish, before confirm",
|
||||
"seconds": 9.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe4-5cd8-7172-b759-e4abd7cb9a3a",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": [
|
||||
false
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
13,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 705a1d6aa0de exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe4-5cd8-7172-b759-e4abd7cb9a3a/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe4-5cd8-7172-b759-e4abd7cb9a3a/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe4-5cd8-7172-b759-e4abd7cb9a3a/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
"done",
|
||||
"duplicate_noop"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3_before_commit",
|
||||
"level": 4,
|
||||
"window": "after S3 write, before COMMIT",
|
||||
"seconds": 11.7,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe4-813e-7267-a21e-58c9d3e5578b",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"variant_rows": 0,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 18a018f7074e exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe4-813e-7267-a21e-58c9d3e5578b/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe4-813e-7267-a21e-58c9d3e5578b/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe4-813e-7267-a21e-58c9d3e5578b/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before ack",
|
||||
"seconds": 11.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe4-aefb-7046-a383-a810ec522fb6",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe4-aefb-7046-a383-a810ec522fb6/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe4-aefb-7046-a383-a810ec522fb6/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe4-aefb-7046-a383-a810ec522fb6/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
13,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 9caa43441092 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe4-aefb-7046-a383-a810ec522fb6/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe4-aefb-7046-a383-a810ec522fb6/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe4-aefb-7046-a383-a810ec522fb6/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lease_expiry_fencing",
|
||||
"level": 4,
|
||||
"window": "stalled worker, lease expiry",
|
||||
"seconds": 32.7,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe4-da00-7679-b38f-ef9b775109ee",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe4-da06-730b-8720-4b40cf0ffb8e",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "lease_expired",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "fenced",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "replay_failed",
|
||||
"level": 4,
|
||||
"window": "operator replay",
|
||||
"seconds": 26.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe5-5a1c-75a8-bf33-c5b51776d029",
|
||||
"replay": {
|
||||
"result": "replayed",
|
||||
"attachment_id": "01a1afe5-5a1c-75a8-bf33-c5b51776d029",
|
||||
"operator": "cli"
|
||||
},
|
||||
"replay_of_ready": {
|
||||
"result": "noop",
|
||||
"attachment_id": "01a1afe5-5a1c-75a8-bf33-c5b51776d029",
|
||||
"operator": "cli"
|
||||
},
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "retry_scheduled",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "retry_scheduled",
|
||||
"attempt": 3
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 3
|
||||
},
|
||||
{
|
||||
"kind": "retry_scheduled",
|
||||
"attempt": 4
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 4
|
||||
},
|
||||
{
|
||||
"kind": "retry_scheduled",
|
||||
"attempt": 5
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 5
|
||||
},
|
||||
{
|
||||
"kind": "failed",
|
||||
"attempt": 5
|
||||
},
|
||||
{
|
||||
"kind": "replayed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "replay_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "malformed_message_dead_lettered",
|
||||
"level": 4,
|
||||
"window": "message that is not a job goes to the DLQ",
|
||||
"seconds": 5.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"dead_letters": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_limits",
|
||||
"level": 4,
|
||||
"window": "render time and memory limits, 40 Mpx in the worker limit",
|
||||
"seconds": 14.6,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"image": {
|
||||
"file": "png-at-pixel-limit-8000x5000.png",
|
||||
"bytes": 116714,
|
||||
"pixels": 40000000
|
||||
},
|
||||
"render_timeout": {
|
||||
"seconds": 0.5,
|
||||
"attachment_id": "01a1afe5-d706-73c5-8f02-d4243c76b86a",
|
||||
"error_code": "processing_failed",
|
||||
"worker": "running"
|
||||
},
|
||||
"render_memory": {
|
||||
"mib": 200,
|
||||
"attachment_id": "01a1afe5-e84e-7498-a4a4-dddbaa36ed35",
|
||||
"error_code": "processing_failed",
|
||||
"worker": "running"
|
||||
},
|
||||
"default_limits": {
|
||||
"attachment_id": "01a1afe5-fa6f-722b-bd87-aaa2ca549313",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
],
|
||||
"memory_peak_mib": 423.0,
|
||||
"memory_max_mib": 1024.0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "retry_backoff_jitter",
|
||||
"level": 4,
|
||||
"window": "backoff with equal jitter between attempts",
|
||||
"seconds": 22.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe6-0ee3-7380-89c3-312d6daf004a",
|
||||
"delays": [
|
||||
{
|
||||
"attempt": 2,
|
||||
"delay": 0.74393
|
||||
},
|
||||
{
|
||||
"attempt": 3,
|
||||
"delay": 1.095325
|
||||
},
|
||||
{
|
||||
"attempt": 4,
|
||||
"delay": 3.798319
|
||||
},
|
||||
{
|
||||
"attempt": 5,
|
||||
"delay": 7.603246
|
||||
}
|
||||
],
|
||||
"share_of_ceiling": [
|
||||
0.744,
|
||||
0.548,
|
||||
0.95,
|
||||
0.95
|
||||
],
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe6-0eeb-7524-86fc-469fe948e2a3",
|
||||
"pipeline_version": 1,
|
||||
"status": "failed",
|
||||
"attempt": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "failed_retention",
|
||||
"level": 4,
|
||||
"window": "failed staging kept until retention, then replay expires",
|
||||
"seconds": 21.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe6-651a-762d-8d7a-f28d97526838",
|
||||
"staging_before": "kept",
|
||||
"retention_seconds": 86400,
|
||||
"aged_only": "01a1afe6-651a-762d-8d7a-f28d97526838",
|
||||
"replay": {
|
||||
"result": "expired",
|
||||
"attachment_id": "01a1afe6-651a-762d-8d7a-f28d97526838",
|
||||
"operator": "cli"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"result": "PASS",
|
||||
"finished_at": "2026-11-06T08:08:53.937799Z"
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
date: 2026-11-06T08:04:16Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ python3 scripts/pipeline_suite.py --level 4 --output evidence/sqlalchemy-2026-11-06/track2/qualified/level4.json
|
||||
RUN smoke_pipeline
|
||||
PASS smoke_pipeline
|
||||
RUN worker_down_broker_restart
|
||||
PASS worker_down_broker_restart
|
||||
RUN duplicate_after_ready
|
||||
PASS duplicate_after_ready
|
||||
RUN poison_image
|
||||
PASS poison_image
|
||||
RUN s3_outage_recovers
|
||||
PASS s3_outage_recovers
|
||||
RUN retry_exhausted
|
||||
PASS retry_exhausted
|
||||
RUN image_matrix
|
||||
PASS image_matrix
|
||||
RUN crash_commit_publish
|
||||
PASS crash_commit_publish
|
||||
RUN crash_publish_confirm
|
||||
PASS crash_publish_confirm
|
||||
RUN crash_after_s3_before_commit
|
||||
PASS crash_after_s3_before_commit
|
||||
RUN crash_after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack
|
||||
RUN lease_expiry_fencing
|
||||
PASS lease_expiry_fencing
|
||||
RUN replay_failed
|
||||
PASS replay_failed
|
||||
RUN malformed_message_dead_lettered
|
||||
PASS malformed_message_dead_lettered
|
||||
RUN worker_limits
|
||||
PASS worker_limits
|
||||
RUN retry_backoff_jitter
|
||||
PASS retry_backoff_jitter
|
||||
RUN failed_retention
|
||||
PASS failed_retention
|
||||
PASS: lab5 pipeline suite, report evidence/sqlalchemy-2026-11-06/track2/qualified/level4.json
|
||||
exit_code: 0 elapsed_seconds: 277.625
|
||||
@@ -0,0 +1,28 @@
|
||||
date: 2026-11-06T09:09:21Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {}
|
||||
$ openspec validate --all --strict
|
||||
- Validating...
|
||||
✓ spec/lab1-event-publication
|
||||
✓ spec/lab1-messenger-chats
|
||||
✓ spec/lab1-messenger-history
|
||||
✓ spec/lab1-messenger-identity
|
||||
✓ spec/lab1-service-operability
|
||||
✓ spec/lab2-auth-sessions
|
||||
✓ spec/lab2-dependency-failures
|
||||
✓ spec/lab2-history-index
|
||||
✓ spec/lab2-persistent-storage
|
||||
✓ spec/lab2-session-cache
|
||||
✓ spec/lab3-failover-operations
|
||||
✓ spec/lab3-idempotent-messages
|
||||
✓ spec/lab3-load-balancing
|
||||
✓ spec/lab4-attachments
|
||||
✓ spec/lab4-object-storage
|
||||
✓ spec/lab4-storage-reconciler
|
||||
✓ spec/lab4-upload-resilience
|
||||
✓ spec/lab5-attachment-pipeline
|
||||
✓ spec/lab5-image-variants
|
||||
✓ spec/lab5-job-delivery
|
||||
✓ spec/lab5-job-recovery
|
||||
✓ spec/lab5-versioned-pipeline
|
||||
Totals: 22 passed, 0 failed (22 items)
|
||||
exit_code: 0 elapsed_seconds: 0.772
|
||||
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"at": "2026-11-06T08:03:48.395314+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"command": "make test-persistence ACTION_SCRIPT=scripts/restart.sh",
|
||||
"inspection_template": "{{.Id}}|{{.Name}}|{{index .Config.Labels \"com.docker.compose.project\"}}|{{index .Config.Labels \"com.docker.compose.service\"}}|{{.State.StartedAt}}|{{.State.Status}}|{{range .Mounts}}{{if eq .Type \"volume\"}}{{.Name}},{{end}}{{end}}",
|
||||
"services": [
|
||||
"lb",
|
||||
"api",
|
||||
"relay",
|
||||
"worker",
|
||||
"postgres",
|
||||
"valkey",
|
||||
"s3",
|
||||
"broker"
|
||||
],
|
||||
"before": {
|
||||
"/mtusi2026lab5-api-1": {
|
||||
"id": "22f6be0c42c28f80097098e9a433dba47751eff92cc9cc657a4782b784f4a4dd",
|
||||
"name": "/mtusi2026lab5-api-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "api",
|
||||
"started_at": "2026-11-06T08:02:57.117233055Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-api-2": {
|
||||
"id": "69a2869bbc83a3886199751351ca708161f8179313781159bdc9a94388dd8e92",
|
||||
"name": "/mtusi2026lab5-api-2",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "api",
|
||||
"started_at": "2026-11-06T08:02:57.064697805Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-broker-1": {
|
||||
"id": "af78e2acb1da01ed2967d43ad049532f3e64ec35aa5dc32fc02a557801756dbc",
|
||||
"name": "/mtusi2026lab5-broker-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "broker",
|
||||
"started_at": "2026-11-06T07:39:59.713380251Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_broker-data,"
|
||||
},
|
||||
"/mtusi2026lab5-lb-1": {
|
||||
"id": "28b60f6e6d7d8a791d9635aa71d6e722424315ac9558e1a2cb13d7d6228b2939",
|
||||
"name": "/mtusi2026lab5-lb-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-06T07:39:03.812880669Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-postgres-1": {
|
||||
"id": "ad6ae244de8813f7694cde1ef8e99244d82985b6dacce466b8fde935ac4f3620",
|
||||
"name": "/mtusi2026lab5-postgres-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-06T07:39:02.445588169Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_pgdata,"
|
||||
},
|
||||
"/mtusi2026lab5-relay-1": {
|
||||
"id": "f971e8923b9df81ce4a6e4e2ffbcfd23e384fc9293485ed804a74ccfc211b1d5",
|
||||
"name": "/mtusi2026lab5-relay-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "relay",
|
||||
"started_at": "2026-11-06T08:02:57.05757593Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-s3-1": {
|
||||
"id": "330d57a8fe287407525cab47df067adf4f2a315814a370f629fd0604b8492e3a",
|
||||
"name": "/mtusi2026lab5-s3-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "s3",
|
||||
"started_at": "2026-11-06T07:40:21.887076886Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_s3data,"
|
||||
},
|
||||
"/mtusi2026lab5-valkey-1": {
|
||||
"id": "06e9fd804c33ba6dc3cc640629310465d57b63a10258c7fc99781e6e08421cd2",
|
||||
"name": "/mtusi2026lab5-valkey-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "valkey",
|
||||
"started_at": "2026-11-06T07:39:02.481661044Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_valkeydata,"
|
||||
},
|
||||
"/mtusi2026lab5-worker-1": {
|
||||
"id": "e57177cedaf45f3bc2d89f5730dc01de0dd1d307dcdfcbf4b098a200b04cbf74",
|
||||
"name": "/mtusi2026lab5-worker-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "worker",
|
||||
"started_at": "2026-11-06T08:02:57.063800055Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
}
|
||||
},
|
||||
"after": {
|
||||
"/mtusi2026lab5-api-1": {
|
||||
"id": "22f6be0c42c28f80097098e9a433dba47751eff92cc9cc657a4782b784f4a4dd",
|
||||
"name": "/mtusi2026lab5-api-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "api",
|
||||
"started_at": "2026-11-06T08:03:44.972170633Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-api-2": {
|
||||
"id": "69a2869bbc83a3886199751351ca708161f8179313781159bdc9a94388dd8e92",
|
||||
"name": "/mtusi2026lab5-api-2",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "api",
|
||||
"started_at": "2026-11-06T08:03:44.897461008Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-broker-1": {
|
||||
"id": "af78e2acb1da01ed2967d43ad049532f3e64ec35aa5dc32fc02a557801756dbc",
|
||||
"name": "/mtusi2026lab5-broker-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "broker",
|
||||
"started_at": "2026-11-06T08:03:40.01015438Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_broker-data,"
|
||||
},
|
||||
"/mtusi2026lab5-lb-1": {
|
||||
"id": "28b60f6e6d7d8a791d9635aa71d6e722424315ac9558e1a2cb13d7d6228b2939",
|
||||
"name": "/mtusi2026lab5-lb-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "lb",
|
||||
"started_at": "2026-11-06T08:03:40.268196839Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-postgres-1": {
|
||||
"id": "ad6ae244de8813f7694cde1ef8e99244d82985b6dacce466b8fde935ac4f3620",
|
||||
"name": "/mtusi2026lab5-postgres-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "postgres",
|
||||
"started_at": "2026-11-06T08:03:38.954373755Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_pgdata,"
|
||||
},
|
||||
"/mtusi2026lab5-relay-1": {
|
||||
"id": "f971e8923b9df81ce4a6e4e2ffbcfd23e384fc9293485ed804a74ccfc211b1d5",
|
||||
"name": "/mtusi2026lab5-relay-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "relay",
|
||||
"started_at": "2026-11-06T08:03:44.898584258Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
},
|
||||
"/mtusi2026lab5-s3-1": {
|
||||
"id": "330d57a8fe287407525cab47df067adf4f2a315814a370f629fd0604b8492e3a",
|
||||
"name": "/mtusi2026lab5-s3-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "s3",
|
||||
"started_at": "2026-11-06T08:03:38.911390255Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_s3data,"
|
||||
},
|
||||
"/mtusi2026lab5-valkey-1": {
|
||||
"id": "06e9fd804c33ba6dc3cc640629310465d57b63a10258c7fc99781e6e08421cd2",
|
||||
"name": "/mtusi2026lab5-valkey-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "valkey",
|
||||
"started_at": "2026-11-06T08:03:38.983467213Z",
|
||||
"status": "running",
|
||||
"volumes": "mtusi2026lab5_valkeydata,"
|
||||
},
|
||||
"/mtusi2026lab5-worker-1": {
|
||||
"id": "e57177cedaf45f3bc2d89f5730dc01de0dd1d307dcdfcbf4b098a200b04cbf74",
|
||||
"name": "/mtusi2026lab5-worker-1",
|
||||
"project": "mtusi2026lab5",
|
||||
"service": "worker",
|
||||
"started_at": "2026-11-06T08:03:44.892549174Z",
|
||||
"status": "running",
|
||||
"volumes": ""
|
||||
}
|
||||
},
|
||||
"assertions": "All nine same container IDs restarted, running, same named volumes"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
date: 2026-11-06T08:03:33Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18085"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit_code: 0 elapsed_seconds: 14.305
|
||||
@@ -0,0 +1,12 @@
|
||||
date: 2026-11-06T08:04:05Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make restore
|
||||
scripts/restore.sh
|
||||
Container mtusi2026lab5-api-1 Running
|
||||
Container mtusi2026lab5-api-2 Starting
|
||||
Container mtusi2026lab5-api-2 Started
|
||||
Container mtusi2026lab5-api-2 Waiting
|
||||
Container mtusi2026lab5-api-1 Waiting
|
||||
Container mtusi2026lab5-api-2 Healthy
|
||||
Container mtusi2026lab5-api-1 Healthy
|
||||
exit_code: 0 elapsed_seconds: 3.656
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T09:00:14Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18085"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit_code: 0 elapsed_seconds: 1.688
|
||||
@@ -0,0 +1,160 @@
|
||||
date: 2026-11-06T08:59:28Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make up
|
||||
sh scripts/secrets.sh
|
||||
sh scripts/broker-secrets.sh
|
||||
broker and S3 worker secrets ready in secrets/ (values not printed)
|
||||
docker compose build
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 434B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.65kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#4 DONE 1.6s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 453B done
|
||||
#5 DONE 0.1s
|
||||
|
||||
#6 [internal] load build context
|
||||
#6 transferring context: 20.85kB 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#8 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 3/7] WORKDIR /build
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#10 CACHED
|
||||
|
||||
#11 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#11 CACHED
|
||||
|
||||
#12 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#13 CACHED
|
||||
|
||||
#14 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#14 CACHED
|
||||
|
||||
#15 [runtime 4/6] WORKDIR /app
|
||||
#15 CACHED
|
||||
|
||||
#16 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#16 CACHED
|
||||
|
||||
#17 [builder 6/7] COPY src ./src
|
||||
#17 CACHED
|
||||
|
||||
#18 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#18 CACHED
|
||||
|
||||
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
||||
#19 CACHED
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers done
|
||||
#20 exporting manifest sha256:7e4120f8a09fc081470dba8b602f1cb91fdab16a1aec409acc668a9b571d204c done
|
||||
#20 exporting config sha256:46ab4e91b05cc0bc4289ced7464a2516d5088b99e0e723dce09e3fc3b605ba3d done
|
||||
#20 exporting attestation manifest sha256:e64efb7d4ff97d236ef1584c3ec13773ad509c849c12adf434bf0d0067e4bbeb done
|
||||
#20 exporting manifest list sha256:abf13c9c69dbf3d127954271bda371c4bcce67dae9a30d9c9d52faa0ffcf0630 done
|
||||
#20 naming to docker.io/library/mtusi-messenger:lab5-sqlalchemy done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:lab5-sqlalchemy done
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
docker compose up -d --wait
|
||||
Container mtusi2026lab5-migrate-1 Recreate
|
||||
Container mtusi2026lab5-migrate-1 Recreated
|
||||
Container mtusi2026lab5-relay-1 Recreate
|
||||
Container mtusi2026lab5-api-1 Recreate
|
||||
Container mtusi2026lab5-worker-1 Recreate
|
||||
Container mtusi2026lab5-api-2 Recreate
|
||||
Container mtusi2026lab5-relay-1 Recreated
|
||||
Container mtusi2026lab5-worker-1 Recreated
|
||||
Container mtusi2026lab5-api-2 Recreated
|
||||
Container mtusi2026lab5-api-1 Recreated
|
||||
Container mtusi2026lab5-valkey-1 Starting
|
||||
Container mtusi2026lab5-postgres-1 Starting
|
||||
Container mtusi2026lab5-broker-1 Starting
|
||||
Container mtusi2026lab5-lb-1 Starting
|
||||
Container mtusi2026lab5-s3-1 Starting
|
||||
Container mtusi2026lab5-s3-1 Started
|
||||
Container mtusi2026lab5-s3-1 Waiting
|
||||
Container mtusi2026lab5-valkey-1 Started
|
||||
Container mtusi2026lab5-lb-1 Started
|
||||
Container mtusi2026lab5-postgres-1 Started
|
||||
Container mtusi2026lab5-postgres-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Started
|
||||
Container mtusi2026lab5-postgres-1 Healthy
|
||||
Container mtusi2026lab5-migrate-1 Starting
|
||||
Container mtusi2026lab5-migrate-1 Started
|
||||
Container mtusi2026lab5-s3-1 Healthy
|
||||
Container mtusi2026lab5-s3-init-1 Starting
|
||||
Container mtusi2026lab5-s3-init-1 Started
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-api-2 Starting
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-broker-1 Healthy
|
||||
Container mtusi2026lab5-broker-1 Healthy
|
||||
Container mtusi2026lab5-relay-1 Starting
|
||||
Container mtusi2026lab5-worker-1 Starting
|
||||
Container mtusi2026lab5-relay-1 Started
|
||||
Container mtusi2026lab5-api-2 Started
|
||||
Container mtusi2026lab5-api-1 Starting
|
||||
Container mtusi2026lab5-worker-1 Started
|
||||
Container mtusi2026lab5-api-1 Started
|
||||
Container mtusi2026lab5-api-2 Waiting
|
||||
Container mtusi2026lab5-api-1 Waiting
|
||||
Container mtusi2026lab5-relay-1 Waiting
|
||||
Container mtusi2026lab5-valkey-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-s3-1 Waiting
|
||||
Container mtusi2026lab5-lb-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Waiting
|
||||
Container mtusi2026lab5-worker-1 Waiting
|
||||
Container mtusi2026lab5-postgres-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-postgres-1 Healthy
|
||||
Container mtusi2026lab5-s3-1 Healthy
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-broker-1 Healthy
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-valkey-1 Healthy
|
||||
Container mtusi2026lab5-api-2 Healthy
|
||||
Container mtusi2026lab5-api-1 Healthy
|
||||
Container mtusi2026lab5-worker-1 Healthy
|
||||
Container mtusi2026lab5-relay-1 Healthy
|
||||
Container mtusi2026lab5-lb-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
exit_code: 0 elapsed_seconds: 13.318
|
||||
@@ -0,0 +1,931 @@
|
||||
{
|
||||
"suite": "lab5-pipeline-idempotency",
|
||||
"started_at": "2026-11-06T08:08:54.070155Z",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"config": {
|
||||
"base_url": "http://127.0.0.1:18085",
|
||||
"level": 5,
|
||||
"only": "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version",
|
||||
"expect_variants": "thumbnail,crop,optimized",
|
||||
"max_attempts": 5,
|
||||
"stall_seconds": 15.0,
|
||||
"compose": "docker compose",
|
||||
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
|
||||
},
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 9
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 58,
|
||||
"scoped_attachments": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"accepted_ids": [
|
||||
"01a1afe7-6a4d-723a-b68b-e0884d175b2b",
|
||||
"01a1afe7-6f6c-772e-b114-83ff1dc8bab2",
|
||||
"01a1afe7-a347-71e2-a53a-bba0f8f95b11",
|
||||
"01a1afe7-c7c1-76a3-84e8-9a90b677d136",
|
||||
"01a1afe7-ebfd-7623-8528-1acadd6639d7",
|
||||
"01a1afe8-1c4d-704f-afb7-52fbfab3c3f8",
|
||||
"01a1afe8-49c1-7492-9f1d-8e5cf79d06d8",
|
||||
"01a1afe8-cb06-712d-ba7d-8da0dc94f581",
|
||||
"01a1afe8-f7ac-7286-bbdd-20513c48b457",
|
||||
"01a1afe9-1887-7509-99e0-cc46a9bd7df3",
|
||||
"01a1afe9-4e8d-76f7-b8df-b74cbfadf7bd",
|
||||
"01a1afe9-8588-7428-9cb6-bd9c4592274e",
|
||||
"01a1afe9-b650-740a-8c59-d045292a6653"
|
||||
],
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "smoke_pipeline",
|
||||
"level": 3,
|
||||
"window": "upload, ready, variants match metadata",
|
||||
"seconds": 1.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe7-6a4d-723a-b68b-e0884d175b2b",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_after_ready",
|
||||
"level": 3,
|
||||
"window": "redelivery of a finished job",
|
||||
"seconds": 9.1,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe7-6f6c-772e-b114-83ff1dc8bab2",
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_commit_publish",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before publish",
|
||||
"seconds": 9.7,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe7-a347-71e2-a53a-bba0f8f95b11",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": false,
|
||||
"status": "queued",
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 4a7a444bd3e8 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe7-a347-71e2-a53a-bba0f8f95b11/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe7-a347-71e2-a53a-bba0f8f95b11/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe7-a347-71e2-a53a-bba0f8f95b11/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_publish_confirm",
|
||||
"level": 4,
|
||||
"window": "after publish, before confirm",
|
||||
"seconds": 9.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe7-c7c1-76a3-84e8-9a90b677d136",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": [
|
||||
false
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 ad8d976d5790 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe7-c7c1-76a3-84e8-9a90b677d136/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe7-c7c1-76a3-84e8-9a90b677d136/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe7-c7c1-76a3-84e8-9a90b677d136/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
"done",
|
||||
"duplicate_noop"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3_before_commit",
|
||||
"level": 4,
|
||||
"window": "after S3 write, before COMMIT",
|
||||
"seconds": 12.2,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe7-ebfd-7623-8528-1acadd6639d7",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"variant_rows": 0,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 968bcc156f77 exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe7-ebfd-7623-8528-1acadd6639d7/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe7-ebfd-7623-8528-1acadd6639d7/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe7-ebfd-7623-8528-1acadd6639d7/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before ack",
|
||||
"seconds": 11.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe8-1c4d-704f-afb7-52fbfab3c3f8",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe8-1c4d-704f-afb7-52fbfab3c3f8/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe8-1c4d-704f-afb7-52fbfab3c3f8/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe8-1c4d-704f-afb7-52fbfab3c3f8/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
1,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 4fccde9c6921 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe8-1c4d-704f-afb7-52fbfab3c3f8/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe8-1c4d-704f-afb7-52fbfab3c3f8/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe8-1c4d-704f-afb7-52fbfab3c3f8/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lease_expiry_fencing",
|
||||
"level": 4,
|
||||
"window": "stalled worker, lease expiry",
|
||||
"seconds": 33.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe8-49c1-7492-9f1d-8e5cf79d06d8",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe8-49ce-70ce-92a7-a22f15e345b1",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "lease_expired",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "fenced",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"level": 5,
|
||||
"window": "after claim, before side effects",
|
||||
"seconds": 11.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe8-cb06-712d-ba7d-8da0dc94f581",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe8-cb14-7755-bdb3-0fd5e978ff37",
|
||||
"pipeline_version": 1,
|
||||
"status": "processing",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 64d70c33a26e exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe8-cb06-712d-ba7d-8da0dc94f581/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe8-cb06-712d-ba7d-8da0dc94f581/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe8-cb06-712d-ba7d-8da0dc94f581/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_kill_mid_task",
|
||||
"level": 5,
|
||||
"window": "SIGKILL during processing",
|
||||
"seconds": 11.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe8-f7ac-7286-bbdd-20513c48b457",
|
||||
"exit_code": 137,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 a81ba22c01e7 exited Exited (137) Less than a second ago"
|
||||
],
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe8-f7b9-774e-ac64-6c096774e948",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_in_flight",
|
||||
"level": 5,
|
||||
"window": "two copies of one job in flight",
|
||||
"seconds": 13.8,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe9-1887-7509-99e0-cc46a9bd7df3",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe9-1887-7509-99e0-cc46a9bd7df3/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe9-1887-7509-99e0-cc46a9bd7df3/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe9-1887-7509-99e0-cc46a9bd7df3/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reorder_attempts",
|
||||
"level": 5,
|
||||
"window": "attempt 2 delivered before attempt 1",
|
||||
"seconds": 14.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe9-4e8d-76f7-b8df-b74cbfadf7bd",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe9-4e94-75bc-bc23-b245e623798e",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reorder_versions",
|
||||
"level": 5,
|
||||
"window": "v2 delivered before v1",
|
||||
"seconds": 13.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe9-8588-7428-9cb6-bd9c4592274e",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afe9-858f-7516-b9a2-1c8aef7c2659",
|
||||
"pipeline_version": 1,
|
||||
"status": "superseded",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"job_id": "01a1afe9-88e9-712f-ac2e-4b61b82836d4",
|
||||
"pipeline_version": 2,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"v2_before_v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
},
|
||||
"after_v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afe9-8588-7428-9cb6-bd9c4592274e/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stale_after_new_version",
|
||||
"level": 5,
|
||||
"window": "v1 job after v2 is published",
|
||||
"seconds": 9.5,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afe9-b650-740a-8c59-d045292a6653",
|
||||
"published_version": 2,
|
||||
"v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 1820,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2462,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 4679,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"published": 1
|
||||
},
|
||||
"v2_before_stale": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
},
|
||||
"v2_after_stale": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afe9-b650-740a-8c59-d045292a6653/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"result": "PASS",
|
||||
"finished_at": "2026-11-06T08:12:01.789124Z"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
date: 2026-11-06T08:08:54Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make track2 TRACK2_OUTPUT=evidence/sqlalchemy-2026-11-06/track2/qualified/run1.json
|
||||
BASE_URL="http://127.0.0.1:18085" python3 scripts/pipeline_suite.py --level 5 --only "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version" --output "evidence/sqlalchemy-2026-11-06/track2/qualified/run1.json"
|
||||
RUN smoke_pipeline
|
||||
PASS smoke_pipeline
|
||||
RUN duplicate_after_ready
|
||||
PASS duplicate_after_ready
|
||||
RUN crash_commit_publish
|
||||
PASS crash_commit_publish
|
||||
RUN crash_publish_confirm
|
||||
PASS crash_publish_confirm
|
||||
RUN crash_after_s3_before_commit
|
||||
PASS crash_after_s3_before_commit
|
||||
RUN crash_after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack
|
||||
RUN lease_expiry_fencing
|
||||
PASS lease_expiry_fencing
|
||||
RUN crash_before_side_effect
|
||||
PASS crash_before_side_effect
|
||||
RUN worker_kill_mid_task
|
||||
PASS worker_kill_mid_task
|
||||
RUN duplicate_in_flight
|
||||
PASS duplicate_in_flight
|
||||
RUN reorder_attempts
|
||||
PASS reorder_attempts
|
||||
RUN reorder_versions
|
||||
PASS reorder_versions
|
||||
RUN stale_after_new_version
|
||||
PASS stale_after_new_version
|
||||
PASS: lab5 pipeline suite, report evidence/sqlalchemy-2026-11-06/track2/qualified/run1.json
|
||||
exit_code: 0 elapsed_seconds: 187.789
|
||||
@@ -0,0 +1,931 @@
|
||||
{
|
||||
"suite": "lab5-pipeline-idempotency",
|
||||
"started_at": "2026-11-06T08:12:01.939580Z",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"config": {
|
||||
"base_url": "http://127.0.0.1:18085",
|
||||
"level": 5,
|
||||
"only": "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version",
|
||||
"expect_variants": "thumbnail,crop,optimized",
|
||||
"max_attempts": 5,
|
||||
"stall_seconds": 15.0,
|
||||
"compose": "docker compose",
|
||||
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
|
||||
},
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 9
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 58,
|
||||
"scoped_attachments": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"accepted_ids": [
|
||||
"01a1afea-4823-703e-b9e3-5e46e1789171",
|
||||
"01a1afea-4d41-75d3-b078-8f544f5bfefb",
|
||||
"01a1afea-6e40-7526-87b0-eb408b7b718f",
|
||||
"01a1afea-92f7-71d0-ade8-115888bd9280",
|
||||
"01a1afea-b79f-7475-aaec-e600ef0ee1cc",
|
||||
"01a1afea-e6a8-73f2-af00-d87767055fe4",
|
||||
"01a1afeb-0cfe-71b7-ad14-64e8bfbecabb",
|
||||
"01a1afeb-9030-75a8-8751-410ab1842b80",
|
||||
"01a1afeb-c0be-71ae-8dfd-fae8e4f7c99d",
|
||||
"01a1afeb-dfce-778f-851a-8dceb44051ed",
|
||||
"01a1afec-1f55-719e-ae0a-1d489f7865d0",
|
||||
"01a1afec-5ad4-7435-a0fb-975e0ea8cc8b",
|
||||
"01a1afec-8645-76cd-9aec-48183cd3b302"
|
||||
],
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "smoke_pipeline",
|
||||
"level": 3,
|
||||
"window": "upload, ready, variants match metadata",
|
||||
"seconds": 1.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afea-4823-703e-b9e3-5e46e1789171",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_after_ready",
|
||||
"level": 3,
|
||||
"window": "redelivery of a finished job",
|
||||
"seconds": 4.7,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afea-4d41-75d3-b078-8f544f5bfefb",
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_commit_publish",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before publish",
|
||||
"seconds": 9.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afea-6e40-7526-87b0-eb408b7b718f",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": false,
|
||||
"status": "queued",
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 07bd1e6ee073 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afea-6e40-7526-87b0-eb408b7b718f/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afea-6e40-7526-87b0-eb408b7b718f/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afea-6e40-7526-87b0-eb408b7b718f/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_publish_confirm",
|
||||
"level": 4,
|
||||
"window": "after publish, before confirm",
|
||||
"seconds": 9.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afea-92f7-71d0-ade8-115888bd9280",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": [
|
||||
false
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 f1c28ee1ad3a exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afea-92f7-71d0-ade8-115888bd9280/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afea-92f7-71d0-ade8-115888bd9280/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afea-92f7-71d0-ade8-115888bd9280/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
"done",
|
||||
"duplicate_noop"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3_before_commit",
|
||||
"level": 4,
|
||||
"window": "after S3 write, before COMMIT",
|
||||
"seconds": 12.1,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afea-b79f-7475-aaec-e600ef0ee1cc",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"variant_rows": 0,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 822aa4437665 exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afea-b79f-7475-aaec-e600ef0ee1cc/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afea-b79f-7475-aaec-e600ef0ee1cc/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afea-b79f-7475-aaec-e600ef0ee1cc/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before ack",
|
||||
"seconds": 9.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afea-e6a8-73f2-af00-d87767055fe4",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afea-e6a8-73f2-af00-d87767055fe4/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afea-e6a8-73f2-af00-d87767055fe4/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afea-e6a8-73f2-af00-d87767055fe4/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 2dd248266834 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afea-e6a8-73f2-af00-d87767055fe4/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afea-e6a8-73f2-af00-d87767055fe4/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afea-e6a8-73f2-af00-d87767055fe4/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lease_expiry_fencing",
|
||||
"level": 4,
|
||||
"window": "stalled worker, lease expiry",
|
||||
"seconds": 33.6,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afeb-0cfe-71b7-ad14-64e8bfbecabb",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afeb-0d0a-77ae-bdfe-7b7a8b0ba400",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "lease_expired",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "fenced",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"level": 5,
|
||||
"window": "after claim, before side effects",
|
||||
"seconds": 12.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afeb-9030-75a8-8751-410ab1842b80",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afeb-903f-733b-9740-85222d19b40e",
|
||||
"pipeline_version": 1,
|
||||
"status": "processing",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 7b8ac9f2c9f8 exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afeb-9030-75a8-8751-410ab1842b80/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afeb-9030-75a8-8751-410ab1842b80/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afeb-9030-75a8-8751-410ab1842b80/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_kill_mid_task",
|
||||
"level": 5,
|
||||
"window": "SIGKILL during processing",
|
||||
"seconds": 11.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afeb-c0be-71ae-8dfd-fae8e4f7c99d",
|
||||
"exit_code": 137,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 bfb20d7d0122 exited Exited (137) Less than a second ago"
|
||||
],
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afeb-c0cb-7577-a6c3-1ccb58553aa9",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_in_flight",
|
||||
"level": 5,
|
||||
"window": "two copies of one job in flight",
|
||||
"seconds": 16.2,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afeb-dfce-778f-851a-8dceb44051ed",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afeb-dfce-778f-851a-8dceb44051ed/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afeb-dfce-778f-851a-8dceb44051ed/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afeb-dfce-778f-851a-8dceb44051ed/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reorder_attempts",
|
||||
"level": 5,
|
||||
"window": "attempt 2 delivered before attempt 1",
|
||||
"seconds": 15.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afec-1f55-719e-ae0a-1d489f7865d0",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afec-1f5b-74fd-8abd-f5dd6ed979b3",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reorder_versions",
|
||||
"level": 5,
|
||||
"window": "v2 delivered before v1",
|
||||
"seconds": 11.5,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afec-5ad4-7435-a0fb-975e0ea8cc8b",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afec-5adb-7684-b742-803c3eea3ff8",
|
||||
"pipeline_version": 1,
|
||||
"status": "superseded",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"job_id": "01a1afec-5e36-7656-a278-7c7b7e31f4cf",
|
||||
"pipeline_version": 2,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"v2_before_v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
},
|
||||
"after_v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afec-5ad4-7435-a0fb-975e0ea8cc8b/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stale_after_new_version",
|
||||
"level": 5,
|
||||
"window": "v1 job after v2 is published",
|
||||
"seconds": 4.8,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afec-8645-76cd-9aec-48183cd3b302",
|
||||
"published_version": 2,
|
||||
"v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 1820,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2462,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 4679,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"published": 1
|
||||
},
|
||||
"v2_before_stale": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
},
|
||||
"v2_after_stale": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1afec-8645-76cd-9aec-48183cd3b302/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"result": "PASS",
|
||||
"finished_at": "2026-11-06T08:15:00.835964Z"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
date: 2026-11-06T08:12:01Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make track2 TRACK2_OUTPUT=evidence/sqlalchemy-2026-11-06/track2/qualified/run2.json
|
||||
BASE_URL="http://127.0.0.1:18085" python3 scripts/pipeline_suite.py --level 5 --only "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version" --output "evidence/sqlalchemy-2026-11-06/track2/qualified/run2.json"
|
||||
RUN smoke_pipeline
|
||||
PASS smoke_pipeline
|
||||
RUN duplicate_after_ready
|
||||
PASS duplicate_after_ready
|
||||
RUN crash_commit_publish
|
||||
PASS crash_commit_publish
|
||||
RUN crash_publish_confirm
|
||||
PASS crash_publish_confirm
|
||||
RUN crash_after_s3_before_commit
|
||||
PASS crash_after_s3_before_commit
|
||||
RUN crash_after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack
|
||||
RUN lease_expiry_fencing
|
||||
PASS lease_expiry_fencing
|
||||
RUN crash_before_side_effect
|
||||
PASS crash_before_side_effect
|
||||
RUN worker_kill_mid_task
|
||||
PASS worker_kill_mid_task
|
||||
RUN duplicate_in_flight
|
||||
PASS duplicate_in_flight
|
||||
RUN reorder_attempts
|
||||
PASS reorder_attempts
|
||||
RUN reorder_versions
|
||||
PASS reorder_versions
|
||||
RUN stale_after_new_version
|
||||
PASS stale_after_new_version
|
||||
PASS: lab5 pipeline suite, report evidence/sqlalchemy-2026-11-06/track2/qualified/run2.json
|
||||
exit_code: 0 elapsed_seconds: 178.973
|
||||
@@ -0,0 +1,931 @@
|
||||
{
|
||||
"suite": "lab5-pipeline-idempotency",
|
||||
"started_at": "2026-11-06T09:00:16.142830Z",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"config": {
|
||||
"base_url": "http://127.0.0.1:18085",
|
||||
"level": 5,
|
||||
"only": "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version",
|
||||
"expect_variants": "thumbnail,crop,optimized",
|
||||
"max_attempts": 5,
|
||||
"stall_seconds": 15.0,
|
||||
"compose": "docker compose",
|
||||
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
|
||||
},
|
||||
"invariants": [
|
||||
{
|
||||
"id": "terminal",
|
||||
"statement": "every 202 reaches its expected terminal state",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "single_effect",
|
||||
"statement": "one variant set per (attachment_id, pipeline_version, variant)",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_ready_rollback",
|
||||
"statement": "ready never returns to queued or processing",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"traced": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "monotonic_publication",
|
||||
"statement": "published_version only moves forward",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"sampled": 9
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bytes_match_metadata",
|
||||
"statement": "sha256, size and real dimensions match served bytes",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"verified": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bounded_attempts",
|
||||
"statement": "attempt <= JOB_MAX_ATTEMPTS",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"rows": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_orphans",
|
||||
"statement": "no pending outbox, messages, dead letters, staging, objects",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"s3_objects": 58,
|
||||
"scoped_attachments": 13
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "no_lost_202",
|
||||
"statement": "every 202 is present in PostgreSQL and the API",
|
||||
"result": "PASS",
|
||||
"details": {
|
||||
"accepted": 13
|
||||
}
|
||||
}
|
||||
],
|
||||
"accepted_ids": [
|
||||
"01a1b016-71a5-721e-abc4-fdb743185205",
|
||||
"01a1b016-76c9-74af-8ff8-af1eb84b4ca4",
|
||||
"01a1b016-a7cc-7253-8740-bebab39cf921",
|
||||
"01a1b016-cc7d-72a3-b59c-3e9579f9500e",
|
||||
"01a1b016-f397-7584-8b67-f7921e71a2db",
|
||||
"01a1b017-22f5-770d-8919-30c418d6bdac",
|
||||
"01a1b017-4e40-745d-87af-bed53934d54d",
|
||||
"01a1b017-d26c-7628-9fd6-8177337bc653",
|
||||
"01a1b018-1317-7187-916f-34fea459f928",
|
||||
"01a1b018-319c-7223-ba0a-39d73cf212b3",
|
||||
"01a1b018-6840-769d-adf6-6f533e0cf1b7",
|
||||
"01a1b018-9ffa-710c-94ae-305156d3143c",
|
||||
"01a1b018-d461-7690-ab32-243f62ba5b5b"
|
||||
],
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "smoke_pipeline",
|
||||
"level": 3,
|
||||
"window": "upload, ready, variants match metadata",
|
||||
"seconds": 1.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b016-71a5-721e-abc4-fdb743185205",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_after_ready",
|
||||
"level": 3,
|
||||
"window": "redelivery of a finished job",
|
||||
"seconds": 8.8,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b016-76c9-74af-8ff8-af1eb84b4ca4",
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_commit_publish",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before publish",
|
||||
"seconds": 9.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b016-a7cc-7253-8740-bebab39cf921",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": false,
|
||||
"status": "queued",
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 b843c4680bed exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b016-a7cc-7253-8740-bebab39cf921/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b016-a7cc-7253-8740-bebab39cf921/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b016-a7cc-7253-8740-bebab39cf921/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_publish_confirm",
|
||||
"level": 4,
|
||||
"window": "after publish, before confirm",
|
||||
"seconds": 9.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b016-cc7d-72a3-b59c-3e9579f9500e",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": [
|
||||
false
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 758a9d2a5282 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b016-cc7d-72a3-b59c-3e9579f9500e/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b016-cc7d-72a3-b59c-3e9579f9500e/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b016-cc7d-72a3-b59c-3e9579f9500e/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
"done",
|
||||
"duplicate_noop"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3_before_commit",
|
||||
"level": 4,
|
||||
"window": "after S3 write, before COMMIT",
|
||||
"seconds": 12.1,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b016-f397-7584-8b67-f7921e71a2db",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"variant_rows": 0,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 e5cec7eee645 exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b016-f397-7584-8b67-f7921e71a2db/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b016-f397-7584-8b67-f7921e71a2db/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b016-f397-7584-8b67-f7921e71a2db/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before ack",
|
||||
"seconds": 11.1,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b017-22f5-770d-8919-30c418d6bdac",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b017-22f5-770d-8919-30c418d6bdac/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b017-22f5-770d-8919-30c418d6bdac/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b017-22f5-770d-8919-30c418d6bdac/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
1,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 c05ddd7db810 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b017-22f5-770d-8919-30c418d6bdac/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b017-22f5-770d-8919-30c418d6bdac/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b017-22f5-770d-8919-30c418d6bdac/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lease_expiry_fencing",
|
||||
"level": 4,
|
||||
"window": "stalled worker, lease expiry",
|
||||
"seconds": 33.8,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b017-4e40-745d-87af-bed53934d54d",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b017-4e4c-7501-ada2-0d81d69abe36",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "lease_expired",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "fenced",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"level": 5,
|
||||
"window": "after claim, before side effects",
|
||||
"seconds": 16.6,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b017-d26c-7628-9fd6-8177337bc653",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b017-d27c-73c3-8888-366f1ea21b75",
|
||||
"pipeline_version": 1,
|
||||
"status": "processing",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 a98f1193b7a5 exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b017-d26c-7628-9fd6-8177337bc653/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b017-d26c-7628-9fd6-8177337bc653/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b017-d26c-7628-9fd6-8177337bc653/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_kill_mid_task",
|
||||
"level": 5,
|
||||
"window": "SIGKILL during processing",
|
||||
"seconds": 11.2,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b018-1317-7187-916f-34fea459f928",
|
||||
"exit_code": 137,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 0fc615b51654 exited Exited (137) Less than a second ago"
|
||||
],
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b018-131d-77e3-9122-0b0742993d3d",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_in_flight",
|
||||
"level": 5,
|
||||
"window": "two copies of one job in flight",
|
||||
"seconds": 14.0,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b018-319c-7223-ba0a-39d73cf212b3",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b018-319c-7223-ba0a-39d73cf212b3/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b018-319c-7223-ba0a-39d73cf212b3/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b018-319c-7223-ba0a-39d73cf212b3/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reorder_attempts",
|
||||
"level": 5,
|
||||
"window": "attempt 2 delivered before attempt 1",
|
||||
"seconds": 14.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b018-6840-769d-adf6-6f533e0cf1b7",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b018-6846-72d6-81a8-81b0bf35d94c",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reorder_versions",
|
||||
"level": 5,
|
||||
"window": "v2 delivered before v1",
|
||||
"seconds": 13.8,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b018-9ffa-710c-94ae-305156d3143c",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1b018-a000-70fa-9ae0-c6fd5310be13",
|
||||
"pipeline_version": 1,
|
||||
"status": "superseded",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"job_id": "01a1b018-a35d-7531-b792-d0bcb3673186",
|
||||
"pipeline_version": 2,
|
||||
"status": "done",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"v2_before_v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
},
|
||||
"after_v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1b018-9ffa-710c-94ae-305156d3143c/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stale_after_new_version",
|
||||
"level": 5,
|
||||
"window": "v1 job after v2 is published",
|
||||
"seconds": 4.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1b018-d461-7690-ab32-243f62ba5b5b",
|
||||
"published_version": 2,
|
||||
"v1": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 1820,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2462,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 4679,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"published": 1
|
||||
},
|
||||
"v2_before_stale": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
},
|
||||
"v2_after_stale": {
|
||||
"status": "ready",
|
||||
"public": [
|
||||
{
|
||||
"name": "crop",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 2142,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4"
|
||||
},
|
||||
{
|
||||
"name": "optimized",
|
||||
"content_type": "image/webp",
|
||||
"size_bytes": 2790,
|
||||
"width": 320,
|
||||
"height": 200,
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957"
|
||||
},
|
||||
{
|
||||
"name": "thumbnail",
|
||||
"content_type": "image/jpeg",
|
||||
"size_bytes": 5628,
|
||||
"width": 256,
|
||||
"height": 160,
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "crop",
|
||||
"sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4",
|
||||
"size_bytes": 2142,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/2/crop-5b6fb2a66216f8ca.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "optimized",
|
||||
"sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957",
|
||||
"size_bytes": 2790,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/2/optimized-fe520c978bd45fc8.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 2,
|
||||
"name": "thumbnail",
|
||||
"sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308",
|
||||
"size_bytes": 5628,
|
||||
"object_key": "variants/01a1b018-d461-7690-ab32-243f62ba5b5b/2/thumbnail-fa0db661078d4da9.jpg"
|
||||
}
|
||||
],
|
||||
"published": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"result": "PASS",
|
||||
"finished_at": "2026-11-06T09:03:24.904827Z"
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
date: 2026-11-06T09:00:16Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make track2 TRACK2_OUTPUT=evidence/sqlalchemy-2026-11-06/track2/qualified/run3-retry.json
|
||||
BASE_URL="http://127.0.0.1:18085" python3 scripts/pipeline_suite.py --level 5 --only "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version" --output "evidence/sqlalchemy-2026-11-06/track2/qualified/run3-retry.json"
|
||||
RUN smoke_pipeline
|
||||
PASS smoke_pipeline
|
||||
RUN duplicate_after_ready
|
||||
PASS duplicate_after_ready
|
||||
RUN crash_commit_publish
|
||||
PASS crash_commit_publish
|
||||
RUN crash_publish_confirm
|
||||
PASS crash_publish_confirm
|
||||
RUN crash_after_s3_before_commit
|
||||
PASS crash_after_s3_before_commit
|
||||
RUN crash_after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack
|
||||
RUN lease_expiry_fencing
|
||||
PASS lease_expiry_fencing
|
||||
RUN crash_before_side_effect
|
||||
PASS crash_before_side_effect
|
||||
RUN worker_kill_mid_task
|
||||
PASS worker_kill_mid_task
|
||||
RUN duplicate_in_flight
|
||||
PASS duplicate_in_flight
|
||||
RUN reorder_attempts
|
||||
PASS reorder_attempts
|
||||
RUN reorder_versions
|
||||
PASS reorder_versions
|
||||
RUN stale_after_new_version
|
||||
PASS stale_after_new_version
|
||||
PASS: lab5 pipeline suite, report evidence/sqlalchemy-2026-11-06/track2/qualified/run3-retry.json
|
||||
exit_code: 0 elapsed_seconds: 188.824
|
||||
@@ -0,0 +1,410 @@
|
||||
{
|
||||
"suite": "lab5-pipeline-idempotency",
|
||||
"started_at": "2026-11-06T08:15:00.952325Z",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"config": {
|
||||
"base_url": "http://127.0.0.1:18085",
|
||||
"level": 5,
|
||||
"only": "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version",
|
||||
"expect_variants": "thumbnail,crop,optimized",
|
||||
"max_attempts": 5,
|
||||
"stall_seconds": 15.0,
|
||||
"compose": "docker compose",
|
||||
"compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml"
|
||||
},
|
||||
"error": "[Errno 32] Broken pipe",
|
||||
"accepted_ids": [
|
||||
"01a1afed-0343-7056-963a-533b9f14601f",
|
||||
"01a1afed-0861-74d5-b1f0-ffb482cb709a",
|
||||
"01a1afed-3527-7458-b5b8-c3b9d791f8e4",
|
||||
"01a1afed-5c3b-713a-9a8f-4b645658bdc8",
|
||||
"01a1afed-7fe4-7535-a6f6-2ce5dc8c9228",
|
||||
"01a1afed-b05e-7165-8aec-99b3d269e5a8",
|
||||
"01a1afed-d8bc-7453-9280-c874d964f09e",
|
||||
"01a1afee-579c-7516-bbed-967aad29268f",
|
||||
"01a1afee-8345-72cf-bfd2-5fac1fa1991b",
|
||||
"01a1afee-b8ba-7392-a662-9b28645b5761"
|
||||
],
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "smoke_pipeline",
|
||||
"level": 3,
|
||||
"window": "upload, ready, variants match metadata",
|
||||
"seconds": 1.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-0343-7056-963a-533b9f14601f",
|
||||
"variants": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_after_ready",
|
||||
"level": 3,
|
||||
"window": "redelivery of a finished job",
|
||||
"seconds": 7.7,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-0861-74d5-b1f0-ffb482cb709a",
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "duplicate_noop",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_commit_publish",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before publish",
|
||||
"seconds": 9.9,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-3527-7458-b5b8-c3b9d791f8e4",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": false,
|
||||
"status": "queued",
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 6d59108b1d4a exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afed-3527-7458-b5b8-c3b9d791f8e4/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afed-3527-7458-b5b8-c3b9d791f8e4/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afed-3527-7458-b5b8-c3b9d791f8e4/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_publish_confirm",
|
||||
"level": 4,
|
||||
"window": "after publish, before confirm",
|
||||
"seconds": 9.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-5c3b-713a-9a8f-4b645658bdc8",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"outbox_published": [
|
||||
false
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-relay-1 718409ccbf25 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afed-5c3b-713a-9a8f-4b645658bdc8/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afed-5c3b-713a-9a8f-4b645658bdc8/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afed-5c3b-713a-9a8f-4b645658bdc8/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
"done",
|
||||
"duplicate_noop"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_s3_before_commit",
|
||||
"level": 4,
|
||||
"window": "after S3 write, before COMMIT",
|
||||
"seconds": 12.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-7fe4-7535-a6f6-2ce5dc8c9228",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"variant_rows": 0,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 1203abf7a865 exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afed-7fe4-7535-a6f6-2ce5dc8c9228/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afed-7fe4-7535-a6f6-2ce5dc8c9228/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afed-7fe4-7535-a6f6-2ce5dc8c9228/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"level": 4,
|
||||
"window": "after COMMIT, before ack",
|
||||
"seconds": 10.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-b05e-7165-8aec-99b3d269e5a8",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afed-b05e-7165-8aec-99b3d269e5a8/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afed-b05e-7165-8aec-99b3d269e5a8/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afed-b05e-7165-8aec-99b3d269e5a8/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"attachments.process": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"attachments.process.dlq": [
|
||||
14,
|
||||
0
|
||||
]
|
||||
},
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 13648f099a86 exited Exited (137) 1 second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afed-b05e-7165-8aec-99b3d269e5a8/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afed-b05e-7165-8aec-99b3d269e5a8/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afed-b05e-7165-8aec-99b3d269e5a8/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lease_expiry_fencing",
|
||||
"level": 4,
|
||||
"window": "stalled worker, lease expiry",
|
||||
"seconds": 32.4,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afed-d8bc-7453-9280-c874d964f09e",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afed-d8c7-7092-85e5-d3fd3b2e4062",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"kind": "enqueued",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 1
|
||||
},
|
||||
{
|
||||
"kind": "lease_expired",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "claimed",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "done",
|
||||
"attempt": 2
|
||||
},
|
||||
{
|
||||
"kind": "fenced",
|
||||
"attempt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"level": 5,
|
||||
"window": "after claim, before side effects",
|
||||
"seconds": 11.3,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afee-579c-7516-bbed-967aad29268f",
|
||||
"exit_code": 137,
|
||||
"after_crash": {
|
||||
"status": "processing",
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afee-57aa-7473-bbc7-fb39da33bd2d",
|
||||
"pipeline_version": 1,
|
||||
"status": "processing",
|
||||
"attempt": 1
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 2ca53248412d exited Exited (137) Less than a second ago"
|
||||
]
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "crop",
|
||||
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
||||
"size_bytes": 1820,
|
||||
"object_key": "variants/01a1afee-579c-7516-bbed-967aad29268f/1/crop-97bf1400b30a28c1.jpg"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "optimized",
|
||||
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
||||
"size_bytes": 2462,
|
||||
"object_key": "variants/01a1afee-579c-7516-bbed-967aad29268f/1/optimized-1090d84ed8411226.webp"
|
||||
},
|
||||
{
|
||||
"pipeline_version": 1,
|
||||
"name": "thumbnail",
|
||||
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
||||
"size_bytes": 4679,
|
||||
"object_key": "variants/01a1afee-579c-7516-bbed-967aad29268f/1/thumbnail-7bc40bf315c8e18e.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "worker_kill_mid_task",
|
||||
"level": 5,
|
||||
"window": "SIGKILL during processing",
|
||||
"seconds": 17.1,
|
||||
"result": "PASS",
|
||||
"observed": {
|
||||
"attachment_id": "01a1afee-8345-72cf-bfd2-5fac1fa1991b",
|
||||
"exit_code": 137,
|
||||
"containers": [
|
||||
"mtusi2026lab5-worker-1 9c35f3056624 exited Exited (137) Less than a second ago"
|
||||
],
|
||||
"jobs": [
|
||||
{
|
||||
"job_id": "01a1afee-8351-7373-b804-c5cb4312142f",
|
||||
"pipeline_version": 1,
|
||||
"status": "done",
|
||||
"attempt": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "duplicate_in_flight",
|
||||
"level": 5,
|
||||
"window": "two copies of one job in flight",
|
||||
"seconds": 8.8,
|
||||
"result": "FAIL",
|
||||
"error": "docker compose exec -T broker rabbitmqctl -q: exit 69: =====\n\nattempted to contact: [rabbit@broker]\n\nrabbit@broker:\n * connected to epmd (port 4369) on broker\n * epmd reports: node 'rabbit' not running at all\n no other nodes on broker\n * suggestion: start the node\n\nCurrent node details:\n * node name: 'rabbitmqcli-578-rabbit@broker'\n * effective user's home directory: /var/lib/rabbitmq\n * Erlang cookie hash: <redacted>"
|
||||
}
|
||||
],
|
||||
"result": "FAIL",
|
||||
"finished_at": "2026-11-06T08:17:21.560006Z"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
date: 2026-11-06T08:15:00Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make track2 TRACK2_OUTPUT=evidence/sqlalchemy-2026-11-06/track2/qualified/run3.json
|
||||
BASE_URL="http://127.0.0.1:18085" python3 scripts/pipeline_suite.py --level 5 --only "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version" --output "evidence/sqlalchemy-2026-11-06/track2/qualified/run3.json"
|
||||
RUN smoke_pipeline
|
||||
PASS smoke_pipeline
|
||||
RUN duplicate_after_ready
|
||||
PASS duplicate_after_ready
|
||||
RUN crash_commit_publish
|
||||
PASS crash_commit_publish
|
||||
RUN crash_publish_confirm
|
||||
PASS crash_publish_confirm
|
||||
RUN crash_after_s3_before_commit
|
||||
PASS crash_after_s3_before_commit
|
||||
RUN crash_after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack
|
||||
RUN lease_expiry_fencing
|
||||
PASS lease_expiry_fencing
|
||||
RUN crash_before_side_effect
|
||||
PASS crash_before_side_effect
|
||||
RUN worker_kill_mid_task
|
||||
PASS worker_kill_mid_task
|
||||
RUN duplicate_in_flight
|
||||
heal failed: docker compose up -d --no-deps --no-recreate --wait: exit 1: Container mtusi2026lab5-broker-1 Running
|
||||
@@ -0,0 +1,5 @@
|
||||
date: 2026-11-06T09:04:10Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ docker compose exec -T worker python -c 'import importlib.metadata as m, json; print(json.dumps({p: m.version(p) for p in ["SQLAlchemy", "alembic", "asyncpg", "faststream", "aio-pika", "pillow"]}, sort_keys=True))'
|
||||
{"SQLAlchemy": "2.0.45", "aio-pika": "10.2.1", "alembic": "1.16.5", "asyncpg": "0.32.0", "faststream": "0.7.8", "pillow": "13.0.0"}
|
||||
exit_code: 0 elapsed_seconds: 0.301
|
||||
@@ -0,0 +1,14 @@
|
||||
scenario,run1_seconds,run2_seconds,run3_seconds,minimum_seconds,median_seconds,maximum_seconds
|
||||
smoke_pipeline,1.3,1.3,1.3,1.3,1.3,1.3
|
||||
duplicate_after_ready,9.1,4.7,8.8,4.7,8.8,9.1
|
||||
crash_commit_publish,9.7,9.4,9.4,9.4,9.4,9.7
|
||||
crash_publish_confirm,9.3,9.4,9.9,9.3,9.4,9.9
|
||||
crash_after_s3_before_commit,12.2,12.1,12.1,12.1,12.1,12.2
|
||||
crash_after_commit_before_ack,11.0,9.9,11.1,9.9,11.0,11.1
|
||||
lease_expiry_fencing,33.9,33.6,33.8,33.6,33.8,33.9
|
||||
crash_before_side_effect,11.3,12.4,16.6,11.3,12.4,16.6
|
||||
worker_kill_mid_task,11.9,11.4,11.2,11.2,11.4,11.9
|
||||
duplicate_in_flight,13.8,16.2,14.0,13.8,14.0,16.2
|
||||
reorder_attempts,14.0,15.3,14.3,14.0,14.3,15.3
|
||||
reorder_versions,13.0,11.5,13.8,11.5,13.0,13.8
|
||||
stale_after_new_version,9.5,4.8,4.9,4.8,4.9,9.5
|
||||
|
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"at": "2026-11-06T08:58:02.108231+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"commands": [
|
||||
"docker ps --format JSON",
|
||||
"docker stats --no-stream --format JSON"
|
||||
],
|
||||
"sampling": "Single snapshot after interrupted final track2 run3; no retrospective claim about earlier load; foreign containers only observed, never stopped",
|
||||
"own": [],
|
||||
"other_projects": {}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"at": "2026-11-06T09:07:38.074030+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"commands": [
|
||||
[
|
||||
"docker",
|
||||
"ps",
|
||||
"-aq",
|
||||
"--filter",
|
||||
"label=com.docker.compose.project=mtusi2026lab5"
|
||||
],
|
||||
[
|
||||
"docker",
|
||||
"volume",
|
||||
"ls",
|
||||
"--filter",
|
||||
"label=com.docker.compose.project=mtusi2026lab5",
|
||||
"--format",
|
||||
"{{.Name}}"
|
||||
]
|
||||
],
|
||||
"containers": [],
|
||||
"retained_volumes": [
|
||||
"mtusi2026lab5_broker-data",
|
||||
"mtusi2026lab5_pgdata",
|
||||
"mtusi2026lab5_s3data",
|
||||
"mtusi2026lab5_valkeydata"
|
||||
],
|
||||
"result": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
date: 2026-11-06T08:03:31Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make test
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18085"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit_code: 0 elapsed_seconds: 2.112
|
||||
@@ -0,0 +1,14 @@
|
||||
date: 2026-11-06T07:59:47Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {}
|
||||
$ make check validate lint PYTHON=.venv/bin/python
|
||||
.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.
|
||||
.venv/bin/ruff check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
183 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit_code: 0 elapsed_seconds: 0.673
|
||||
@@ -0,0 +1,59 @@
|
||||
date: 2026-11-06T07:59:46Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make student-test
|
||||
.venv/bin/pytest
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collected 528 items / 19 deselected / 509 selected
|
||||
|
||||
student-tests/adapters/test_rabbitmq.py .... [ 0%]
|
||||
student-tests/adapters/test_s3_storage.py ... [ 1%]
|
||||
student-tests/api/test_access.py ......... [ 3%]
|
||||
student-tests/api/test_attachments.py .................................. [ 9%]
|
||||
.... [ 10%]
|
||||
student-tests/api/test_bounded_contexts.py .................... [ 14%]
|
||||
student-tests/api/test_cache.py ...... [ 15%]
|
||||
student-tests/api/test_concurrency.py .... [ 16%]
|
||||
student-tests/api/test_consistency.py ........ [ 18%]
|
||||
student-tests/api/test_drain.py .. [ 18%]
|
||||
student-tests/api/test_events.py ...... [ 19%]
|
||||
student-tests/api/test_idempotency.py ............... [ 22%]
|
||||
student-tests/api/test_instance.py .... [ 23%]
|
||||
student-tests/api/test_job_returning.py . [ 23%]
|
||||
student-tests/api/test_message_attachments.py ............. [ 26%]
|
||||
student-tests/api/test_migrations.py ................................... [ 33%]
|
||||
. [ 33%]
|
||||
student-tests/api/test_negative.py ..................................... [ 40%]
|
||||
[ 40%]
|
||||
student-tests/api/test_operability.py .............. [ 43%]
|
||||
student-tests/api/test_pagination.py .................. [ 46%]
|
||||
student-tests/api/test_pipeline.py ............. [ 49%]
|
||||
student-tests/api/test_pool.py ............ [ 51%]
|
||||
student-tests/api/test_reconciler.py ........... [ 53%]
|
||||
student-tests/api/test_recovery.py ............ [ 56%]
|
||||
student-tests/api/test_sessions.py .................. [ 59%]
|
||||
student-tests/api/test_timeout.py ........ [ 61%]
|
||||
student-tests/api/test_upload_consistency.py ......... [ 63%]
|
||||
student-tests/api/test_versioned_pipeline.py ........... [ 65%]
|
||||
student-tests/api/test_wire_format.py .. [ 65%]
|
||||
student-tests/unit/test_attachments_domain.py .......................... [ 70%]
|
||||
. [ 70%]
|
||||
student-tests/unit/test_authentication.py ..................... [ 75%]
|
||||
student-tests/unit/test_cursor.py ........... [ 77%]
|
||||
student-tests/unit/test_domain.py ...................................... [ 84%]
|
||||
.. [ 85%]
|
||||
student-tests/unit/test_pipeline_domain.py ....................... [ 89%]
|
||||
student-tests/unit/test_probe.py .............. [ 92%]
|
||||
student-tests/unit/test_reconcile_measurements.py ...... [ 93%]
|
||||
student-tests/unit/test_render_pool.py .....s. [ 94%]
|
||||
student-tests/unit/test_renderer.py .................... [ 98%]
|
||||
student-tests/unit/test_scaling.py ..... [ 99%]
|
||||
student-tests/unit/test_timeouts.py . [100%]
|
||||
|
||||
========== 508 passed, 1 skipped, 19 deselected in 156.16s (0:02:36) ===========
|
||||
exit_code: 0 elapsed_seconds: 157.688
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"created_at": "2026-11-06T09:06:24.204722+00:00",
|
||||
"source_sha": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"input_files": [
|
||||
"run1.json",
|
||||
"run2.json",
|
||||
"run3-retry.json"
|
||||
],
|
||||
"result": "PASS",
|
||||
"successful_runs": 3,
|
||||
"accepted_unique": 39,
|
||||
"scenario_passes": 39,
|
||||
"invariant_passes": 24,
|
||||
"s3_objects_scoped_total": 174,
|
||||
"elapsed_seconds": [
|
||||
187.789,
|
||||
178.973,
|
||||
188.824
|
||||
],
|
||||
"elapsed_median_seconds": 187.789,
|
||||
"background": "Shared Docker; early background unmeasured; late snapshots retained; times are not isolated performance metrics",
|
||||
"interrupted_run_excluded": "run3.json",
|
||||
"scenario_timings": [
|
||||
{
|
||||
"scenario": "smoke_pipeline",
|
||||
"run1_seconds": 1.3,
|
||||
"run2_seconds": 1.3,
|
||||
"run3_seconds": 1.3,
|
||||
"minimum_seconds": 1.3,
|
||||
"median_seconds": 1.3,
|
||||
"maximum_seconds": 1.3
|
||||
},
|
||||
{
|
||||
"scenario": "duplicate_after_ready",
|
||||
"run1_seconds": 9.1,
|
||||
"run2_seconds": 4.7,
|
||||
"run3_seconds": 8.8,
|
||||
"minimum_seconds": 4.7,
|
||||
"median_seconds": 8.8,
|
||||
"maximum_seconds": 9.1
|
||||
},
|
||||
{
|
||||
"scenario": "crash_commit_publish",
|
||||
"run1_seconds": 9.7,
|
||||
"run2_seconds": 9.4,
|
||||
"run3_seconds": 9.4,
|
||||
"minimum_seconds": 9.4,
|
||||
"median_seconds": 9.4,
|
||||
"maximum_seconds": 9.7
|
||||
},
|
||||
{
|
||||
"scenario": "crash_publish_confirm",
|
||||
"run1_seconds": 9.3,
|
||||
"run2_seconds": 9.4,
|
||||
"run3_seconds": 9.9,
|
||||
"minimum_seconds": 9.3,
|
||||
"median_seconds": 9.4,
|
||||
"maximum_seconds": 9.9
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_s3_before_commit",
|
||||
"run1_seconds": 12.2,
|
||||
"run2_seconds": 12.1,
|
||||
"run3_seconds": 12.1,
|
||||
"minimum_seconds": 12.1,
|
||||
"median_seconds": 12.1,
|
||||
"maximum_seconds": 12.2
|
||||
},
|
||||
{
|
||||
"scenario": "crash_after_commit_before_ack",
|
||||
"run1_seconds": 11.0,
|
||||
"run2_seconds": 9.9,
|
||||
"run3_seconds": 11.1,
|
||||
"minimum_seconds": 9.9,
|
||||
"median_seconds": 11.0,
|
||||
"maximum_seconds": 11.1
|
||||
},
|
||||
{
|
||||
"scenario": "lease_expiry_fencing",
|
||||
"run1_seconds": 33.9,
|
||||
"run2_seconds": 33.6,
|
||||
"run3_seconds": 33.8,
|
||||
"minimum_seconds": 33.6,
|
||||
"median_seconds": 33.8,
|
||||
"maximum_seconds": 33.9
|
||||
},
|
||||
{
|
||||
"scenario": "crash_before_side_effect",
|
||||
"run1_seconds": 11.3,
|
||||
"run2_seconds": 12.4,
|
||||
"run3_seconds": 16.6,
|
||||
"minimum_seconds": 11.3,
|
||||
"median_seconds": 12.4,
|
||||
"maximum_seconds": 16.6
|
||||
},
|
||||
{
|
||||
"scenario": "worker_kill_mid_task",
|
||||
"run1_seconds": 11.9,
|
||||
"run2_seconds": 11.4,
|
||||
"run3_seconds": 11.2,
|
||||
"minimum_seconds": 11.2,
|
||||
"median_seconds": 11.4,
|
||||
"maximum_seconds": 11.9
|
||||
},
|
||||
{
|
||||
"scenario": "duplicate_in_flight",
|
||||
"run1_seconds": 13.8,
|
||||
"run2_seconds": 16.2,
|
||||
"run3_seconds": 14.0,
|
||||
"minimum_seconds": 13.8,
|
||||
"median_seconds": 14.0,
|
||||
"maximum_seconds": 16.2
|
||||
},
|
||||
{
|
||||
"scenario": "reorder_attempts",
|
||||
"run1_seconds": 14.0,
|
||||
"run2_seconds": 15.3,
|
||||
"run3_seconds": 14.3,
|
||||
"minimum_seconds": 14.0,
|
||||
"median_seconds": 14.3,
|
||||
"maximum_seconds": 15.3
|
||||
},
|
||||
{
|
||||
"scenario": "reorder_versions",
|
||||
"run1_seconds": 13.0,
|
||||
"run2_seconds": 11.5,
|
||||
"run3_seconds": 13.8,
|
||||
"minimum_seconds": 11.5,
|
||||
"median_seconds": 13.0,
|
||||
"maximum_seconds": 13.8
|
||||
},
|
||||
{
|
||||
"scenario": "stale_after_new_version",
|
||||
"run1_seconds": 9.5,
|
||||
"run2_seconds": 4.8,
|
||||
"run3_seconds": 4.9,
|
||||
"minimum_seconds": 4.8,
|
||||
"median_seconds": 4.9,
|
||||
"maximum_seconds": 9.5
|
||||
}
|
||||
],
|
||||
"comparison": "Three independent sequential runs on unchanged code; the third valid run follows a stand restart; v1 and v2 deterministic within recipe, v2 persists after late v1"
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
date: 2026-11-06T08:02:43Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ make up
|
||||
sh scripts/secrets.sh
|
||||
sh scripts/broker-secrets.sh
|
||||
broker and S3 worker secrets ready in secrets/ (values not printed)
|
||||
docker compose build
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 434B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 1.65kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#4 DONE 1.4s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 453B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
||||
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
||||
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 113.66kB 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 3/7] WORKDIR /build
|
||||
#11 CACHED
|
||||
|
||||
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
||||
#12 CACHED
|
||||
|
||||
#13 [builder 6/7] COPY src ./src
|
||||
#13 DONE 0.0s
|
||||
|
||||
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
||||
#14 0.141 Resolved 84 packages in 0.42ms
|
||||
#14 0.143 Building mtusi-messenger @ file:///build
|
||||
#14 1.621 Built mtusi-messenger @ file:///build
|
||||
#14 1.625 Prepared 1 package in 1.48s
|
||||
#14 1.628 Installed 1 package in 3ms
|
||||
#14 1.699 Bytecode compiled 2300 files in 70ms
|
||||
#14 1.699 + mtusi-messenger==1.5.0 (from file:///build)
|
||||
#14 DONE 1.7s
|
||||
|
||||
#15 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
||||
#15 CACHED
|
||||
|
||||
#16 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
||||
#16 DONE 0.4s
|
||||
|
||||
#17 [runtime 4/6] WORKDIR /app
|
||||
#17 DONE 0.0s
|
||||
|
||||
#18 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
||||
#18 DONE 0.0s
|
||||
|
||||
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers
|
||||
#20 exporting layers 2.9s done
|
||||
#20 exporting manifest sha256:7e4120f8a09fc081470dba8b602f1cb91fdab16a1aec409acc668a9b571d204c
|
||||
#20 exporting manifest sha256:7e4120f8a09fc081470dba8b602f1cb91fdab16a1aec409acc668a9b571d204c done
|
||||
#20 exporting config sha256:46ab4e91b05cc0bc4289ced7464a2516d5088b99e0e723dce09e3fc3b605ba3d done
|
||||
#20 exporting attestation manifest sha256:ed505fc9fff5e5c19e586d8e680cfedff4c8f863bf7f2752f41e0e20c9c1e605 done
|
||||
#20 exporting manifest list sha256:0de540a9d3f73d259693d36db299315cad9b09d78cb1371f4dc2ede2d31bee4d done
|
||||
#20 naming to docker.io/library/mtusi-messenger:lab5-sqlalchemy done
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:lab5-sqlalchemy
|
||||
#20 unpacking to docker.io/library/mtusi-messenger:lab5-sqlalchemy 0.6s done
|
||||
#20 DONE 3.6s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
docker compose up -d --wait
|
||||
Container mtusi2026lab5-s3-1 Running
|
||||
Container mtusi2026lab5-postgres-1 Running
|
||||
Container mtusi2026lab5-lb-1 Running
|
||||
Container mtusi2026lab5-broker-1 Running
|
||||
Container mtusi2026lab5-valkey-1 Running
|
||||
Container mtusi2026lab5-migrate-1 Recreate
|
||||
Container mtusi2026lab5-migrate-1 Recreated
|
||||
Container mtusi2026lab5-worker-1 Recreate
|
||||
Container mtusi2026lab5-relay-1 Recreate
|
||||
Container mtusi2026lab5-api-2 Recreate
|
||||
Container mtusi2026lab5-api-1 Recreate
|
||||
Container mtusi2026lab5-worker-1 Recreated
|
||||
Container mtusi2026lab5-relay-1 Recreated
|
||||
Container mtusi2026lab5-api-1 Recreated
|
||||
Container mtusi2026lab5-api-2 Recreated
|
||||
Container mtusi2026lab5-s3-1 Waiting
|
||||
Container mtusi2026lab5-postgres-1 Waiting
|
||||
Container mtusi2026lab5-postgres-1 Healthy
|
||||
Container mtusi2026lab5-s3-1 Healthy
|
||||
Container mtusi2026lab5-migrate-1 Starting
|
||||
Container mtusi2026lab5-s3-init-1 Starting
|
||||
Container mtusi2026lab5-s3-init-1 Started
|
||||
Container mtusi2026lab5-migrate-1 Started
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-broker-1 Healthy
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-broker-1 Healthy
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-api-2 Starting
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-worker-1 Starting
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-relay-1 Starting
|
||||
Container mtusi2026lab5-relay-1 Started
|
||||
Container mtusi2026lab5-api-2 Started
|
||||
Container mtusi2026lab5-api-1 Starting
|
||||
Container mtusi2026lab5-worker-1 Started
|
||||
Container mtusi2026lab5-api-1 Started
|
||||
Container mtusi2026lab5-relay-1 Waiting
|
||||
Container mtusi2026lab5-api-2 Waiting
|
||||
Container mtusi2026lab5-api-1 Waiting
|
||||
Container mtusi2026lab5-valkey-1 Waiting
|
||||
Container mtusi2026lab5-lb-1 Waiting
|
||||
Container mtusi2026lab5-migrate-1 Waiting
|
||||
Container mtusi2026lab5-worker-1 Waiting
|
||||
Container mtusi2026lab5-postgres-1 Waiting
|
||||
Container mtusi2026lab5-broker-1 Waiting
|
||||
Container mtusi2026lab5-s3-1 Waiting
|
||||
Container mtusi2026lab5-s3-init-1 Waiting
|
||||
Container mtusi2026lab5-valkey-1 Healthy
|
||||
Container mtusi2026lab5-migrate-1 Exited
|
||||
Container mtusi2026lab5-broker-1 Healthy
|
||||
Container mtusi2026lab5-s3-init-1 Exited
|
||||
Container mtusi2026lab5-s3-1 Healthy
|
||||
Container mtusi2026lab5-lb-1 Healthy
|
||||
Container mtusi2026lab5-postgres-1 Healthy
|
||||
Container mtusi2026lab5-api-2 Healthy
|
||||
Container mtusi2026lab5-api-1 Healthy
|
||||
Container mtusi2026lab5-worker-1 Healthy
|
||||
Container mtusi2026lab5-relay-1 Healthy
|
||||
scripts/lb-wait.sh
|
||||
exit_code: 0 elapsed_seconds: 15.989
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"ok": true,
|
||||
"date": "2026-11-06T08:04:09Z",
|
||||
"commit": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"scenario": "failover-upload",
|
||||
"upload_instance": "69a2869bbc83",
|
||||
"download_instance": "22f6be0c42c2",
|
||||
"sha256_equal": true,
|
||||
"hook_seconds": 2.771,
|
||||
"download_ok_after_seconds": 2.779,
|
||||
"replicas_at_download": [
|
||||
{
|
||||
"hostname": "22f6be0c42c2",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:03:44.972170633Z",
|
||||
"finished_at": "2026-11-06T08:03:38.540540921Z"
|
||||
},
|
||||
{
|
||||
"hostname": "69a2869bbc83",
|
||||
"status": "exited",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:04:05.809716628Z",
|
||||
"finished_at": "2026-11-06T08:04:14.154993466Z"
|
||||
}
|
||||
],
|
||||
"restored": true,
|
||||
"replicas_after_restore": [
|
||||
{
|
||||
"hostname": "22f6be0c42c2",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:03:44.972170633Z",
|
||||
"finished_at": "2026-11-06T08:03:38.540540921Z"
|
||||
},
|
||||
{
|
||||
"hostname": "69a2869bbc83",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:04:14.533540008Z",
|
||||
"finished_at": "2026-11-06T08:04:14.154993466Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
date: 2026-11-06T08:04:09Z commit: 9ba3076fa8ba707de932e053fc22f455d83b3210
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-sqlalchemy"}
|
||||
$ python3 scripts/lab4_scenarios.py failover-upload --restore --output evidence/sqlalchemy-2026-11-06/track2/qualified/upload-failover.json
|
||||
{
|
||||
"ok": true,
|
||||
"date": "2026-11-06T08:04:09Z",
|
||||
"commit": "9ba3076fa8ba707de932e053fc22f455d83b3210",
|
||||
"scenario": "failover-upload",
|
||||
"upload_instance": "69a2869bbc83",
|
||||
"download_instance": "22f6be0c42c2",
|
||||
"sha256_equal": true,
|
||||
"hook_seconds": 2.771,
|
||||
"download_ok_after_seconds": 2.779,
|
||||
"replicas_at_download": [
|
||||
{
|
||||
"hostname": "22f6be0c42c2",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:03:44.972170633Z",
|
||||
"finished_at": "2026-11-06T08:03:38.540540921Z"
|
||||
},
|
||||
{
|
||||
"hostname": "69a2869bbc83",
|
||||
"status": "exited",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:04:05.809716628Z",
|
||||
"finished_at": "2026-11-06T08:04:14.154993466Z"
|
||||
}
|
||||
],
|
||||
"restored": true,
|
||||
"replicas_after_restore": [
|
||||
{
|
||||
"hostname": "22f6be0c42c2",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:03:44.972170633Z",
|
||||
"finished_at": "2026-11-06T08:03:38.540540921Z"
|
||||
},
|
||||
{
|
||||
"hostname": "69a2869bbc83",
|
||||
"status": "running",
|
||||
"exit_code": "0",
|
||||
"started_at": "2026-11-06T08:04:14.533540008Z",
|
||||
"finished_at": "2026-11-06T08:04:14.154993466Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
exit_code: 0 elapsed_seconds: 6.936
|
||||
@@ -0,0 +1,19 @@
|
||||
run,pipeline_version,name,content_type,size_bytes,width,height,sha256
|
||||
1,1,crop,image/jpeg,1820,128,128,97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143
|
||||
1,1,optimized,image/webp,2462,320,200,1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb
|
||||
1,1,thumbnail,image/jpeg,4679,256,160,7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594
|
||||
1,2,crop,image/jpeg,2142,128,128,5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4
|
||||
1,2,optimized,image/webp,2790,320,200,fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957
|
||||
1,2,thumbnail,image/jpeg,5628,256,160,fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308
|
||||
2,1,crop,image/jpeg,1820,128,128,97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143
|
||||
2,1,optimized,image/webp,2462,320,200,1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb
|
||||
2,1,thumbnail,image/jpeg,4679,256,160,7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594
|
||||
2,2,crop,image/jpeg,2142,128,128,5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4
|
||||
2,2,optimized,image/webp,2790,320,200,fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957
|
||||
2,2,thumbnail,image/jpeg,5628,256,160,fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308
|
||||
3,1,crop,image/jpeg,1820,128,128,97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143
|
||||
3,1,optimized,image/webp,2462,320,200,1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb
|
||||
3,1,thumbnail,image/jpeg,4679,256,160,7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594
|
||||
3,2,crop,image/jpeg,2142,128,128,5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4
|
||||
3,2,optimized,image/webp,2790,320,200,fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957
|
||||
3,2,thumbnail,image/jpeg,5628,256,160,fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308
|
||||
|
Reference in New Issue
Block a user