{ "suite": "lab5-pipeline-idempotency", "started_at": "2026-11-06T07:39:39.930326Z", "source_sha": "2e428cf8e6dc2c79547e32ed72c28a9dc1eff6a4", "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": [ 13, 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": [ "01a1afcc-a62a-7489-a63e-c7e7a2c9ed2a", "01a1afcc-ac66-7571-bb66-798cb8e93524", "01a1afcc-f338-772d-9127-337cd57c3c73", "01a1afcd-1967-767e-8b0d-e14600eb6266", "01a1afcd-5351-7587-9cfe-f2dda7d0a322", "01a1afcd-8ecb-75d2-a936-4916703bbce9", "01a1afcd-93e1-710e-8120-98888164b554", "01a1afcd-97b6-77d0-8bc7-be66e455da57", "01a1afcd-992b-7129-8e2b-19ca773e8ed8", "01a1afcd-9a84-7210-9a6a-d63ff559801d", "01a1afcd-9d35-70c6-b2fe-6b21cf5fbccd", "01a1afcd-9e9a-7135-a91e-40871b491c01", "01a1afcd-a141-7614-8b0e-67504fdd1375", "01a1afcd-a2a8-7188-b719-16fbfcaa729c", "01a1afcd-a55e-777e-8b0a-7bc1c28e4029", "01a1afcd-a6bf-75ff-beed-b52a9a591168", "01a1afcd-a965-7367-8956-f41c4b927434", "01a1afcd-aac8-701a-9707-5b90dfd072fb", "01a1afcd-ad83-7027-846b-15d9976b74fb", "01a1afcd-aee3-77e2-b63e-f254188068ba", "01a1afcd-b1a4-76ea-a4ed-a3c492905372", "01a1afcd-b490-74e8-bc8c-7cc549bfe686", "01a1afcd-c6fe-7258-afe2-341a5784ce29", "01a1afcd-ebd5-7380-a5b8-897d87ed077d", "01a1afce-1182-7052-a67d-57b87f58a121", "01a1afce-3d80-701a-b178-8cbe3652c9f7", "01a1afce-6844-754e-bb3f-70e05aa868f3", "01a1afce-e782-7506-aba4-805ffcec998a", "01a1afcf-5316-75a4-8ab7-b89b92d59696", "01a1afcf-644e-720c-8c2a-9047d43a6a4e", "01a1afcf-7504-77d7-b974-267ffc89c1c0", "01a1afcf-9d0c-7777-9d00-c617c9031490", "01a1afcf-e89a-735c-b757-33bbac3c8f7a" ], "scenarios": [ { "name": "smoke_pipeline", "level": 3, "window": "upload, ready, variants match metadata", "seconds": 1.1, "result": "PASS", "observed": { "attachment_id": "01a1afcc-a62a-7489-a63e-c7e7a2c9ed2a", "variants": [ "crop", "optimized", "thumbnail" ] } }, { "name": "worker_down_broker_restart", "level": 3, "window": "worker down, API and broker restart", "seconds": 18.7, "result": "PASS", "observed": { "attachment_id": "01a1afcc-ac66-7571-bb66-798cb8e93524", "timeline": [ { "at": "2026-11-06T07:39:48.707036Z", "step": "worker stopped", "containers": [ "mtusi2026lab5-worker-1 4d1feed410d3 exited Exited (0) Less than a second ago" ] }, { "at": "2026-11-06T07:39:48.718724Z", "step": "upload 202 queued", "attachment_id": "01a1afcc-ac66-7571-bb66-798cb8e93524" }, { "at": "2026-11-06T07:39:48.722249Z", "step": "content 409 while queued" }, { "at": "2026-11-06T07:39:48.735360Z", "step": "message with attachment 201, other messages work", "message_id": "01a1afcc-ac73-74d0-8835-d60613f3a7bb" }, { "at": "2026-11-06T07:39:52.129439Z", "step": "job is in the broker queue", "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 12, 0 ] } }, { "at": "2026-11-06T07:39:58.288571Z", "step": "API replicas and relay restarted" }, { "at": "2026-11-06T07:40:03.779226Z", "step": "broker restarted with its volume, job survived", "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 12, 0 ] } }, { "at": "2026-11-06T07:40:06.563311Z", "step": "worker started" }, { "at": "2026-11-06T07:40:06.832746Z", "step": "ready", "variants": [ "crop", "optimized", "thumbnail" ] } ] } }, { "name": "duplicate_after_ready", "level": 3, "window": "redelivery of a finished job", "seconds": 9.4, "result": "PASS", "observed": { "attachment_id": "01a1afcc-f338-772d-9127-337cd57c3c73", "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.5, "result": "PASS", "observed": { "attachment_id": "01a1afcd-1967-767e-8b0d-e14600eb6266", "jobs": [ { "job_id": "01a1afcd-196d-76b0-81ea-8353fa9407cd", "pipeline_version": 1, "status": "done", "attempt": 2 } ] } }, { "name": "retry_exhausted", "level": 3, "window": "transient error until JOB_MAX_ATTEMPTS", "seconds": 18.2, "result": "PASS", "observed": { "attachment_id": "01a1afcd-5351-7587-9cfe-f2dda7d0a322", "jobs": [ { "job_id": "01a1afcd-5361-76a2-8be3-f61af4b77ddb", "pipeline_version": 1, "status": "failed", "attempt": 5 } ] } }, { "name": "image_matrix", "level": 4, "window": "limits and variants", "seconds": 11.3, "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.5, "result": "PASS", "observed": { "attachment_id": "01a1afcd-c6fe-7258-afe2-341a5784ce29", "exit_code": 137, "after_crash": { "outbox_published": false, "status": "queued", "containers": [ "mtusi2026lab5-relay-1 2b3e5027837c exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afcd-c6fe-7258-afe2-341a5784ce29/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afcd-c6fe-7258-afe2-341a5784ce29/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afcd-c6fe-7258-afe2-341a5784ce29/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "crash_publish_confirm", "level": 4, "window": "after publish, before confirm", "seconds": 9.3, "result": "PASS", "observed": { "attachment_id": "01a1afcd-ebd5-7380-a5b8-897d87ed077d", "exit_code": 137, "after_crash": { "outbox_published": [ false ], "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 12, 0 ] }, "containers": [ "mtusi2026lab5-relay-1 0d0fc70560a6 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afcd-ebd5-7380-a5b8-897d87ed077d/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afcd-ebd5-7380-a5b8-897d87ed077d/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afcd-ebd5-7380-a5b8-897d87ed077d/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.6, "result": "PASS", "observed": { "attachment_id": "01a1afce-1182-7052-a67d-57b87f58a121", "exit_code": 137, "after_crash": { "status": "processing", "variant_rows": 0, "containers": [ "mtusi2026lab5-worker-1 d1758a90b2b1 exited Exited (137) Less than a second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afce-1182-7052-a67d-57b87f58a121/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afce-1182-7052-a67d-57b87f58a121/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afce-1182-7052-a67d-57b87f58a121/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "crash_after_commit_before_ack", "level": 4, "window": "after COMMIT, before ack", "seconds": 10.9, "result": "PASS", "observed": { "attachment_id": "01a1afce-3d80-701a-b178-8cbe3652c9f7", "exit_code": 137, "after_crash": { "status": "ready", "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afce-3d80-701a-b178-8cbe3652c9f7/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afce-3d80-701a-b178-8cbe3652c9f7/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afce-3d80-701a-b178-8cbe3652c9f7/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 12, 0 ] }, "containers": [ "mtusi2026lab5-worker-1 c3cb76f4f28f exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afce-3d80-701a-b178-8cbe3652c9f7/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afce-3d80-701a-b178-8cbe3652c9f7/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afce-3d80-701a-b178-8cbe3652c9f7/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "lease_expiry_fencing", "level": 4, "window": "stalled worker, lease expiry", "seconds": 32.6, "result": "PASS", "observed": { "attachment_id": "01a1afce-6844-754e-bb3f-70e05aa868f3", "jobs": [ { "job_id": "01a1afce-6851-7774-b2e5-176adad780d0", "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": 24.2, "result": "PASS", "observed": { "attachment_id": "01a1afce-e782-7506-aba4-805ffcec998a", "replay": { "result": "replayed", "attachment_id": "01a1afce-e782-7506-aba4-805ffcec998a", "operator": "cli" }, "replay_of_ready": { "result": "noop", "attachment_id": "01a1afce-e782-7506-aba4-805ffcec998a", "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": 3.1, "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": "01a1afcf-5316-75a4-8ab7-b89b92d59696", "error_code": "processing_failed", "worker": "running" }, "render_memory": { "mib": 200, "attachment_id": "01a1afcf-644e-720c-8c2a-9047d43a6a4e", "error_code": "processing_failed", "worker": "running" }, "default_limits": { "attachment_id": "01a1afcf-7504-77d7-b974-267ffc89c1c0", "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.0, "result": "PASS", "observed": { "attachment_id": "01a1afcf-9d0c-7777-9d00-c617c9031490", "delays": [ { "attempt": 2, "delay": 0.793742 }, { "attempt": 3, "delay": 1.093735 }, { "attempt": 4, "delay": 3.861417 }, { "attempt": 5, "delay": 4.633305 } ], "share_of_ceiling": [ 0.794, 0.547, 0.965, 0.579 ], "jobs": [ { "job_id": "01a1afcf-9d17-72ea-941d-670e3a02e66f", "pipeline_version": 1, "status": "failed", "attempt": 5 } ] } }, { "name": "failed_retention", "level": 4, "window": "failed staging kept until retention, then replay expires", "seconds": 22.4, "result": "PASS", "observed": { "attachment_id": "01a1afcf-e89a-735c-b757-33bbac3c8f7a", "staging_before": "kept", "retention_seconds": 86400, "aged_only": "01a1afcf-e89a-735c-b757-33bbac3c8f7a", "replay": { "result": "expired", "attachment_id": "01a1afcf-e89a-735c-b757-33bbac3c8f7a", "operator": "cli" } } } ], "result": "PASS", "finished_at": "2026-11-06T07:44:22.596285Z" }