forked from mtusi2026/mtusi2026lab5
978 lines
26 KiB
JSON
978 lines
26 KiB
JSON
{
|
|
"suite": "lab5-pipeline-idempotency",
|
|
"started_at": "2026-11-06T19:35:55.519173Z",
|
|
"source_sha": "0e921116610d289716af0a40ec823376eb8bbcbc",
|
|
"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": [
|
|
15,
|
|
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": [
|
|
"01a1b25c-6798-701c-9cd8-75aafd903a0b",
|
|
"01a1b25c-6d79-72a3-8572-6e1ce6d2fa72",
|
|
"01a1b25c-ac61-757a-8b1c-959fc5c8da61",
|
|
"01a1b25c-d0e5-7072-9e24-986d0eacf1e5",
|
|
"01a1b25d-0cd9-70fb-b193-7e4ea731dd2e",
|
|
"01a1b25d-45d0-7777-b11c-df61772945cf",
|
|
"01a1b25d-4af2-76e5-9f8d-6ebe867595c3",
|
|
"01a1b25d-5004-7706-a258-f9ccb0799e51",
|
|
"01a1b25d-5165-702a-b711-f49224657d64",
|
|
"01a1b25d-5414-742d-94e5-4cfabc6d8db2",
|
|
"01a1b25d-557a-7727-a742-a1bf9e6dbcef",
|
|
"01a1b25d-582b-779a-92fa-76c631891b36",
|
|
"01a1b25d-5992-7160-b247-ba1e57c9f68b",
|
|
"01a1b25d-5c32-70df-83ba-c52bfcd6db76",
|
|
"01a1b25d-5d9f-701a-a08a-fa64fc29fdee",
|
|
"01a1b25d-603d-76f3-896b-c0ab9922cf83",
|
|
"01a1b25d-619a-7536-b909-72ff0ebf6d5a",
|
|
"01a1b25d-642e-77e4-a17b-887d1f55d538",
|
|
"01a1b25d-6595-75ea-a2b6-bb8ff5cbca60",
|
|
"01a1b25d-682a-7350-8e9b-9fa1179383d9",
|
|
"01a1b25d-6992-70e5-972e-f93c23b8dbf6",
|
|
"01a1b25d-6c92-7370-ac06-b7d943345d62",
|
|
"01a1b25d-7d90-757d-a6cf-f374e63cf7cb",
|
|
"01a1b25d-a31a-7261-975c-7bde40c0e108",
|
|
"01a1b25d-c77d-705e-b838-9d9ba15fbadf",
|
|
"01a1b25d-f8da-76d9-b714-f7b55947a801",
|
|
"01a1b25e-2176-73e5-8d6d-34386191c57a",
|
|
"01a1b25e-a2f3-754b-982c-49da221caf59",
|
|
"01a1b25f-1ffa-72fb-8c1c-fca83d40d0fb",
|
|
"01a1b25f-31a6-7720-bd4f-60787194d5e5",
|
|
"01a1b25f-44b2-755b-a71e-634205be8c09",
|
|
"01a1b25f-5abe-7238-b0b2-db991857b384",
|
|
"01a1b25f-a149-70cd-8c7f-dfd4ec7c8883"
|
|
],
|
|
"scenarios": [
|
|
{
|
|
"name": "smoke_pipeline",
|
|
"level": 3,
|
|
"window": "upload, ready, variants match metadata",
|
|
"seconds": 1.1,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25c-6798-701c-9cd8-75aafd903a0b",
|
|
"variants": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "worker_down_broker_restart",
|
|
"level": 3,
|
|
"window": "worker down, API and broker restart",
|
|
"seconds": 16.6,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25c-6d79-72a3-8572-6e1ce6d2fa72",
|
|
"timeline": [
|
|
{
|
|
"at": "2026-11-06T19:36:04.210289Z",
|
|
"step": "worker stopped",
|
|
"containers": [
|
|
"mtusi2026lab5-worker-1 3924574b030d exited Exited (0) Less than a second ago"
|
|
]
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:04.231533Z",
|
|
"step": "upload 202 queued",
|
|
"attachment_id": "01a1b25c-6d79-72a3-8572-6e1ce6d2fa72"
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:04.235473Z",
|
|
"step": "content 409 while queued"
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:04.257866Z",
|
|
"step": "message with attachment 201, other messages work",
|
|
"message_id": "01a1b25c-6d8b-723f-9bef-f42c91f1c442"
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:06.523597Z",
|
|
"step": "job is in the broker queue",
|
|
"queues": {
|
|
"attachments.process": [
|
|
1,
|
|
0
|
|
],
|
|
"attachments.process.dlq": [
|
|
14,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:12.043233Z",
|
|
"step": "API replicas and relay restarted"
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:17.374725Z",
|
|
"step": "broker restarted with its volume, job survived",
|
|
"queues": {
|
|
"attachments.process": [
|
|
1,
|
|
0
|
|
],
|
|
"attachments.process.dlq": [
|
|
14,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:20.143149Z",
|
|
"step": "worker started"
|
|
},
|
|
{
|
|
"at": "2026-11-06T19:36:20.313903Z",
|
|
"step": "ready",
|
|
"variants": [
|
|
"crop",
|
|
"optimized",
|
|
"thumbnail"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "duplicate_after_ready",
|
|
"level": 3,
|
|
"window": "redelivery of a finished job",
|
|
"seconds": 9.0,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25c-ac61-757a-8b1c-959fc5c8da61",
|
|
"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.0,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25c-d0e5-7072-9e24-986d0eacf1e5",
|
|
"jobs": [
|
|
{
|
|
"job_id": "01a1b25c-d0ec-7129-babc-51241a730c94",
|
|
"pipeline_version": 1,
|
|
"status": "done",
|
|
"attempt": 2
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "retry_exhausted",
|
|
"level": 3,
|
|
"window": "transient error until JOB_MAX_ATTEMPTS",
|
|
"seconds": 17.6,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25d-0cd9-70fb-b193-7e4ea731dd2e",
|
|
"jobs": [
|
|
{
|
|
"job_id": "01a1b25d-0ce5-71be-bcde-4db51cbd6a9f",
|
|
"pipeline_version": 1,
|
|
"status": "failed",
|
|
"attempt": 5
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "image_matrix",
|
|
"level": 4,
|
|
"window": "limits and variants",
|
|
"seconds": 11.2,
|
|
"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": "01a1b25d-7d90-757d-a6cf-f374e63cf7cb",
|
|
"exit_code": 137,
|
|
"after_crash": {
|
|
"outbox_published": false,
|
|
"status": "queued",
|
|
"containers": [
|
|
"mtusi2026lab5-relay-1 57ef736182d7 exited Exited (137) 1 second ago"
|
|
]
|
|
},
|
|
"variants": [
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "crop",
|
|
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
|
"size_bytes": 1820,
|
|
"object_key": "variants/01a1b25d-7d90-757d-a6cf-f374e63cf7cb/1/crop-97bf1400b30a28c1.jpg"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "optimized",
|
|
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
|
"size_bytes": 2462,
|
|
"object_key": "variants/01a1b25d-7d90-757d-a6cf-f374e63cf7cb/1/optimized-1090d84ed8411226.webp"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "thumbnail",
|
|
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
|
"size_bytes": 4679,
|
|
"object_key": "variants/01a1b25d-7d90-757d-a6cf-f374e63cf7cb/1/thumbnail-7bc40bf315c8e18e.jpg"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "crash_publish_confirm",
|
|
"level": 4,
|
|
"window": "after publish, before confirm",
|
|
"seconds": 9.6,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25d-a31a-7261-975c-7bde40c0e108",
|
|
"exit_code": 137,
|
|
"after_crash": {
|
|
"outbox_published": [
|
|
false
|
|
],
|
|
"queues": {
|
|
"attachments.process": [
|
|
0,
|
|
0
|
|
],
|
|
"attachments.process.dlq": [
|
|
14,
|
|
0
|
|
]
|
|
},
|
|
"containers": [
|
|
"mtusi2026lab5-relay-1 9f63b40078d5 exited Exited (137) 1 second ago"
|
|
]
|
|
},
|
|
"variants": [
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "crop",
|
|
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
|
"size_bytes": 1820,
|
|
"object_key": "variants/01a1b25d-a31a-7261-975c-7bde40c0e108/1/crop-97bf1400b30a28c1.jpg"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "optimized",
|
|
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
|
"size_bytes": 2462,
|
|
"object_key": "variants/01a1b25d-a31a-7261-975c-7bde40c0e108/1/optimized-1090d84ed8411226.webp"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "thumbnail",
|
|
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
|
"size_bytes": 4679,
|
|
"object_key": "variants/01a1b25d-a31a-7261-975c-7bde40c0e108/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.6,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25d-c77d-705e-b838-9d9ba15fbadf",
|
|
"exit_code": 137,
|
|
"after_crash": {
|
|
"status": "processing",
|
|
"variant_rows": 0,
|
|
"containers": [
|
|
"mtusi2026lab5-worker-1 c74820bbdab3 exited Exited (137) Less than a second ago"
|
|
]
|
|
},
|
|
"variants": [
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "crop",
|
|
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
|
"size_bytes": 1820,
|
|
"object_key": "variants/01a1b25d-c77d-705e-b838-9d9ba15fbadf/1/crop-97bf1400b30a28c1.jpg"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "optimized",
|
|
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
|
"size_bytes": 2462,
|
|
"object_key": "variants/01a1b25d-c77d-705e-b838-9d9ba15fbadf/1/optimized-1090d84ed8411226.webp"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "thumbnail",
|
|
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
|
"size_bytes": 4679,
|
|
"object_key": "variants/01a1b25d-c77d-705e-b838-9d9ba15fbadf/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": "01a1b25d-f8da-76d9-b714-f7b55947a801",
|
|
"exit_code": 137,
|
|
"after_crash": {
|
|
"status": "ready",
|
|
"variants": [
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "crop",
|
|
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
|
"size_bytes": 1820,
|
|
"object_key": "variants/01a1b25d-f8da-76d9-b714-f7b55947a801/1/crop-97bf1400b30a28c1.jpg"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "optimized",
|
|
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
|
"size_bytes": 2462,
|
|
"object_key": "variants/01a1b25d-f8da-76d9-b714-f7b55947a801/1/optimized-1090d84ed8411226.webp"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "thumbnail",
|
|
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
|
"size_bytes": 4679,
|
|
"object_key": "variants/01a1b25d-f8da-76d9-b714-f7b55947a801/1/thumbnail-7bc40bf315c8e18e.jpg"
|
|
}
|
|
],
|
|
"queues": {
|
|
"attachments.process": [
|
|
0,
|
|
0
|
|
],
|
|
"attachments.process.dlq": [
|
|
14,
|
|
0
|
|
]
|
|
},
|
|
"containers": [
|
|
"mtusi2026lab5-worker-1 5accc3314905 exited Exited (137) 1 second ago"
|
|
]
|
|
},
|
|
"variants": [
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "crop",
|
|
"sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143",
|
|
"size_bytes": 1820,
|
|
"object_key": "variants/01a1b25d-f8da-76d9-b714-f7b55947a801/1/crop-97bf1400b30a28c1.jpg"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "optimized",
|
|
"sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb",
|
|
"size_bytes": 2462,
|
|
"object_key": "variants/01a1b25d-f8da-76d9-b714-f7b55947a801/1/optimized-1090d84ed8411226.webp"
|
|
},
|
|
{
|
|
"pipeline_version": 1,
|
|
"name": "thumbnail",
|
|
"sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594",
|
|
"size_bytes": 4679,
|
|
"object_key": "variants/01a1b25d-f8da-76d9-b714-f7b55947a801/1/thumbnail-7bc40bf315c8e18e.jpg"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "lease_expiry_fencing",
|
|
"level": 4,
|
|
"window": "stalled worker, lease expiry",
|
|
"seconds": 33.2,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25e-2176-73e5-8d6d-34386191c57a",
|
|
"jobs": [
|
|
{
|
|
"job_id": "01a1b25e-2183-77e4-b40b-4afd30e5e553",
|
|
"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": 28.4,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25e-a2f3-754b-982c-49da221caf59",
|
|
"replay": {
|
|
"result": "replayed",
|
|
"attachment_id": "01a1b25e-a2f3-754b-982c-49da221caf59",
|
|
"operator": "cli"
|
|
},
|
|
"replay_of_ready": {
|
|
"result": "noop",
|
|
"attachment_id": "01a1b25e-a2f3-754b-982c-49da221caf59",
|
|
"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.3,
|
|
"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.4,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"image": {
|
|
"file": "png-at-pixel-limit-8000x5000.png",
|
|
"bytes": 116714,
|
|
"pixels": 40000000
|
|
},
|
|
"render_timeout": {
|
|
"seconds": 0.5,
|
|
"attachment_id": "01a1b25f-1ffa-72fb-8c1c-fca83d40d0fb",
|
|
"error_code": "processing_failed",
|
|
"worker": "running"
|
|
},
|
|
"render_memory": {
|
|
"mib": 200,
|
|
"attachment_id": "01a1b25f-31a6-7720-bd4f-60787194d5e5",
|
|
"error_code": "processing_failed",
|
|
"worker": "running"
|
|
},
|
|
"default_limits": {
|
|
"attachment_id": "01a1b25f-44b2-755b-a71e-634205be8c09",
|
|
"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": 18.1,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25f-5abe-7238-b0b2-db991857b384",
|
|
"delays": [
|
|
{
|
|
"attempt": 2,
|
|
"delay": 0.722422
|
|
},
|
|
{
|
|
"attempt": 3,
|
|
"delay": 1.010937
|
|
},
|
|
{
|
|
"attempt": 4,
|
|
"delay": 2.240832
|
|
},
|
|
{
|
|
"attempt": 5,
|
|
"delay": 4.845013
|
|
}
|
|
],
|
|
"share_of_ceiling": [
|
|
0.722,
|
|
0.505,
|
|
0.56,
|
|
0.606
|
|
],
|
|
"jobs": [
|
|
{
|
|
"job_id": "01a1b25f-5ac6-7404-bd51-464f6f4e81f9",
|
|
"pipeline_version": 1,
|
|
"status": "failed",
|
|
"attempt": 5
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "failed_retention",
|
|
"level": 4,
|
|
"window": "failed staging kept until retention, then replay expires",
|
|
"seconds": 21.4,
|
|
"result": "PASS",
|
|
"observed": {
|
|
"attachment_id": "01a1b25f-a149-70cd-8c7f-dfd4ec7c8883",
|
|
"staging_before": "kept",
|
|
"retention_seconds": 86400,
|
|
"aged_only": "01a1b25f-a149-70cd-8c7f-dfd4ec7c8883",
|
|
"replay": {
|
|
"result": "expired",
|
|
"attachment_id": "01a1b25f-a149-70cd-8c7f-dfd4ec7c8883",
|
|
"operator": "cli"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"result": "PASS",
|
|
"finished_at": "2026-11-06T19:40:34.408683Z"
|
|
}
|