{ "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" }