{ "suite": "lab5-pipeline-idempotency", "started_at": "2026-11-06T23:43:01.778840Z", "source_sha": "bc1d7aa7713858acb5d65b61d07e69a640f1ee97", "config": { "base_url": "http://127.0.0.1:18086", "level": 4, "only": "smoke_pipeline,worker_down_broker_restart,duplicate_after_ready,poison_image,s3_outage_recovers,retry_exhausted,crash_after_s3_before_commit,crash_after_commit_before_ack,malformed_message_dead_lettered", "expect_variants": "thumbnail,crop,optimized", "max_attempts": 5, "stall_seconds": 15.0, "compose": "docker compose", "compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml" }, "invariants": [ { "id": "terminal", "statement": "every 202 reaches its expected terminal state", "result": "PASS", "details": { "accepted": 7 } }, { "id": "single_effect", "statement": "one variant set per (attachment_id, pipeline_version, variant)", "result": "PASS", "details": { "rows": 0 } }, { "id": "no_ready_rollback", "statement": "ready never returns to queued or processing", "result": "PASS", "details": { "traced": 7 } }, { "id": "monotonic_publication", "statement": "published_version only moves forward", "result": "PASS", "details": { "sampled": 4 } }, { "id": "bytes_match_metadata", "statement": "sha256, size and real dimensions match served bytes", "result": "PASS", "details": { "verified": 6 } }, { "id": "bounded_attempts", "statement": "attempt <= JOB_MAX_ATTEMPTS", "result": "PASS", "details": { "rows": 0 } }, { "id": "no_orphans", "statement": "no pending outbox, messages, dead letters, staging, objects", "result": "PASS", "details": { "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 1, 0 ] }, "s3_objects": 25, "scoped_attachments": 7 } }, { "id": "no_lost_202", "statement": "every 202 is present in PostgreSQL and the API", "result": "PASS", "details": { "accepted": 7 } } ], "accepted_ids": [ "01a1b33e-a321-7142-83b3-3fdee94a1e28", "01a1b33e-aa74-7790-8cd5-3fee8c57126d", "01a1b33e-f795-73b2-b69a-743288712b08", "01a1b33f-0b50-777a-9469-1535113a47a9", "01a1b33f-5692-76e5-8536-f28c4945ae13", "01a1b33f-a49c-7103-b67d-c29f1bd65c84", "01a1b33f-d382-774e-9583-d5cef2d30c38" ], "scenarios": [ { "name": "smoke_pipeline", "level": 3, "window": "upload, ready, variants match metadata", "seconds": 1.3, "result": "PASS", "observed": { "attachment_id": "01a1b33e-a321-7142-83b3-3fdee94a1e28", "variants": [ "crop", "optimized", "thumbnail" ] } }, { "name": "worker_down_broker_restart", "level": 3, "window": "worker down, API and broker restart", "seconds": 20.3, "result": "PASS", "observed": { "attachment_id": "01a1b33e-aa74-7790-8cd5-3fee8c57126d", "timeline": [ { "at": "2026-11-06T23:43:10.959629Z", "step": "worker stopped", "containers": [ "mtusi2026lab6-worker-1 1751d02b9333 exited Exited (0) Less than a second ago" ] }, { "at": "2026-11-06T23:43:10.973606Z", "step": "upload 202 queued", "attachment_id": "01a1b33e-aa74-7790-8cd5-3fee8c57126d" }, { "at": "2026-11-06T23:43:10.978342Z", "step": "content 409 while queued" }, { "at": "2026-11-06T23:43:10.990681Z", "step": "message with attachment 201, other messages work", "message_id": "01a1b33e-aa83-71e1-aaff-3b25d41ca558" }, { "at": "2026-11-06T23:43:15.525465Z", "step": "job is in the broker queue", "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 0, 0 ] } }, { "at": "2026-11-06T23:43:21.703039Z", "step": "API replicas and relay restarted" }, { "at": "2026-11-06T23:43:27.716415Z", "step": "broker restarted with its volume, job survived", "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 0, 0 ] } }, { "at": "2026-11-06T23:43:30.530159Z", "step": "worker started" }, { "at": "2026-11-06T23:43:30.703821Z", "step": "ready", "variants": [ "crop", "optimized", "thumbnail" ] } ] } }, { "name": "duplicate_after_ready", "level": 3, "window": "redelivery of a finished job", "seconds": 4.6, "result": "PASS", "observed": { "attachment_id": "01a1b33e-f795-73b2-b69a-743288712b08", "events": [ { "kind": "enqueued", "attempt": 1 }, { "kind": "claimed", "attempt": 1 }, { "kind": "done", "attempt": 1 }, { "kind": "duplicate_noop", "attempt": 1 } ] } }, { "name": "poison_image", "level": 3, "window": "permanent error without retries", "seconds": 0.0, "result": "PASS", "observed": { "rejected_by_api": 415 } }, { "name": "s3_outage_recovers", "level": 3, "window": "transient error with retry", "seconds": 15.9, "result": "PASS", "observed": { "attachment_id": "01a1b33f-0b50-777a-9469-1535113a47a9", "jobs": [ { "job_id": "01a1b33f-0b59-7414-89dc-2384926372d0", "pipeline_version": 1, "status": "done", "attempt": 2 } ] } }, { "name": "retry_exhausted", "level": 3, "window": "transient error until JOB_MAX_ATTEMPTS", "seconds": 20.0, "result": "PASS", "observed": { "attachment_id": "01a1b33f-5692-76e5-8536-f28c4945ae13", "jobs": [ { "job_id": "01a1b33f-569e-75f6-9488-c469cbd4d0f4", "pipeline_version": 1, "status": "failed", "attempt": 5 } ] } }, { "name": "crash_after_s3_before_commit", "level": 4, "window": "after S3 write, before COMMIT", "seconds": 11.9, "result": "PASS", "observed": { "attachment_id": "01a1b33f-a49c-7103-b67d-c29f1bd65c84", "exit_code": 137, "after_crash": { "status": "processing", "variant_rows": 0, "containers": [ "mtusi2026lab6-worker-1 3382d464922e exited Exited (137) Less than a second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1b33f-a49c-7103-b67d-c29f1bd65c84/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "crash_after_commit_before_ack", "level": 4, "window": "after COMMIT, before ack", "seconds": 12.7, "result": "PASS", "observed": { "attachment_id": "01a1b33f-d382-774e-9583-d5cef2d30c38", "exit_code": 137, "after_crash": { "status": "ready", "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 0, 0 ] }, "containers": [ "mtusi2026lab6-worker-1 efd5bb99e208 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1b33f-d382-774e-9583-d5cef2d30c38/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "malformed_message_dead_lettered", "level": 4, "window": "message that is not a job goes to the DLQ", "seconds": 5.9, "result": "PASS", "observed": { "dead_letters": 1 } } ], "result": "PASS", "finished_at": "2026-11-06T23:44:57.145369Z" }