{ "suite": "lab5-pipeline-idempotency", "started_at": "2026-11-06T06:50:51.629929Z", "source_sha": "886d4b8bc2c279ee6a5b1061e86383edc3af7e7b", "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": [ 4, 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": [ "01a1af9f-f790-71e6-b3fb-7d00136fe108", "01a1af9f-fd79-7310-b49e-cb88fee37431", "01a1afa0-4098-73de-9d95-20247894a6ed", "01a1afa0-6704-7481-bf9f-b2b379a9a77f", "01a1afa0-a526-768b-ba07-c0543e262b19", "01a1afa0-df77-7645-a4cc-8ae27f9c7c14", "01a1afa0-e490-7071-9981-b9ca0b3cf4c0", "01a1afa0-e9ac-7484-978d-a06268029863", "01a1afa0-eb00-71aa-acf4-6270d2e49219", "01a1afa0-ed99-71ff-8796-091003e24032", "01a1afa0-eef0-7780-a582-803418de8d00", "01a1afa0-f19d-70c5-a71d-85e2db516882", "01a1afa0-f306-75c0-99a1-e9fdf04f2ba8", "01a1afa0-f5b8-7586-982d-a6187683dc1d", "01a1afa0-f71c-72b1-b606-6bdba03bf808", "01a1afa0-f9c7-738f-ab7e-57745be5e767", "01a1afa0-fb25-766c-8772-12244773a6db", "01a1afa0-fdc0-71de-b88e-b89ca903f635", "01a1afa0-ff26-755e-ae0f-131497a8de40", "01a1afa1-01c5-73d3-999a-ea9c8b8ce3b7", "01a1afa1-0338-7347-9d14-78d6bdc9f9c7", "01a1afa1-0635-708b-b307-d8d104e4b8a0", "01a1afa1-18a6-748d-8610-a667ab3f7869", "01a1afa1-3e5b-719f-82c9-63153c2f5736", "01a1afa1-62af-70e0-8fe3-ec89a7325d88", "01a1afa1-9081-75e8-92a1-51e87da63e7c", "01a1afa1-b732-771f-8989-81843e710955", "01a1afa2-3687-723a-881e-3bf883fd6b3f", "01a1afa2-b3d8-72de-a44c-9eb979004da4", "01a1afa2-c512-71dc-9e02-63decc4aa01a", "01a1afa2-d79f-769f-bcf0-c04a868d9188", "01a1afa2-fbb9-73bc-bf9c-32b4448d6274", "01a1afa3-4ed0-7738-948f-cdffa8fd5d22" ], "scenarios": [ { "name": "smoke_pipeline", "level": 3, "window": "upload, ready, variants match metadata", "seconds": 1.0, "result": "PASS", "observed": { "attachment_id": "01a1af9f-f790-71e6-b3fb-7d00136fe108", "variants": [ "crop", "optimized", "thumbnail" ] } }, { "name": "worker_down_broker_restart", "level": 3, "window": "worker down, API and broker restart", "seconds": 17.6, "result": "PASS", "observed": { "attachment_id": "01a1af9f-fd79-7310-b49e-cb88fee37431", "timeline": [ { "at": "2026-11-06T06:51:00.342031Z", "step": "worker stopped", "containers": [ "mtusi2026lab5-worker-1 b0439ff24333 exited Exited (0) Less than a second ago" ] }, { "at": "2026-11-06T06:51:00.353902Z", "step": "upload 202 queued", "attachment_id": "01a1af9f-fd79-7310-b49e-cb88fee37431" }, { "at": "2026-11-06T06:51:00.357480Z", "step": "content 409 while queued" }, { "at": "2026-11-06T06:51:00.381765Z", "step": "message with attachment 201, other messages work", "message_id": "01a1af9f-fd86-746f-b070-8ac2977830f0" }, { "at": "2026-11-06T06:51:02.931049Z", "step": "job is in the broker queue", "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 3, 0 ] } }, { "at": "2026-11-06T06:51:09.084828Z", "step": "API replicas and relay restarted" }, { "at": "2026-11-06T06:51:14.558638Z", "step": "broker restarted with its volume, job survived", "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 3, 0 ] } }, { "at": "2026-11-06T06:51:17.309770Z", "step": "worker started" }, { "at": "2026-11-06T06:51:17.424247Z", "step": "ready", "variants": [ "crop", "optimized", "thumbnail" ] } ] } }, { "name": "duplicate_after_ready", "level": 3, "window": "redelivery of a finished job", "seconds": 9.5, "result": "PASS", "observed": { "attachment_id": "01a1afa0-4098-73de-9d95-20247894a6ed", "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": 12.6, "result": "PASS", "observed": { "attachment_id": "01a1afa0-6704-7481-bf9f-b2b379a9a77f", "jobs": [ { "job_id": "01a1afa0-6711-7360-b42f-6b9f8024a65e", "pipeline_version": 1, "status": "done", "attempt": 2 } ] } }, { "name": "retry_exhausted", "level": 3, "window": "transient error until JOB_MAX_ATTEMPTS", "seconds": 18.0, "result": "PASS", "observed": { "attachment_id": "01a1afa0-a526-768b-ba07-c0543e262b19", "jobs": [ { "job_id": "01a1afa0-a52d-74d7-8e84-7a11d0e0a07c", "pipeline_version": 1, "status": "failed", "attempt": 5 } ] } }, { "name": "image_matrix", "level": 4, "window": "limits and variants", "seconds": 11.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.7, "result": "PASS", "observed": { "attachment_id": "01a1afa1-18a6-748d-8610-a667ab3f7869", "exit_code": 137, "after_crash": { "outbox_published": false, "status": "queued", "containers": [ "mtusi2026lab5-relay-1 fced5c447b17 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afa1-18a6-748d-8610-a667ab3f7869/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afa1-18a6-748d-8610-a667ab3f7869/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afa1-18a6-748d-8610-a667ab3f7869/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "crash_publish_confirm", "level": 4, "window": "after publish, before confirm", "seconds": 9.4, "result": "PASS", "observed": { "attachment_id": "01a1afa1-3e5b-719f-82c9-63153c2f5736", "exit_code": 137, "after_crash": { "outbox_published": [ false ], "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 3, 0 ] }, "containers": [ "mtusi2026lab5-relay-1 e9b695c52d81 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afa1-3e5b-719f-82c9-63153c2f5736/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afa1-3e5b-719f-82c9-63153c2f5736/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afa1-3e5b-719f-82c9-63153c2f5736/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": "01a1afa1-62af-70e0-8fe3-ec89a7325d88", "exit_code": 137, "after_crash": { "status": "processing", "variant_rows": 0, "containers": [ "mtusi2026lab5-worker-1 ee3036f2c63c exited Exited (137) Less than a second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afa1-62af-70e0-8fe3-ec89a7325d88/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afa1-62af-70e0-8fe3-ec89a7325d88/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afa1-62af-70e0-8fe3-ec89a7325d88/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": "01a1afa1-9081-75e8-92a1-51e87da63e7c", "exit_code": 137, "after_crash": { "status": "ready", "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afa1-9081-75e8-92a1-51e87da63e7c/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afa1-9081-75e8-92a1-51e87da63e7c/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afa1-9081-75e8-92a1-51e87da63e7c/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 3, 0 ] }, "containers": [ "mtusi2026lab5-worker-1 dc5987d0df17 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afa1-9081-75e8-92a1-51e87da63e7c/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afa1-9081-75e8-92a1-51e87da63e7c/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afa1-9081-75e8-92a1-51e87da63e7c/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "lease_expiry_fencing", "level": 4, "window": "stalled worker, lease expiry", "seconds": 32.6, "result": "PASS", "observed": { "attachment_id": "01a1afa1-b732-771f-8989-81843e710955", "jobs": [ { "job_id": "01a1afa1-b73d-7667-b96b-63ed40cca149", "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": 25.9, "result": "PASS", "observed": { "attachment_id": "01a1afa2-3687-723a-881e-3bf883fd6b3f", "replay": { "result": "replayed", "attachment_id": "01a1afa2-3687-723a-881e-3bf883fd6b3f", "operator": "cli" }, "replay_of_ready": { "result": "noop", "attachment_id": "01a1afa2-3687-723a-881e-3bf883fd6b3f", "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": 6.0, "result": "PASS", "observed": { "dead_letters": 1 } }, { "name": "worker_limits", "level": 4, "window": "render time and memory limits, 40 Mpx in the worker limit", "seconds": 15.0, "result": "PASS", "observed": { "image": { "file": "png-at-pixel-limit-8000x5000.png", "bytes": 116714, "pixels": 40000000 }, "render_timeout": { "seconds": 0.5, "attachment_id": "01a1afa2-b3d8-72de-a44c-9eb979004da4", "error_code": "processing_failed", "worker": "running" }, "render_memory": { "mib": 200, "attachment_id": "01a1afa2-c512-71dc-9e02-63decc4aa01a", "error_code": "processing_failed", "worker": "running" }, "default_limits": { "attachment_id": "01a1afa2-d79f-769f-bcf0-c04a868d9188", "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": 24.9, "result": "PASS", "observed": { "attachment_id": "01a1afa2-fbb9-73bc-bf9c-32b4448d6274", "delays": [ { "attempt": 2, "delay": 0.846877 }, { "attempt": 3, "delay": 1.84524 }, { "attempt": 4, "delay": 2.661903 }, { "attempt": 5, "delay": 7.308053 } ], "share_of_ceiling": [ 0.847, 0.923, 0.665, 0.914 ], "jobs": [ { "job_id": "01a1afa2-fbc8-772c-b23f-0efd8d881c04", "pipeline_version": 1, "status": "failed", "attempt": 5 } ] } }, { "name": "failed_retention", "level": 4, "window": "failed staging kept until retention, then replay expires", "seconds": 21.3, "result": "PASS", "observed": { "attachment_id": "01a1afa3-4ed0-7738-948f-cdffa8fd5d22", "staging_before": "kept", "retention_seconds": 86400, "aged_only": "01a1afa3-4ed0-7738-948f-cdffa8fd5d22", "replay": { "result": "expired", "attachment_id": "01a1afa3-4ed0-7738-948f-cdffa8fd5d22", "operator": "cli" } } } ], "result": "PASS", "finished_at": "2026-11-06T06:55:37.711044Z" }