forked from mtusi2026/mtusi2026lab5
Отчёт и evidence: исправления по внешнему аудиту F01–F17, проверка из чистого clone
- раздел «Внешний аудит»: замечание -> исправление -> доказательство, что сознательно не сделано - исправлены опровергнутые утверждения (draft и память, метаданные, лимиты) - evidence/ из полного прогона run_all.sh в чистом clone: 30 проверок, overall=0; before-fix/ — воспроизведения дефектов до исправления
This commit is contained in:
@@ -0,0 +1,237 @@
|
||||
{
|
||||
"scenario": "audit regressions: unicode, protocol errors, PNG filters, download integrity, progressive JPEG",
|
||||
"date_utc": "2026-11-13T18:12:03+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 0.4,
|
||||
"utc": "18:11:55.508",
|
||||
"step": "F08 lone surrogates -> 400",
|
||||
"display_name": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"password": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"chat title": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"message text": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"filename %ED%A0%80": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 0.4,
|
||||
"utc": "18:11:55.513",
|
||||
"step": "F17 unsupported methods -> 405 JSON",
|
||||
"HEAD": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 0
|
||||
},
|
||||
"OPTIONS": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 147,
|
||||
"code": "invalid_request",
|
||||
"request_id_matches": true
|
||||
},
|
||||
"BREW": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 147,
|
||||
"code": "invalid_request",
|
||||
"request_id_matches": true
|
||||
},
|
||||
"TRACE": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 147,
|
||||
"code": "invalid_request",
|
||||
"request_id_matches": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 0.72,
|
||||
"utc": "18:11:55.829",
|
||||
"step": "F05 bad PNG filters -> 415, no job",
|
||||
"filter 5 (1x1)": {
|
||||
"status": 415,
|
||||
"bytes": 69,
|
||||
"rows_created": 0
|
||||
},
|
||||
"filter 255 in row 57 (10x100)": {
|
||||
"status": 415,
|
||||
"bytes": 89,
|
||||
"rows_created": 0
|
||||
},
|
||||
"Adam7, filter 9 in pass 5": {
|
||||
"status": 415,
|
||||
"bytes": 75,
|
||||
"rows_created": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 2.66,
|
||||
"utc": "18:11:57.770",
|
||||
"step": "F09 corrupted object -> 503, intact variant still 200",
|
||||
"attachment_id": "f61ac2e9-9e29-4929-bdf0-991a3e31575e",
|
||||
"tampered_original_status": 503,
|
||||
"code": "unavailable",
|
||||
"untouched_thumbnail_status": 200,
|
||||
"thumbnail_sha_ok": true
|
||||
},
|
||||
{
|
||||
"t": 8.09,
|
||||
"utc": "18:12:03.198",
|
||||
"step": "F02 concurrent ~40 Mpx progressive JPEG: all ready, API not restarted",
|
||||
"checks_exit": 0,
|
||||
"api_before": {
|
||||
"mtusi-lab5-fresh-api-1": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
"mtusi-lab5-fresh-api-2": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
},
|
||||
"api_after": {
|
||||
"mtusi-lab5-fresh-api-1": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
"mtusi-lab5-fresh-api-2": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
},
|
||||
"tail": [
|
||||
"PASS: 6 concurrent ~40 Mpx JPEG (progressive 4:4:4/4:2:0, baseline) -> 202 -> ready"
|
||||
]
|
||||
}
|
||||
],
|
||||
"results": {
|
||||
"F08": {
|
||||
"display_name": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"password": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"chat title": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"message text": {
|
||||
"status": 400,
|
||||
"code": "invalid_request"
|
||||
},
|
||||
"filename %ED%A0%80": {
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
"F17": {
|
||||
"HEAD": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 0
|
||||
},
|
||||
"OPTIONS": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 147,
|
||||
"code": "invalid_request",
|
||||
"request_id_matches": true
|
||||
},
|
||||
"BREW": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 147,
|
||||
"code": "invalid_request",
|
||||
"request_id_matches": true
|
||||
},
|
||||
"TRACE": {
|
||||
"status": 405,
|
||||
"x_request_id": true,
|
||||
"x_instance_id": true,
|
||||
"content_type": "application/json; charset=utf-8",
|
||||
"body_bytes": 147,
|
||||
"code": "invalid_request",
|
||||
"request_id_matches": true
|
||||
}
|
||||
},
|
||||
"F05": {
|
||||
"filter 5 (1x1)": {
|
||||
"status": 415,
|
||||
"bytes": 69,
|
||||
"rows_created": 0
|
||||
},
|
||||
"filter 255 in row 57 (10x100)": {
|
||||
"status": 415,
|
||||
"bytes": 89,
|
||||
"rows_created": 0
|
||||
},
|
||||
"Adam7, filter 9 in pass 5": {
|
||||
"status": 415,
|
||||
"bytes": 75,
|
||||
"rows_created": 0
|
||||
}
|
||||
},
|
||||
"F09": {
|
||||
"attachment_id": "f61ac2e9-9e29-4929-bdf0-991a3e31575e",
|
||||
"tampered_original_status": 503,
|
||||
"code": "unavailable",
|
||||
"untouched_thumbnail_status": 200,
|
||||
"thumbnail_sha_ok": true
|
||||
},
|
||||
"F02": {
|
||||
"checks_exit": 0,
|
||||
"api_before": {
|
||||
"mtusi-lab5-fresh-api-1": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
"mtusi-lab5-fresh-api-2": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
},
|
||||
"api_after": {
|
||||
"mtusi-lab5-fresh-api-1": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
},
|
||||
"mtusi-lab5-fresh-api-2": {
|
||||
"restarts": 0,
|
||||
"oom_killed": false
|
||||
}
|
||||
},
|
||||
"tail": [
|
||||
"PASS: 6 concurrent ~40 Mpx JPEG (progressive 4:4:4/4:2:0, baseline) -> 202 -> ready"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
# 2026-11-13T18:11:55Z python3 student-tests/api_negative_lab5.py --output evidence/api-negative-lab5.json
|
||||
[ 0.40s] F08 lone surrogates -> 400 {"display_name": {"status": 400, "code": "invalid_request"}, "password": {"status": 400, "code": "invalid_request"}, "chat title": {"status": 400, "code": "invalid_request"}, "message text": {"status": 400, "code": "invalid_request"}, "filename %ED%A0%80": {"status": 400}}
|
||||
[ 0.40s] F17 unsupported methods -> 405 JSON {"HEAD": {"status": 405, "x_request_id": true, "x_instance_id": true, "content_type": "application/json; charset=utf-8", "body_bytes": 0}, "OPTIONS": {"status": 405, "x_request_id": true, "x_instance_id": true, "content_type": "application/json; charset=utf-8", "body_bytes": 147, "code": "invalid_request", "request_id_matches": true}, "BREW": {"status": 405, "x_request_id": true, "x_instance_id": true, "content_type": "application/json; charset=utf-8", "body_bytes": 147, "code": "invalid_request", "request_id_matches": true}, "TRACE": {"status": 405, "x_request_id": true, "x_instance_id": true, "content_type": "application/json; charset=utf-8", "body_bytes": 147, "code": "invalid_request", "request_id_matches": true}}
|
||||
[ 0.72s] F05 bad PNG filters -> 415, no job {"filter 5 (1x1)": {"status": 415, "bytes": 69, "rows_created": 0}, "filter 255 in row 57 (10x100)": {"status": 415, "bytes": 89, "rows_created": 0}, "Adam7, filter 9 in pass 5": {"status": 415, "bytes": 75, "rows_created": 0}}
|
||||
[ 2.66s] F09 corrupted object -> 503, intact variant still 200 {"attachment_id": "f61ac2e9-9e29-4929-bdf0-991a3e31575e", "tampered_original_status": 503, "code": "unavailable", "untouched_thumbnail_status": 200, "thumbnail_sha_ok": true}
|
||||
[ 8.09s] F02 concurrent ~40 Mpx progressive JPEG: all ready, API not restarted {"checks_exit": 0, "api_before": {"mtusi-lab5-fresh-api-1": {"restarts": 0, "oom_killed": false}, "mtusi-lab5-fresh-api-2": {"restarts": 0, "oom_killed": false}}, "api_after": {"mtusi-lab5-fresh-api-1": {"restarts": 0, "oom_killed": false}, "mtusi-lab5-fresh-api-2": {"restarts": 0, "oom_killed": false}}, "tail": ["PASS: 6 concurrent ~40 Mpx JPEG (progressive 4:4:4/4:2:0, baseline) -> 202 -> ready"]}
|
||||
PASS: F02, F05, F08, F09, F17 regressions
|
||||
exit=0
|
||||
@@ -1,69 +1,69 @@
|
||||
{
|
||||
"replicas": [
|
||||
"4b806eff0091",
|
||||
"d0e0e47e2041"
|
||||
"13ba2067299a",
|
||||
"ebd193448b9a"
|
||||
],
|
||||
"rounds": [
|
||||
{
|
||||
"uploaded_by": "4b806eff0091",
|
||||
"stopped": "4b806eff0091",
|
||||
"uploaded_by": "13ba2067299a",
|
||||
"stopped": "13ba2067299a",
|
||||
"downloads": [
|
||||
{
|
||||
"instance": "d0e0e47e2041",
|
||||
"instance": "ebd193448b9a",
|
||||
"sha256_ok": true,
|
||||
"ms": 6.9
|
||||
"ms": 7.0
|
||||
},
|
||||
{
|
||||
"instance": "d0e0e47e2041",
|
||||
"instance": "ebd193448b9a",
|
||||
"sha256_ok": true,
|
||||
"ms": 26.3
|
||||
"ms": 5.5
|
||||
},
|
||||
{
|
||||
"instance": "d0e0e47e2041",
|
||||
"instance": "ebd193448b9a",
|
||||
"sha256_ok": true,
|
||||
"ms": 11.5
|
||||
"ms": 7.7
|
||||
},
|
||||
{
|
||||
"instance": "d0e0e47e2041",
|
||||
"instance": "ebd193448b9a",
|
||||
"sha256_ok": true,
|
||||
"ms": 6.4
|
||||
"ms": 6.8
|
||||
},
|
||||
{
|
||||
"instance": "d0e0e47e2041",
|
||||
"instance": "ebd193448b9a",
|
||||
"sha256_ok": true,
|
||||
"ms": 7.8
|
||||
"ms": 5.9
|
||||
}
|
||||
],
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"uploaded_by": "d0e0e47e2041",
|
||||
"stopped": "d0e0e47e2041",
|
||||
"uploaded_by": "ebd193448b9a",
|
||||
"stopped": "ebd193448b9a",
|
||||
"downloads": [
|
||||
{
|
||||
"instance": "4b806eff0091",
|
||||
"instance": "13ba2067299a",
|
||||
"sha256_ok": true,
|
||||
"ms": 9.0
|
||||
"ms": 8.0
|
||||
},
|
||||
{
|
||||
"instance": "4b806eff0091",
|
||||
"instance": "13ba2067299a",
|
||||
"sha256_ok": true,
|
||||
"ms": 7.8
|
||||
"ms": 5.8
|
||||
},
|
||||
{
|
||||
"instance": "4b806eff0091",
|
||||
"instance": "13ba2067299a",
|
||||
"sha256_ok": true,
|
||||
"ms": 7.5
|
||||
"ms": 6.2
|
||||
},
|
||||
{
|
||||
"instance": "4b806eff0091",
|
||||
"instance": "13ba2067299a",
|
||||
"sha256_ok": true,
|
||||
"ms": 7.5
|
||||
"ms": 9.6
|
||||
},
|
||||
{
|
||||
"instance": "4b806eff0091",
|
||||
"instance": "13ba2067299a",
|
||||
"sha256_ok": true,
|
||||
"ms": 23.8
|
||||
"ms": 5.8
|
||||
}
|
||||
],
|
||||
"pass": true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 2026-11-13T13:59:55Z python3 student-tests/attachment_failover.py --output evidence/attachment-failover.json
|
||||
{"uploaded_by": "4b806eff0091", "stopped": "4b806eff0091", "downloads": [{"instance": "d0e0e47e2041", "sha256_ok": true, "ms": 6.9}, {"instance": "d0e0e47e2041", "sha256_ok": true, "ms": 26.3}, {"instance": "d0e0e47e2041", "sha256_ok": true, "ms": 11.5}, {"instance": "d0e0e47e2041", "sha256_ok": true, "ms": 6.4}, {"instance": "d0e0e47e2041", "sha256_ok": true, "ms": 7.8}], "pass": true}
|
||||
{"uploaded_by": "d0e0e47e2041", "stopped": "d0e0e47e2041", "downloads": [{"instance": "4b806eff0091", "sha256_ok": true, "ms": 9.0}, {"instance": "4b806eff0091", "sha256_ok": true, "ms": 7.8}, {"instance": "4b806eff0091", "sha256_ok": true, "ms": 7.5}, {"instance": "4b806eff0091", "sha256_ok": true, "ms": 7.5}, {"instance": "4b806eff0091", "sha256_ok": true, "ms": 23.8}], "pass": true}
|
||||
# 2026-11-13T18:11:26Z python3 student-tests/attachment_failover.py --output evidence/attachment-failover.json
|
||||
{"uploaded_by": "13ba2067299a", "stopped": "13ba2067299a", "downloads": [{"instance": "ebd193448b9a", "sha256_ok": true, "ms": 7.0}, {"instance": "ebd193448b9a", "sha256_ok": true, "ms": 5.5}, {"instance": "ebd193448b9a", "sha256_ok": true, "ms": 7.7}, {"instance": "ebd193448b9a", "sha256_ok": true, "ms": 6.8}, {"instance": "ebd193448b9a", "sha256_ok": true, "ms": 5.9}], "pass": true}
|
||||
{"uploaded_by": "ebd193448b9a", "stopped": "ebd193448b9a", "downloads": [{"instance": "13ba2067299a", "sha256_ok": true, "ms": 8.0}, {"instance": "13ba2067299a", "sha256_ok": true, "ms": 5.8}, {"instance": "13ba2067299a", "sha256_ok": true, "ms": 6.2}, {"instance": "13ba2067299a", "sha256_ok": true, "ms": 9.6}, {"instance": "13ba2067299a", "sha256_ok": true, "ms": 5.8}], "pass": true}
|
||||
{"pass": true, "rounds": 2}
|
||||
exit=0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T13:59:53Z python3 student-tests/attachments_negative.py --output evidence/attachments-negative.json
|
||||
# 2026-11-13T18:11:23Z python3 student-tests/attachments_negative.py --output evidence/attachments-negative.json
|
||||
PASS valid PNG fixture -> 202
|
||||
PASS valid JPEG -> 202
|
||||
PASS unicode filename -> 202
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T13:59:48Z python3 student-tests/broker_permissions.py --output evidence/broker-permissions.json
|
||||
# 2026-11-13T18:11:19Z python3 student-tests/broker_permissions.py --output evidence/broker-permissions.json
|
||||
PASS relay {'publish': True, 'get_work_queue': False, 'get_dlq': False, 'declare_queue': False}
|
||||
PASS worker {'publish': False, 'get_work_queue': True, 'get_dlq': False, 'declare_queue': False}
|
||||
PASS ops {'publish': True, 'get_work_queue': False, 'get_dlq': True, 'declare_queue': False}
|
||||
|
||||
+41
-41
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"scenario": "burst of uploads: bounded worker concurrency",
|
||||
"date_utc": "2026-11-13T13:59:48+00:00",
|
||||
"date_utc": "2026-11-13T18:11:19+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 1.07,
|
||||
"utc": "13:59:38.283",
|
||||
"t": 1.7,
|
||||
"utc": "18:11:07.120",
|
||||
"step": "consumers",
|
||||
"count": 4,
|
||||
"prefetch": [
|
||||
@@ -12,8 +12,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 1.61,
|
||||
"utc": "13:59:38.821",
|
||||
"t": 2.2,
|
||||
"utc": "18:11:07.627",
|
||||
"step": "generated images",
|
||||
"bytes": [
|
||||
6753618,
|
||||
@@ -23,50 +23,50 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 4.28,
|
||||
"utc": "13:59:41.494",
|
||||
"t": 6.35,
|
||||
"utc": "18:11:11.775",
|
||||
"step": "all uploads accepted (202)",
|
||||
"count": 24,
|
||||
"seconds": 2.09,
|
||||
"seconds": 3.7,
|
||||
"queue_right_after": {
|
||||
"messages": 0,
|
||||
"messages_ready": 0,
|
||||
"messages_unacknowledged": 0,
|
||||
"messages": 20,
|
||||
"messages_ready": 16,
|
||||
"messages_unacknowledged": 4,
|
||||
"consumers": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 11.66,
|
||||
"utc": "13:59:48.873",
|
||||
"t": 13.78,
|
||||
"utc": "18:11:19.207",
|
||||
"step": "result",
|
||||
"count": 24,
|
||||
"image_bytes": 6753618,
|
||||
"upload_seconds": 2.09,
|
||||
"total_seconds_to_all_ready": 9.82,
|
||||
"throughput_jobs_per_s": 2.44,
|
||||
"upload_seconds": 3.7,
|
||||
"total_seconds_to_all_ready": 11.34,
|
||||
"throughput_jobs_per_s": 2.12,
|
||||
"consumers": 4,
|
||||
"prefetch_per_consumer": [
|
||||
1
|
||||
],
|
||||
"max_concurrent_processing": 4,
|
||||
"queue_lag_s": {
|
||||
"p50": 4.282,
|
||||
"p95": 6.409,
|
||||
"max": 6.756
|
||||
"p50": 6.475,
|
||||
"p95": 7.414,
|
||||
"max": 7.63
|
||||
},
|
||||
"enqueued_to_ready_s": {
|
||||
"p50": 5.112,
|
||||
"p95": 7.197,
|
||||
"max": 7.202
|
||||
"p50": 7.309,
|
||||
"p95": 8.217,
|
||||
"max": 8.411
|
||||
},
|
||||
"processing_s": {
|
||||
"p50": 0.847,
|
||||
"max": 2.514,
|
||||
"mean": 1.2
|
||||
"p50": 0.845,
|
||||
"max": 3.098,
|
||||
"mean": 1.517
|
||||
},
|
||||
"worker_peak_mem_mib": {
|
||||
"mtusi-lab5-fresh-worker-1": 69.1,
|
||||
"mtusi-lab5-fresh-worker-2": 73.9
|
||||
"mtusi-lab5-fresh-worker-1": 106.4,
|
||||
"mtusi-lab5-fresh-worker-2": 113.9
|
||||
},
|
||||
"worker_mem_limit": "1GiB",
|
||||
"staging_left": 0
|
||||
@@ -75,32 +75,32 @@
|
||||
"result": {
|
||||
"count": 24,
|
||||
"image_bytes": 6753618,
|
||||
"upload_seconds": 2.09,
|
||||
"total_seconds_to_all_ready": 9.82,
|
||||
"throughput_jobs_per_s": 2.44,
|
||||
"upload_seconds": 3.7,
|
||||
"total_seconds_to_all_ready": 11.34,
|
||||
"throughput_jobs_per_s": 2.12,
|
||||
"consumers": 4,
|
||||
"prefetch_per_consumer": [
|
||||
1
|
||||
],
|
||||
"max_concurrent_processing": 4,
|
||||
"queue_lag_s": {
|
||||
"p50": 4.282,
|
||||
"p95": 6.409,
|
||||
"max": 6.756
|
||||
"p50": 6.475,
|
||||
"p95": 7.414,
|
||||
"max": 7.63
|
||||
},
|
||||
"enqueued_to_ready_s": {
|
||||
"p50": 5.112,
|
||||
"p95": 7.197,
|
||||
"max": 7.202
|
||||
"p50": 7.309,
|
||||
"p95": 8.217,
|
||||
"max": 8.411
|
||||
},
|
||||
"processing_s": {
|
||||
"p50": 0.847,
|
||||
"max": 2.514,
|
||||
"mean": 1.2
|
||||
"p50": 0.845,
|
||||
"max": 3.098,
|
||||
"mean": 1.517
|
||||
},
|
||||
"worker_peak_mem_mib": {
|
||||
"mtusi-lab5-fresh-worker-1": 69.1,
|
||||
"mtusi-lab5-fresh-worker-2": 73.9
|
||||
"mtusi-lab5-fresh-worker-1": 106.4,
|
||||
"mtusi-lab5-fresh-worker-2": 113.9
|
||||
},
|
||||
"worker_mem_limit": "1GiB",
|
||||
"staging_left": 0
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
# 2026-11-13T13:59:37Z python3 student-tests/burst.py --count 24 --output evidence/burst.json
|
||||
[ 1.07s] consumers {"count": 4, "prefetch": [1]}
|
||||
[ 1.61s] generated images {"bytes": [6753618, 6753618, 6753618, 6753618]}
|
||||
[ 4.28s] all uploads accepted (202) {"count": 24, "seconds": 2.09, "queue_right_after": {"messages": 0, "messages_ready": 0, "messages_unacknowledged": 0, "consumers": 4}}
|
||||
[ 11.66s] result {"count": 24, "image_bytes": 6753618, "upload_seconds": 2.09, "total_seconds_to_all_ready": 9.82, "throughput_jobs_per_s": 2.44, "consumers": 4, "prefetch_per_consumer": [1], "max_concurrent_processing": 4, "queue_lag_s": {"p50": 4.282, "p95": 6.409, "max": 6.756}, "enqueued_to_ready_s": {"p50": 5.112, "p95": 7.197, "max": 7.202}, "processing_s": {"p50": 0.847, "max": 2.514, "mean": 1.2}, "worker_peak_mem_mib": {"mtusi-lab5-fresh-worker-1": 69.1, "mtusi-lab5-fresh-worker-2": 73.9}, "worker_mem_limit": "1GiB", "staging_left": 0}
|
||||
# 2026-11-13T18:11:05Z python3 student-tests/burst.py --count 24 --output evidence/burst.json
|
||||
[ 1.70s] consumers {"count": 4, "prefetch": [1]}
|
||||
[ 2.20s] generated images {"bytes": [6753618, 6753618, 6753618, 6753618]}
|
||||
[ 6.35s] all uploads accepted (202) {"count": 24, "seconds": 3.7, "queue_right_after": {"messages": 20, "messages_ready": 16, "messages_unacknowledged": 4, "consumers": 4}}
|
||||
[ 13.78s] result {"count": 24, "image_bytes": 6753618, "upload_seconds": 3.7, "total_seconds_to_all_ready": 11.34, "throughput_jobs_per_s": 2.12, "consumers": 4, "prefetch_per_consumer": [1], "max_concurrent_processing": 4, "queue_lag_s": {"p50": 6.475, "p95": 7.414, "max": 7.63}, "enqueued_to_ready_s": {"p50": 7.309, "p95": 8.217, "max": 8.411}, "processing_s": {"p50": 0.845, "max": 3.098, "mean": 1.517}, "worker_peak_mem_mib": {"mtusi-lab5-fresh-worker-1": 106.4, "mtusi-lab5-fresh-worker-2": 113.9}, "worker_mem_limit": "1GiB", "staging_left": 0}
|
||||
PASS: 24 jobs, max concurrent 4 <= 4 consumers
|
||||
exit=0
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T13:53:07Z make check
|
||||
# 2026-11-13T18:04:16Z make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
exit=0
|
||||
|
||||
@@ -9,13 +9,13 @@ mtusi-lab5-fresh-relay-1 running
|
||||
mtusi-lab5-fresh-s3-1 running
|
||||
mtusi-lab5-fresh-worker-1 running
|
||||
mtusi-lab5-fresh-worker-2 running
|
||||
/mtusi-lab5-fresh-api-1 StartedAt=2026-11-13T13:53:51.652721633Z
|
||||
/mtusi-lab5-fresh-api-2 StartedAt=2026-11-13T13:53:51.6158283Z
|
||||
/mtusi-lab5-fresh-broker-1 StartedAt=2026-11-13T13:53:11.853846545Z
|
||||
/mtusi-lab5-fresh-db-1 StartedAt=2026-11-13T13:53:10.808589212Z
|
||||
/mtusi-lab5-fresh-janitor-1 StartedAt=2026-11-13T13:53:58.302793803Z
|
||||
/mtusi-lab5-fresh-lb-1 StartedAt=2026-11-13T13:53:48.400688507Z
|
||||
/mtusi-lab5-fresh-relay-1 StartedAt=2026-11-13T13:53:49.111619382Z
|
||||
/mtusi-lab5-fresh-s3-1 StartedAt=2026-11-13T13:53:28.254448345Z
|
||||
/mtusi-lab5-fresh-worker-1 StartedAt=2026-11-13T13:53:49.098521882Z
|
||||
/mtusi-lab5-fresh-worker-2 StartedAt=2026-11-13T13:53:49.078510174Z
|
||||
/mtusi-lab5-fresh-api-1 StartedAt=2026-11-13T18:05:01.760368215Z
|
||||
/mtusi-lab5-fresh-api-2 StartedAt=2026-11-13T18:05:01.376951507Z
|
||||
/mtusi-lab5-fresh-broker-1 StartedAt=2026-11-13T18:04:22.995856753Z
|
||||
/mtusi-lab5-fresh-db-1 StartedAt=2026-11-13T18:04:21.939268044Z
|
||||
/mtusi-lab5-fresh-janitor-1 StartedAt=2026-11-13T18:05:08.376217093Z
|
||||
/mtusi-lab5-fresh-lb-1 StartedAt=2026-11-13T18:04:58.489719005Z
|
||||
/mtusi-lab5-fresh-relay-1 StartedAt=2026-11-13T18:04:59.153573839Z
|
||||
/mtusi-lab5-fresh-s3-1 StartedAt=2026-11-13T18:04:39.206272094Z
|
||||
/mtusi-lab5-fresh-worker-1 StartedAt=2026-11-13T18:04:58.635651214Z
|
||||
/mtusi-lab5-fresh-worker-2 StartedAt=2026-11-13T18:04:58.657694089Z
|
||||
|
||||
@@ -9,13 +9,13 @@ mtusi-lab5-fresh-relay-1 running
|
||||
mtusi-lab5-fresh-s3-1 running
|
||||
mtusi-lab5-fresh-worker-1 running
|
||||
mtusi-lab5-fresh-worker-2 running
|
||||
/mtusi-lab5-fresh-api-1 StartedAt=2026-11-13T13:52:53.283472676Z
|
||||
/mtusi-lab5-fresh-api-2 StartedAt=2026-11-13T13:52:53.175935134Z
|
||||
/mtusi-lab5-fresh-broker-1 StartedAt=2026-11-13T13:45:34.32942825Z
|
||||
/mtusi-lab5-fresh-db-1 StartedAt=2026-11-13T13:44:07.792332544Z
|
||||
/mtusi-lab5-fresh-janitor-1 StartedAt=2026-11-13T13:44:55.289415927Z
|
||||
/mtusi-lab5-fresh-lb-1 StartedAt=2026-11-13T13:44:45.427555506Z
|
||||
/mtusi-lab5-fresh-relay-1 StartedAt=2026-11-13T13:52:43.742274296Z
|
||||
/mtusi-lab5-fresh-s3-1 StartedAt=2026-11-13T13:44:25.218194885Z
|
||||
/mtusi-lab5-fresh-worker-1 StartedAt=2026-11-13T13:50:06.087501501Z
|
||||
/mtusi-lab5-fresh-worker-2 StartedAt=2026-11-13T13:50:06.164766459Z
|
||||
/mtusi-lab5-fresh-api-1 StartedAt=2026-11-13T18:03:55.06836867Z
|
||||
/mtusi-lab5-fresh-api-2 StartedAt=2026-11-13T18:03:54.97037567Z
|
||||
/mtusi-lab5-fresh-broker-1 StartedAt=2026-11-13T18:03:35.297206384Z
|
||||
/mtusi-lab5-fresh-db-1 StartedAt=2026-11-13T18:03:35.29324505Z
|
||||
/mtusi-lab5-fresh-janitor-1 StartedAt=2026-11-13T18:03:54.970752004Z
|
||||
/mtusi-lab5-fresh-lb-1 StartedAt=2026-11-13T18:03:55.201903962Z
|
||||
/mtusi-lab5-fresh-relay-1 StartedAt=2026-11-13T18:03:41.47019097Z
|
||||
/mtusi-lab5-fresh-s3-1 StartedAt=2026-11-13T18:03:35.296093217Z
|
||||
/mtusi-lab5-fresh-worker-1 StartedAt=2026-11-13T18:03:55.054208962Z
|
||||
/mtusi-lab5-fresh-worker-2 StartedAt=2026-11-13T18:03:54.96489117Z
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# 2026-11-13T18:14:43Z python3 student-tests/cursor_validation.py
|
||||
PASS: 6 cursor date boundary checks; invalid dates return 400.
|
||||
exit=0
|
||||
@@ -1,26 +1,26 @@
|
||||
# 2026-11-13T14:00:28Z docker compose --profile tools run --rm -T ops failed --limit 10
|
||||
# 2026-11-13T18:15:40Z docker compose --profile tools run --rm -T ops failed --limit 10
|
||||
{
|
||||
"failed": [
|
||||
{
|
||||
"attachment_id": "d098c501-ff73-4036-a5c7-60302e9e450b",
|
||||
"job_id": "801d942b-dbe6-425c-9f56-c35f8a8a178c",
|
||||
"error_code": "staging_corrupted",
|
||||
"attempt": 1,
|
||||
"attachment_id": "235fa5c6-a857-4b05-b6f5-73bde0a534d2",
|
||||
"job_id": "da1feee6-e155-4c3d-8035-5ea09ee1110b",
|
||||
"error_code": "retry_exhausted",
|
||||
"attempt": 5,
|
||||
"max_attempts": 5,
|
||||
"replay_count": 0,
|
||||
"last_error": "size/sha256 differ from accepted upload",
|
||||
"updated_at": "2026-11-13T13:56:53.643818Z",
|
||||
"replayable": true
|
||||
"last_error": "last error: storage_unavailable injected transient error",
|
||||
"updated_at": "2026-11-13T18:12:48.212577Z",
|
||||
"replayable": false
|
||||
},
|
||||
{
|
||||
"attachment_id": "49c0404f-8f5c-480f-81de-09bb689a859f",
|
||||
"job_id": "cdd3d4c8-1abd-47eb-aa22-02caf516406d",
|
||||
"attachment_id": "03f82fee-70af-4267-a19d-a3a5d7f5ea17",
|
||||
"job_id": "f0cd4a53-10ba-4721-ab75-68fbde0873f6",
|
||||
"error_code": "staging_corrupted",
|
||||
"attempt": 1,
|
||||
"max_attempts": 5,
|
||||
"replay_count": 0,
|
||||
"last_error": "size/sha256 differ from accepted upload",
|
||||
"updated_at": "2026-11-13T13:47:53.168892Z",
|
||||
"updated_at": "2026-11-13T18:08:03.432370Z",
|
||||
"replayable": true
|
||||
}
|
||||
],
|
||||
|
||||
@@ -4,287 +4,286 @@
|
||||
"duration_s": 20.0,
|
||||
"request_timeout_s": 2.0,
|
||||
"action": {
|
||||
"command": "env TARGET_INSTANCE_ID=78ea3303cfbc scripts/stop-one.sh",
|
||||
"started_s": 5.01,
|
||||
"finished_s": 8.521,
|
||||
"command": "env TARGET_INSTANCE_ID=c22f6c11ca32 scripts/stop-one.sh",
|
||||
"started_s": 5.004,
|
||||
"finished_s": 8.539,
|
||||
"exit_code": 0
|
||||
},
|
||||
"baseline_ok_rps": 486.0,
|
||||
"overall_ok_rps": 262.1,
|
||||
"requests_ok": 5242,
|
||||
"baseline_ok_rps": 466.5,
|
||||
"overall_ok_rps": 243.8,
|
||||
"requests_ok": 4876,
|
||||
"errors_total": 0,
|
||||
"error_rate": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"error_window_s": null,
|
||||
"recovery_s": 0.0,
|
||||
"post_action_ok_rps": 137.8,
|
||||
"capacity_ratio": 0.28,
|
||||
"post_action_ok_rps": 153.2,
|
||||
"capacity_ratio": 0.33,
|
||||
"latency_ok_ms": {
|
||||
"p50": 5.1,
|
||||
"p95": 76.6,
|
||||
"p99": 94.2
|
||||
"p50": 5.5,
|
||||
"p95": 78.0,
|
||||
"p99": 94.5
|
||||
},
|
||||
"target_instance": "78ea3303cfbc",
|
||||
"target_last_seen_s": 1.629,
|
||||
"target_instance": "c22f6c11ca32",
|
||||
"target_last_seen_s": 0.901,
|
||||
"lb_events": [
|
||||
{
|
||||
"t": 1.7,
|
||||
"server": "api1",
|
||||
"addr": "172.23.0.9:8080",
|
||||
"t": 0.91,
|
||||
"server": "api2",
|
||||
"addr": "172.25.0.6:8080",
|
||||
"from": "UP",
|
||||
"to": "DOWN"
|
||||
},
|
||||
{
|
||||
"t": 6.02,
|
||||
"server": "api1",
|
||||
"t": 4.62,
|
||||
"server": "api2",
|
||||
"addr": "",
|
||||
"from": "DOWN",
|
||||
"to": "MAINT"
|
||||
}
|
||||
],
|
||||
"posts_retried_same_key": 0,
|
||||
"confirmed_messages": 2622,
|
||||
"history_messages": 2622,
|
||||
"confirmed_messages": 2439,
|
||||
"history_messages": 2439,
|
||||
"lost_confirmed": 0,
|
||||
"duplicate_ids": 0,
|
||||
"duplicate_texts": 0,
|
||||
"timeline": [
|
||||
{
|
||||
"t": 0,
|
||||
"ok": 448,
|
||||
"ok": 460,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"78ea3303cfbc": 224,
|
||||
"ad0d1b2c4289": 224
|
||||
"c22f6c11ca32": 232,
|
||||
"6dec19715338": 228
|
||||
},
|
||||
"versions": {
|
||||
"2": 448
|
||||
"1": 460
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 1,
|
||||
"ok": 545,
|
||||
"ok": 458,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"78ea3303cfbc": 273,
|
||||
"ad0d1b2c4289": 272
|
||||
"6dec19715338": 229,
|
||||
"c22f6c11ca32": 229
|
||||
},
|
||||
"versions": {
|
||||
"2": 545
|
||||
"1": 458
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 2,
|
||||
"ok": 404,
|
||||
"ok": 343,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 204,
|
||||
"78ea3303cfbc": 200
|
||||
"6dec19715338": 175,
|
||||
"c22f6c11ca32": 168
|
||||
},
|
||||
"versions": {
|
||||
"2": 404
|
||||
"1": 343
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 3,
|
||||
"ok": 601,
|
||||
"ok": 482,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"78ea3303cfbc": 302,
|
||||
"ad0d1b2c4289": 299
|
||||
"c22f6c11ca32": 243,
|
||||
"6dec19715338": 239
|
||||
},
|
||||
"versions": {
|
||||
"2": 601
|
||||
"1": 482
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 4,
|
||||
"ok": 394,
|
||||
"ok": 583,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"78ea3303cfbc": 198,
|
||||
"ad0d1b2c4289": 196
|
||||
"6dec19715338": 292,
|
||||
"c22f6c11ca32": 291
|
||||
},
|
||||
"versions": {
|
||||
"2": 394
|
||||
"1": 583
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 5,
|
||||
"ok": 476,
|
||||
"ok": 534,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 239,
|
||||
"78ea3303cfbc": 237
|
||||
"c22f6c11ca32": 259,
|
||||
"6dec19715338": 275
|
||||
},
|
||||
"versions": {
|
||||
"2": 476
|
||||
"1": 534
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 6,
|
||||
"ok": 468,
|
||||
"ok": 184,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"78ea3303cfbc": 206,
|
||||
"ad0d1b2c4289": 262
|
||||
"6dec19715338": 184
|
||||
},
|
||||
"versions": {
|
||||
"2": 468
|
||||
"1": 184
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 7,
|
||||
"ok": 166,
|
||||
"ok": 94,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 166
|
||||
"6dec19715338": 94
|
||||
},
|
||||
"versions": {
|
||||
"2": 166
|
||||
"1": 94
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 8,
|
||||
"ok": 184,
|
||||
"ok": 151,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 184
|
||||
"6dec19715338": 151
|
||||
},
|
||||
"versions": {
|
||||
"2": 184
|
||||
"1": 151
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 9,
|
||||
"ok": 151,
|
||||
"ok": 143,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 151
|
||||
"6dec19715338": 143
|
||||
},
|
||||
"versions": {
|
||||
"2": 151
|
||||
"1": 143
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 10,
|
||||
"ok": 79,
|
||||
"ok": 157,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 79
|
||||
"6dec19715338": 157
|
||||
},
|
||||
"versions": {
|
||||
"2": 79
|
||||
"1": 157
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 11,
|
||||
"ok": 93,
|
||||
"ok": 153,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 93
|
||||
"6dec19715338": 153
|
||||
},
|
||||
"versions": {
|
||||
"2": 93
|
||||
"1": 153
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 12,
|
||||
"ok": 172,
|
||||
"ok": 168,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 172
|
||||
"6dec19715338": 168
|
||||
},
|
||||
"versions": {
|
||||
"2": 172
|
||||
"1": 168
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 13,
|
||||
"ok": 201,
|
||||
"ok": 88,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 201
|
||||
"6dec19715338": 88
|
||||
},
|
||||
"versions": {
|
||||
"2": 201
|
||||
"1": 88
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 14,
|
||||
"ok": 149,
|
||||
"ok": 189,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 149
|
||||
"6dec19715338": 189
|
||||
},
|
||||
"versions": {
|
||||
"2": 149
|
||||
"1": 189
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 15,
|
||||
"ok": 171,
|
||||
"ok": 158,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 171
|
||||
"6dec19715338": 158
|
||||
},
|
||||
"versions": {
|
||||
"2": 171
|
||||
"1": 158
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 16,
|
||||
"ok": 115,
|
||||
"ok": 151,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 115
|
||||
"6dec19715338": 151
|
||||
},
|
||||
"versions": {
|
||||
"2": 115
|
||||
"1": 151
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 17,
|
||||
"ok": 108,
|
||||
"ok": 166,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 108
|
||||
"6dec19715338": 166
|
||||
},
|
||||
"versions": {
|
||||
"2": 108
|
||||
"1": 166
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 18,
|
||||
"ok": 152,
|
||||
"ok": 149,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 152
|
||||
"6dec19715338": 149
|
||||
},
|
||||
"versions": {
|
||||
"2": 152
|
||||
"1": 149
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 19,
|
||||
"ok": 157,
|
||||
"ok": 60,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 157
|
||||
"6dec19715338": 60
|
||||
},
|
||||
"versions": {
|
||||
"2": 157
|
||||
"1": 60
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 20,
|
||||
"ok": 8,
|
||||
"ok": 5,
|
||||
"err": 0,
|
||||
"instances": {
|
||||
"ad0d1b2c4289": 8
|
||||
"6dec19715338": 5
|
||||
},
|
||||
"versions": {
|
||||
"2": 8
|
||||
"1": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
# 2026-11-13T18:14:48Z python3 student-tests/failover_bench.py --action env TARGET_INSTANCE_ID=c22f6c11ca32 scripts/stop-one.sh --target-instance c22f6c11ca32 --duration 20 --action-at 5 --concurrency 4 --output evidence/failover-bench.json
|
||||
{
|
||||
"label": "",
|
||||
"concurrency": 4,
|
||||
"duration_s": 20.0,
|
||||
"request_timeout_s": 2.0,
|
||||
"action": {
|
||||
"command": "env TARGET_INSTANCE_ID=c22f6c11ca32 scripts/stop-one.sh",
|
||||
"started_s": 5.004,
|
||||
"finished_s": 8.539,
|
||||
"exit_code": 0
|
||||
},
|
||||
"baseline_ok_rps": 466.5,
|
||||
"overall_ok_rps": 243.8,
|
||||
"requests_ok": 4876,
|
||||
"errors_total": 0,
|
||||
"error_rate": 0.0,
|
||||
"errors_by_kind": {},
|
||||
"error_window_s": null,
|
||||
"recovery_s": 0.0,
|
||||
"post_action_ok_rps": 153.2,
|
||||
"capacity_ratio": 0.33,
|
||||
"latency_ok_ms": {
|
||||
"p50": 5.5,
|
||||
"p95": 78.0,
|
||||
"p99": 94.5
|
||||
},
|
||||
"target_instance": "c22f6c11ca32",
|
||||
"target_last_seen_s": 0.901,
|
||||
"lb_events": [
|
||||
{
|
||||
"t": 0.91,
|
||||
"server": "api2",
|
||||
"addr": "172.25.0.6:8080",
|
||||
"from": "UP",
|
||||
"to": "DOWN"
|
||||
},
|
||||
{
|
||||
"t": 4.62,
|
||||
"server": "api2",
|
||||
"addr": "",
|
||||
"from": "DOWN",
|
||||
"to": "MAINT"
|
||||
}
|
||||
],
|
||||
"posts_retried_same_key": 0,
|
||||
"confirmed_messages": 2439,
|
||||
"history_messages": 2439,
|
||||
"lost_confirmed": 0,
|
||||
"duplicate_ids": 0,
|
||||
"duplicate_texts": 0,
|
||||
"pass": true
|
||||
}
|
||||
PASS
|
||||
exit=0
|
||||
@@ -1,6 +1,6 @@
|
||||
# 2026-11-13T13:53:58Z make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
# 2026-11-13T18:05:08Z make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 3.718}
|
||||
{"observed_instances_before": 2, "successful_writes": 131, "failed_attempts": 0, "first_recovery_seconds": 4.165}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"rounds": 20,
|
||||
"parallel_per_burst": 16,
|
||||
"requests_total": 640,
|
||||
"status_counts": {
|
||||
"same_body": {
|
||||
"201": 320
|
||||
},
|
||||
"conflicting_body": {
|
||||
"409": 160,
|
||||
"201": 160
|
||||
}
|
||||
},
|
||||
"replicas_answered": 2,
|
||||
"requests_per_replica": [
|
||||
160,
|
||||
160
|
||||
],
|
||||
"messages_in_history": 40,
|
||||
"expected_messages": 40,
|
||||
"duplicates": 0,
|
||||
"problems": []
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
# 2026-11-13T18:14:44Z python3 student-tests/idempotency_concurrency.py --output evidence/idempotency-concurrency.json
|
||||
{
|
||||
"rounds": 20,
|
||||
"parallel_per_burst": 16,
|
||||
"requests_total": 640,
|
||||
"status_counts": {
|
||||
"same_body": {
|
||||
"201": 320
|
||||
},
|
||||
"conflicting_body": {
|
||||
"409": 160,
|
||||
"201": 160
|
||||
}
|
||||
},
|
||||
"replicas_answered": 2,
|
||||
"requests_per_replica": [
|
||||
160,
|
||||
160
|
||||
],
|
||||
"messages_in_history": 40,
|
||||
"expected_messages": 40,
|
||||
"duplicates": 0,
|
||||
"problems": []
|
||||
}
|
||||
PASS
|
||||
exit=0
|
||||
@@ -1,3 +1,3 @@
|
||||
# 2026-11-13T14:00:24Z docker compose exec -T janitor python /app/src/janitor.py --once --dry-run
|
||||
{"dry_run": true, "grace_seconds": 3600, "staging_retention_seconds": 86400, "abandoned_pending": 0, "staging_ready_cleaned": 0, "staging_failed_expired": 0, "orphan_objects": 0, "missing_objects": 0, "deleted_objects": 0, "deleted_rows": 0, "errors": 0, "rows_by_status": {"ready": 110, "failed": 2}, "jobs_by_status": {"ready": 110, "failed": 2}, "outbox_unpublished": 0, "abandoned_ids": [], "objects_total": 442, "objects_by_prefix": {"staging/": 2, "originals/": 0, "attachments/": 440}, "orphan_keys_sample": [], "missing_ids_sample": [], "duration_ms": 39.2}
|
||||
# 2026-11-13T18:15:37Z docker compose exec -T janitor python /app/src/janitor.py --once --dry-run
|
||||
{"dry_run": true, "grace_seconds": 3600, "staging_retention_seconds": 86400, "abandoned_pending": 0, "staging_ready_cleaned": 0, "staging_failed_expired": 0, "staging_skipped_changed": 0, "orphan_objects": 0, "missing_objects": 0, "deleted_objects": 0, "deleted_rows": 0, "errors": 0, "rows_by_status": {"ready": 98, "failed": 2}, "jobs_by_status": {"ready": 98, "failed": 2}, "outbox_unpublished": 0, "abandoned_ids": [], "staging_candidates": [], "objects_total": 393, "objects_by_prefix": {"staging/": 1, "originals/": 0, "attachments/": 392}, "orphan_keys_sample": [], "missing_ids_sample": [], "duration_ms": 98.1}
|
||||
exit=0
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"scenario": "janitor staging cleanup vs operator replay",
|
||||
"date_utc": "2026-11-13T17:53:11+00:00",
|
||||
"date_utc": "2026-11-13T18:13:17+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 18.13,
|
||||
"utc": "17:52:44.531",
|
||||
"t": 18.28,
|
||||
"utc": "18:12:49.407",
|
||||
"step": "three failed attachments prepared",
|
||||
"ids": [
|
||||
"8c358e55-93cd-4c94-b009-740edea9cbfd",
|
||||
"556e0db9-9aea-4c19-81bf-8bb613cb1acf",
|
||||
"d575d080-f819-4f4c-9b2f-4fa30ab055d8"
|
||||
"70937618-27be-4e96-8d66-bd2078e2bae4",
|
||||
"512f0444-a200-4dbd-9019-199135218806",
|
||||
"235fa5c6-a857-4b05-b6f5-73bde0a534d2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 26.93,
|
||||
"utc": "17:52:53.329",
|
||||
"t": 27.76,
|
||||
"utc": "18:12:58.879",
|
||||
"step": "C: janitor selected z, replay committed, janitor rechecked under lock and skipped -> ready",
|
||||
"attachment_id": "8c358e55-93cd-4c94-b009-740edea9cbfd",
|
||||
"attachment_id": "70937618-27be-4e96-8d66-bd2078e2bae4",
|
||||
"janitor_candidates_included_z": true,
|
||||
"replay": "replayed",
|
||||
"janitor_staging_skipped_changed": 1,
|
||||
@@ -42,19 +42,19 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 33.23,
|
||||
"utc": "17:52:59.629",
|
||||
"t": 33.71,
|
||||
"utc": "18:13:04.829",
|
||||
"step": "A: replay first -> janitor leaves it -> ready",
|
||||
"attachment_id": "556e0db9-9aea-4c19-81bf-8bb613cb1acf",
|
||||
"attachment_id": "512f0444-a200-4dbd-9019-199135218806",
|
||||
"replay": "replayed",
|
||||
"staging_object_present": true,
|
||||
"final": "ready"
|
||||
},
|
||||
{
|
||||
"t": 38.81,
|
||||
"utc": "17:53:05.210",
|
||||
"t": 39.48,
|
||||
"utc": "18:13:10.604",
|
||||
"step": "B: janitor first -> replay refused, no job without source",
|
||||
"attachment_id": "d575d080-f819-4f4c-9b2f-4fa30ab055d8",
|
||||
"attachment_id": "235fa5c6-a857-4b05-b6f5-73bde0a534d2",
|
||||
"janitor_staging_failed_expired": 1,
|
||||
"replay": "refused_staging_expired",
|
||||
"status": "failed",
|
||||
@@ -67,14 +67,14 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 45.41,
|
||||
"utc": "17:53:11.809",
|
||||
"t": 46.63,
|
||||
"utc": "18:13:17.756",
|
||||
"step": "workers restored to .env configuration"
|
||||
}
|
||||
],
|
||||
"results": {
|
||||
"C_janitor_selected_then_replay": {
|
||||
"attachment_id": "8c358e55-93cd-4c94-b009-740edea9cbfd",
|
||||
"attachment_id": "70937618-27be-4e96-8d66-bd2078e2bae4",
|
||||
"janitor_candidates_included_z": true,
|
||||
"replay": "replayed",
|
||||
"janitor_staging_skipped_changed": 1,
|
||||
@@ -100,13 +100,13 @@
|
||||
]
|
||||
},
|
||||
"A_replay_then_janitor": {
|
||||
"attachment_id": "556e0db9-9aea-4c19-81bf-8bb613cb1acf",
|
||||
"attachment_id": "512f0444-a200-4dbd-9019-199135218806",
|
||||
"replay": "replayed",
|
||||
"staging_object_present": true,
|
||||
"final": "ready"
|
||||
},
|
||||
"B_janitor_then_replay": {
|
||||
"attachment_id": "d575d080-f819-4f4c-9b2f-4fa30ab055d8",
|
||||
"attachment_id": "235fa5c6-a857-4b05-b6f5-73bde0a534d2",
|
||||
"janitor_staging_failed_expired": 1,
|
||||
"replay": "refused_staging_expired",
|
||||
"status": "failed",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# 2026-11-13T18:12:31Z python3 student-tests/janitor_replay_race.py --output evidence/janitor-replay-race.json
|
||||
[ 18.28s] three failed attachments prepared {"ids": ["70937618-27be-4e96-8d66-bd2078e2bae4", "512f0444-a200-4dbd-9019-199135218806", "235fa5c6-a857-4b05-b6f5-73bde0a534d2"]}
|
||||
[ 27.76s] C: janitor selected z, replay committed, janitor rechecked under lock and skipped -> ready {"attachment_id": "70937618-27be-4e96-8d66-bd2078e2bae4", "janitor_candidates_included_z": true, "replay": "replayed", "janitor_staging_skipped_changed": 1, "janitor_staging_failed_expired": 0, "final": "ready", "janitor_released_staging": false, "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "failed", "replayed", "claimed", "ready", "staging_deleted"]}
|
||||
[ 33.71s] A: replay first -> janitor leaves it -> ready {"attachment_id": "512f0444-a200-4dbd-9019-199135218806", "replay": "replayed", "staging_object_present": true, "final": "ready"}
|
||||
[ 39.48s] B: janitor first -> replay refused, no job without source {"attachment_id": "235fa5c6-a857-4b05-b6f5-73bde0a534d2", "janitor_staging_failed_expired": 1, "replay": "refused_staging_expired", "status": "failed", "staging_key": null, "staging_objects": [], "events": ["claimed", "failed", "staging_released"]}
|
||||
[ 46.63s] workers restored to .env configuration
|
||||
PASS: janitor cleanup and replay never lose the source of accepted work
|
||||
exit=0
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"scenario": "lease expiry of a frozen worker and fencing of its late result",
|
||||
"date_utc": "2026-11-13T13:59:30+00:00",
|
||||
"date_utc": "2026-11-13T18:10:58+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 7.38,
|
||||
"utc": "13:58:53.350",
|
||||
"t": 7.59,
|
||||
"utc": "18:10:21.447",
|
||||
"step": "workers recreated",
|
||||
"env": {
|
||||
"WORKER_FAULT_INJECTION": "1",
|
||||
@@ -12,37 +12,37 @@
|
||||
"FAULT_SLOW_SECONDS": "25"
|
||||
},
|
||||
"workers": [
|
||||
"3c4ac216bda3",
|
||||
"39a586ee07d0"
|
||||
"7325c407e2d0",
|
||||
"c055ab232419"
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 8.17,
|
||||
"utc": "13:58:54.136",
|
||||
"t": 8.38,
|
||||
"utc": "18:10:22.235",
|
||||
"step": "claimed",
|
||||
"attachment_id": "853b9368-075d-433e-aaf5-1c018dd46b6c",
|
||||
"lease_owner": "39a586ee07d0:84ac209d",
|
||||
"lease_until": "2026-11-13T13:59:03.380939Z"
|
||||
},
|
||||
{
|
||||
"t": 17.01,
|
||||
"utc": "13:59:02.977",
|
||||
"step": "long-running job keeps its lease (heartbeat)",
|
||||
"lease_until": "2026-11-13T13:59:10.077947Z",
|
||||
"status": "processing"
|
||||
"attachment_id": "f831eeec-2b0c-4b28-bfdb-7de91a2b42a4",
|
||||
"lease_owner": "7325c407e2d0:a1ee654d",
|
||||
"lease_until": "2026-11-13T18:10:31.468055Z"
|
||||
},
|
||||
{
|
||||
"t": 17.17,
|
||||
"utc": "13:59:03.142",
|
||||
"step": "owner container paused (frozen, no heartbeat)",
|
||||
"container": "39a586ee07d0"
|
||||
"utc": "18:10:31.030",
|
||||
"step": "long-running job keeps its lease (heartbeat)",
|
||||
"lease_until": "2026-11-13T18:10:38.165011Z",
|
||||
"status": "processing"
|
||||
},
|
||||
{
|
||||
"t": 43.13,
|
||||
"utc": "13:59:29.103",
|
||||
"t": 17.33,
|
||||
"utc": "18:10:31.188",
|
||||
"step": "owner container paused (frozen, no heartbeat)",
|
||||
"container": "7325c407e2d0"
|
||||
},
|
||||
{
|
||||
"t": 43.46,
|
||||
"utc": "18:10:57.318",
|
||||
"step": "lease expired -> requeued -> other worker finished",
|
||||
"seconds_after_pause": 25.1,
|
||||
"new_owner": "3c4ac216bda3:3f11a69c",
|
||||
"seconds_after_pause": 25.3,
|
||||
"new_owner": "c055ab232419:f0ea5fce",
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -55,13 +55,13 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 43.18,
|
||||
"utc": "13:59:29.152",
|
||||
"t": 43.49,
|
||||
"utc": "18:10:57.352",
|
||||
"step": "owner container unpaused"
|
||||
},
|
||||
{
|
||||
"t": 44.04,
|
||||
"utc": "13:59:30.005",
|
||||
"t": 44.39,
|
||||
"utc": "18:10:58.251",
|
||||
"step": "late worker fenced, result unchanged",
|
||||
"events": [
|
||||
"enqueued",
|
||||
@@ -89,75 +89,75 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"attachment_id": "853b9368-075d-433e-aaf5-1c018dd46b6c",
|
||||
"paused_container": "39a586ee07d0",
|
||||
"attachment_id": "f831eeec-2b0c-4b28-bfdb-7de91a2b42a4",
|
||||
"paused_container": "7325c407e2d0",
|
||||
"events": [
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:58:53.369257Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:21.458460Z",
|
||||
"event": "enqueued",
|
||||
"attempt": 1,
|
||||
"actor": "api",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:58:53.384267Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:21.470443Z",
|
||||
"event": "claimed",
|
||||
"attempt": 1,
|
||||
"actor": "39a586ee07d0:84ac209d",
|
||||
"actor": "7325c407e2d0:a1ee654d",
|
||||
"detail": {
|
||||
"redelivered_message_attempt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:13.472919Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:40.525850Z",
|
||||
"event": "lease_expired",
|
||||
"attempt": 1,
|
||||
"actor": "reaper:e3d84e7b1100:1b42ad54",
|
||||
"actor": "reaper:bed082b70113:2093a990",
|
||||
"detail": {
|
||||
"lease_owner": "39a586ee07d0:84ac209d"
|
||||
"lease_owner": "7325c407e2d0:a1ee654d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:13.479987Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:40.527592Z",
|
||||
"event": "requeued_after_lease",
|
||||
"attempt": 1,
|
||||
"actor": "reaper:e3d84e7b1100:1b42ad54",
|
||||
"actor": "reaper:bed082b70113:2093a990",
|
||||
"detail": {
|
||||
"error_code": "lease_expired",
|
||||
"next_attempt": 2,
|
||||
"delay_seconds": 1.87
|
||||
"delay_seconds": 1.419
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:28.041721Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:56.226456Z",
|
||||
"event": "claimed",
|
||||
"attempt": 2,
|
||||
"actor": "3c4ac216bda3:3f11a69c",
|
||||
"actor": "c055ab232419:f0ea5fce",
|
||||
"detail": {
|
||||
"redelivered_message_attempt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:28.042827Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:56.227746Z",
|
||||
"event": "busy_ignored",
|
||||
"attempt": 2,
|
||||
"actor": "3c4ac216bda3:3f11a69c",
|
||||
"actor": "c055ab232419:f0ea5fce",
|
||||
"detail": {
|
||||
"lease_owner": "3c4ac216bda3:3f11a69c"
|
||||
"lease_owner": "c055ab232419:f0ea5fce"
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:28.181171Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:56.353881Z",
|
||||
"event": "ready",
|
||||
"attempt": 2,
|
||||
"actor": "3c4ac216bda3:3f11a69c",
|
||||
"actor": "c055ab232419:f0ea5fce",
|
||||
"detail": {
|
||||
"variants": {
|
||||
"crop": [
|
||||
@@ -176,19 +176,19 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:28.182433Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:56.354941Z",
|
||||
"event": "staging_deleted",
|
||||
"attempt": 2,
|
||||
"actor": "3c4ac216bda3:3f11a69c",
|
||||
"actor": "c055ab232419:f0ea5fce",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"job_id": "a8e26f22-aedd-4404-b4bd-74cbda19a2d7",
|
||||
"at": "2026-11-13T13:59:29.145023Z",
|
||||
"job_id": "de891018-23fb-4315-8437-8045c89a41a2",
|
||||
"at": "2026-11-13T18:10:57.343005Z",
|
||||
"event": "aborted_lease_lost",
|
||||
"attempt": 1,
|
||||
"actor": "39a586ee07d0:84ac209d",
|
||||
"actor": "7325c407e2d0:a1ee654d",
|
||||
"detail": null
|
||||
}
|
||||
],
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# 2026-11-13T13:58:45Z python3 student-tests/lease_takeover.py --output evidence/lease-takeover.json
|
||||
[ 7.38s] workers recreated {"env": {"WORKER_FAULT_INJECTION": "1", "JOB_LEASE_SECONDS": "10", "FAULT_SLOW_SECONDS": "25"}, "workers": ["3c4ac216bda3", "39a586ee07d0"]}
|
||||
[ 8.17s] claimed {"attachment_id": "853b9368-075d-433e-aaf5-1c018dd46b6c", "lease_owner": "39a586ee07d0:84ac209d", "lease_until": "2026-11-13T13:59:03.380939Z"}
|
||||
[ 17.01s] long-running job keeps its lease (heartbeat) {"lease_until": "2026-11-13T13:59:10.077947Z", "status": "processing"}
|
||||
[ 17.17s] owner container paused (frozen, no heartbeat) {"container": "39a586ee07d0"}
|
||||
[ 43.13s] lease expired -> requeued -> other worker finished {"seconds_after_pause": 25.1, "new_owner": "3c4ac216bda3:3f11a69c", "events": ["enqueued", "claimed", "lease_expired", "requeued_after_lease", "claimed", "busy_ignored", "ready", "staging_deleted"]}
|
||||
[ 43.18s] owner container unpaused
|
||||
[ 44.04s] late worker fenced, result unchanged {"events": ["enqueued", "claimed", "lease_expired", "requeued_after_lease", "claimed", "busy_ignored", "ready", "staging_deleted", "aborted_lease_lost"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
# 2026-11-13T18:10:13Z python3 student-tests/lease_takeover.py --output evidence/lease-takeover.json
|
||||
[ 7.59s] workers recreated {"env": {"WORKER_FAULT_INJECTION": "1", "JOB_LEASE_SECONDS": "10", "FAULT_SLOW_SECONDS": "25"}, "workers": ["7325c407e2d0", "c055ab232419"]}
|
||||
[ 8.38s] claimed {"attachment_id": "f831eeec-2b0c-4b28-bfdb-7de91a2b42a4", "lease_owner": "7325c407e2d0:a1ee654d", "lease_until": "2026-11-13T18:10:31.468055Z"}
|
||||
[ 17.17s] long-running job keeps its lease (heartbeat) {"lease_until": "2026-11-13T18:10:38.165011Z", "status": "processing"}
|
||||
[ 17.33s] owner container paused (frozen, no heartbeat) {"container": "7325c407e2d0"}
|
||||
[ 43.46s] lease expired -> requeued -> other worker finished {"seconds_after_pause": 25.3, "new_owner": "c055ab232419:f0ea5fce", "events": ["enqueued", "claimed", "lease_expired", "requeued_after_lease", "claimed", "busy_ignored", "ready", "staging_deleted"]}
|
||||
[ 43.49s] owner container unpaused
|
||||
[ 44.39s] late worker fenced, result unchanged {"events": ["enqueued", "claimed", "lease_expired", "requeued_after_lease", "claimed", "busy_ignored", "ready", "staging_deleted", "aborted_lease_lost"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
PASS: frozen worker loses lease, job recovered, late result fenced
|
||||
exit=0
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"parallel": 24,
|
||||
"duration_s": 20.0,
|
||||
"flood_statuses": {
|
||||
"429": 77819,
|
||||
"401": 11,
|
||||
"503": 4
|
||||
},
|
||||
"flood_rps": 3890.2,
|
||||
"flood_503_with_retry_after": "4/4",
|
||||
"victim_statuses": {
|
||||
"200": 300
|
||||
},
|
||||
"victim_error_rate": 0.0,
|
||||
"non_contract_error_bodies": {},
|
||||
"containers_before": {
|
||||
"mtusi-lab5-fresh-api-3": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:17.761107584Z"
|
||||
},
|
||||
"mtusi-lab5-fresh-api-4": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:27.014695838Z"
|
||||
}
|
||||
},
|
||||
"containers_after": {
|
||||
"mtusi-lab5-fresh-api-3": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:17.761107584Z"
|
||||
},
|
||||
"mtusi-lab5-fresh-api-4": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:27.014695838Z"
|
||||
}
|
||||
},
|
||||
"oom_events": {},
|
||||
"restarted": [],
|
||||
"pass": true
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
# 2026-11-13T18:15:41Z python3 student-tests/login_flood.py --output evidence/login-flood.json
|
||||
{
|
||||
"parallel": 24,
|
||||
"duration_s": 20.0,
|
||||
"flood_statuses": {
|
||||
"429": 77819,
|
||||
"401": 11,
|
||||
"503": 4
|
||||
},
|
||||
"flood_rps": 3890.2,
|
||||
"flood_503_with_retry_after": "4/4",
|
||||
"victim_statuses": {
|
||||
"200": 300
|
||||
},
|
||||
"victim_error_rate": 0.0,
|
||||
"non_contract_error_bodies": {},
|
||||
"containers_before": {
|
||||
"mtusi-lab5-fresh-api-3": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:17.761107584Z"
|
||||
},
|
||||
"mtusi-lab5-fresh-api-4": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:27.014695838Z"
|
||||
}
|
||||
},
|
||||
"containers_after": {
|
||||
"mtusi-lab5-fresh-api-3": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:17.761107584Z"
|
||||
},
|
||||
"mtusi-lab5-fresh-api-4": {
|
||||
"status": "running",
|
||||
"oom_killed": false,
|
||||
"restart_count": 0,
|
||||
"started_at": "2026-11-13T18:15:27.014695838Z"
|
||||
}
|
||||
},
|
||||
"oom_events": {},
|
||||
"restarted": [],
|
||||
"pass": true
|
||||
}
|
||||
exit=0
|
||||
+56
-56
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"scenario": "outbox: COMMIT/publish gap and API crash windows",
|
||||
"date_utc": "2026-11-13T13:58:45+00:00",
|
||||
"date_utc": "2026-11-13T18:10:13+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 5.47,
|
||||
"utc": "13:57:20.717",
|
||||
"t": 5.58,
|
||||
"utc": "18:08:49.620",
|
||||
"step": "A: relay stopped, upload 202",
|
||||
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
|
||||
"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738",
|
||||
"outbox": [
|
||||
{
|
||||
"id": 98,
|
||||
"id": 34,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:16.395116Z",
|
||||
"created_at": "2026-11-13T13:57:16.395116Z",
|
||||
"available_at": "2026-11-13T18:08:45.257829Z",
|
||||
"created_at": "2026-11-13T18:08:45.257829Z",
|
||||
"published_at": null,
|
||||
"publish_count": 0
|
||||
}
|
||||
@@ -25,10 +25,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 12.08,
|
||||
"utc": "13:57:27.326",
|
||||
"t": 12.14,
|
||||
"utc": "18:08:56.187",
|
||||
"step": "A: relay started -> ready, same single job",
|
||||
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
|
||||
"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738",
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -37,11 +37,11 @@
|
||||
],
|
||||
"outbox": [
|
||||
{
|
||||
"id": 98,
|
||||
"id": 34,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:16.395116Z",
|
||||
"created_at": "2026-11-13T13:57:16.395116Z",
|
||||
"published_at": "2026-11-13T13:57:22.711861Z",
|
||||
"available_at": "2026-11-13T18:08:45.257829Z",
|
||||
"created_at": "2026-11-13T18:08:45.257829Z",
|
||||
"published_at": "2026-11-13T18:08:51.598785Z",
|
||||
"publish_count": 1
|
||||
}
|
||||
],
|
||||
@@ -61,10 +61,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 21.46,
|
||||
"utc": "13:57:36.707",
|
||||
"t": 21.05,
|
||||
"utc": "18:09:05.089",
|
||||
"step": "B: relay crashed between COMMIT and publish -> restarted -> ready",
|
||||
"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f",
|
||||
"attachment_id": "fe8bf90c-da25-421a-8b78-157edf749a41",
|
||||
"relay_restart_count": [
|
||||
[
|
||||
0
|
||||
@@ -81,11 +81,11 @@
|
||||
],
|
||||
"outbox": [
|
||||
{
|
||||
"id": 99,
|
||||
"id": 35,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:33.691351Z",
|
||||
"created_at": "2026-11-13T13:57:33.691351Z",
|
||||
"published_at": "2026-11-13T13:57:35.220697Z",
|
||||
"available_at": "2026-11-13T18:09:02.520223Z",
|
||||
"created_at": "2026-11-13T18:09:02.520223Z",
|
||||
"published_at": "2026-11-13T18:09:03.849052Z",
|
||||
"publish_count": 1
|
||||
}
|
||||
],
|
||||
@@ -104,10 +104,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 31.05,
|
||||
"utc": "13:57:46.295",
|
||||
"t": 30.69,
|
||||
"utc": "18:09:14.735",
|
||||
"step": "C: published twice (crash before marking) -> duplicate is a no-op",
|
||||
"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5",
|
||||
"attachment_id": "93c21e96-2f17-4393-ae07-832a4ed7998b",
|
||||
"relay_restart_count": [
|
||||
1
|
||||
],
|
||||
@@ -120,11 +120,11 @@
|
||||
],
|
||||
"outbox": [
|
||||
{
|
||||
"id": 100,
|
||||
"id": 36,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:43.223035Z",
|
||||
"created_at": "2026-11-13T13:57:43.223035Z",
|
||||
"published_at": "2026-11-13T13:57:44.693510Z",
|
||||
"available_at": "2026-11-13T18:09:11.699309Z",
|
||||
"created_at": "2026-11-13T18:09:11.699309Z",
|
||||
"published_at": "2026-11-13T18:09:13.034424Z",
|
||||
"publish_count": 1
|
||||
}
|
||||
],
|
||||
@@ -143,10 +143,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 56.68,
|
||||
"utc": "13:58:11.927",
|
||||
"t": 55.99,
|
||||
"utc": "18:09:40.030",
|
||||
"step": "D: API died after COMMIT before 202 -> work still completed",
|
||||
"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be",
|
||||
"attachment_id": "cef3cc48-5442-4a35-af41-f2b47ab32dd8",
|
||||
"client_saw": {
|
||||
"http": 502,
|
||||
"x_instance_id": null,
|
||||
@@ -173,10 +173,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 65.79,
|
||||
"utc": "13:58:21.034",
|
||||
"t": 65.06,
|
||||
"utc": "18:09:49.101",
|
||||
"step": "E: API died after staging before COMMIT",
|
||||
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
|
||||
"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7",
|
||||
"client_saw": {
|
||||
"http": 502,
|
||||
"x_instance_id": null,
|
||||
@@ -187,10 +187,10 @@
|
||||
"api_get": 404
|
||||
},
|
||||
{
|
||||
"t": 74.22,
|
||||
"utc": "13:58:29.474",
|
||||
"t": 74.28,
|
||||
"utc": "18:09:58.321",
|
||||
"step": "E: janitor removed pending row and staging object",
|
||||
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
|
||||
"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7",
|
||||
"janitor_dry_run": {
|
||||
"abandoned_pending": 1,
|
||||
"orphan_objects": 0,
|
||||
@@ -207,14 +207,14 @@
|
||||
"row_gone": true
|
||||
},
|
||||
{
|
||||
"t": 90.61,
|
||||
"utc": "13:58:45.855",
|
||||
"t": 89.69,
|
||||
"utc": "18:10:13.734",
|
||||
"step": "relay and api restored to .env configuration"
|
||||
}
|
||||
],
|
||||
"results": {
|
||||
"A": {
|
||||
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
|
||||
"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738",
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -223,11 +223,11 @@
|
||||
],
|
||||
"outbox": [
|
||||
{
|
||||
"id": 98,
|
||||
"id": 34,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:16.395116Z",
|
||||
"created_at": "2026-11-13T13:57:16.395116Z",
|
||||
"published_at": "2026-11-13T13:57:22.711861Z",
|
||||
"available_at": "2026-11-13T18:08:45.257829Z",
|
||||
"created_at": "2026-11-13T18:08:45.257829Z",
|
||||
"published_at": "2026-11-13T18:08:51.598785Z",
|
||||
"publish_count": 1
|
||||
}
|
||||
],
|
||||
@@ -247,7 +247,7 @@
|
||||
}
|
||||
},
|
||||
"B": {
|
||||
"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f",
|
||||
"attachment_id": "fe8bf90c-da25-421a-8b78-157edf749a41",
|
||||
"relay_restart_count": [
|
||||
[
|
||||
0
|
||||
@@ -264,11 +264,11 @@
|
||||
],
|
||||
"outbox": [
|
||||
{
|
||||
"id": 99,
|
||||
"id": 35,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:33.691351Z",
|
||||
"created_at": "2026-11-13T13:57:33.691351Z",
|
||||
"published_at": "2026-11-13T13:57:35.220697Z",
|
||||
"available_at": "2026-11-13T18:09:02.520223Z",
|
||||
"created_at": "2026-11-13T18:09:02.520223Z",
|
||||
"published_at": "2026-11-13T18:09:03.849052Z",
|
||||
"publish_count": 1
|
||||
}
|
||||
],
|
||||
@@ -287,7 +287,7 @@
|
||||
}
|
||||
},
|
||||
"C": {
|
||||
"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5",
|
||||
"attachment_id": "93c21e96-2f17-4393-ae07-832a4ed7998b",
|
||||
"relay_restart_count": [
|
||||
1
|
||||
],
|
||||
@@ -300,11 +300,11 @@
|
||||
],
|
||||
"outbox": [
|
||||
{
|
||||
"id": 100,
|
||||
"id": 36,
|
||||
"attempt": "1",
|
||||
"available_at": "2026-11-13T13:57:43.223035Z",
|
||||
"created_at": "2026-11-13T13:57:43.223035Z",
|
||||
"published_at": "2026-11-13T13:57:44.693510Z",
|
||||
"available_at": "2026-11-13T18:09:11.699309Z",
|
||||
"created_at": "2026-11-13T18:09:11.699309Z",
|
||||
"published_at": "2026-11-13T18:09:13.034424Z",
|
||||
"publish_count": 1
|
||||
}
|
||||
],
|
||||
@@ -323,7 +323,7 @@
|
||||
}
|
||||
},
|
||||
"D": {
|
||||
"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be",
|
||||
"attachment_id": "cef3cc48-5442-4a35-af41-f2b47ab32dd8",
|
||||
"client_saw": {
|
||||
"http": 502,
|
||||
"x_instance_id": null,
|
||||
@@ -350,7 +350,7 @@
|
||||
}
|
||||
},
|
||||
"E": {
|
||||
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
|
||||
"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7",
|
||||
"janitor_dry_run": {
|
||||
"abandoned_pending": 1,
|
||||
"orphan_objects": 0,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# 2026-11-13T13:57:15Z python3 student-tests/outbox_gap.py --output evidence/outbox-gap.json
|
||||
[ 5.47s] A: relay stopped, upload 202 {"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4", "outbox": [{"id": 98, "attempt": "1", "available_at": "2026-11-13T13:57:16.395116Z", "created_at": "2026-11-13T13:57:16.395116Z", "published_at": null, "publish_count": 0}], "queue": {"messages": 0, "messages_ready": 0, "messages_unacknowledged": 0, "consumers": 4}}
|
||||
[ 12.08s] A: relay started -> ready, same single job {"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4", "events": ["enqueued", "claimed", "ready", "staging_deleted"], "outbox": [{"id": 98, "attempt": "1", "available_at": "2026-11-13T13:57:16.395116Z", "created_at": "2026-11-13T13:57:16.395116Z", "published_at": "2026-11-13T13:57:22.711861Z", "publish_count": 1}], "jobs": 1, "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 21.46s] B: relay crashed between COMMIT and publish -> restarted -> ready {"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f", "relay_restart_count": [[0], [1]], "events": ["enqueued", "claimed", "ready", "staging_deleted"], "outbox": [{"id": 99, "attempt": "1", "available_at": "2026-11-13T13:57:33.691351Z", "created_at": "2026-11-13T13:57:33.691351Z", "published_at": "2026-11-13T13:57:35.220697Z", "publish_count": 1}], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 31.05s] C: published twice (crash before marking) -> duplicate is a no-op {"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5", "relay_restart_count": [1], "events": ["enqueued", "claimed", "ready", "staging_deleted", "duplicate_ignored"], "outbox": [{"id": 100, "attempt": "1", "available_at": "2026-11-13T13:57:43.223035Z", "created_at": "2026-11-13T13:57:43.223035Z", "published_at": "2026-11-13T13:57:44.693510Z", "publish_count": 1}], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 56.68s] D: API died after COMMIT before 202 -> work still completed {"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be", "client_saw": {"http": 502, "x_instance_id": null, "error_code": "unavailable"}, "events": ["enqueued", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 65.79s] E: API died after staging before COMMIT {"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73", "client_saw": {"http": 502, "x_instance_id": null, "error_code": "unavailable"}, "status": "pending", "jobs": 0, "api_get": 404}
|
||||
[ 74.22s] E: janitor removed pending row and staging object {"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73", "janitor_dry_run": {"abandoned_pending": 1, "orphan_objects": 0, "deleted_objects": 0, "deleted_rows": 0}, "janitor": {"abandoned_pending": 1, "orphan_objects": 0, "deleted_objects": 1, "deleted_rows": 1, "missing_objects": 0}, "row_gone": true}
|
||||
[ 90.61s] relay and api restored to .env configuration
|
||||
# 2026-11-13T18:08:43Z python3 student-tests/outbox_gap.py --output evidence/outbox-gap.json
|
||||
[ 5.58s] A: relay stopped, upload 202 {"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738", "outbox": [{"id": 34, "attempt": "1", "available_at": "2026-11-13T18:08:45.257829Z", "created_at": "2026-11-13T18:08:45.257829Z", "published_at": null, "publish_count": 0}], "queue": {"messages": 0, "messages_ready": 0, "messages_unacknowledged": 0, "consumers": 4}}
|
||||
[ 12.14s] A: relay started -> ready, same single job {"attachment_id": "fc2ea4ee-a3c2-42c6-873d-b813ee626738", "events": ["enqueued", "claimed", "ready", "staging_deleted"], "outbox": [{"id": 34, "attempt": "1", "available_at": "2026-11-13T18:08:45.257829Z", "created_at": "2026-11-13T18:08:45.257829Z", "published_at": "2026-11-13T18:08:51.598785Z", "publish_count": 1}], "jobs": 1, "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 21.05s] B: relay crashed between COMMIT and publish -> restarted -> ready {"attachment_id": "fe8bf90c-da25-421a-8b78-157edf749a41", "relay_restart_count": [[0], [1]], "events": ["enqueued", "claimed", "ready", "staging_deleted"], "outbox": [{"id": 35, "attempt": "1", "available_at": "2026-11-13T18:09:02.520223Z", "created_at": "2026-11-13T18:09:02.520223Z", "published_at": "2026-11-13T18:09:03.849052Z", "publish_count": 1}], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 30.69s] C: published twice (crash before marking) -> duplicate is a no-op {"attachment_id": "93c21e96-2f17-4393-ae07-832a4ed7998b", "relay_restart_count": [1], "events": ["enqueued", "claimed", "ready", "staging_deleted", "duplicate_ignored"], "outbox": [{"id": 36, "attempt": "1", "available_at": "2026-11-13T18:09:11.699309Z", "created_at": "2026-11-13T18:09:11.699309Z", "published_at": "2026-11-13T18:09:13.034424Z", "publish_count": 1}], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 55.99s] D: API died after COMMIT before 202 -> work still completed {"attachment_id": "cef3cc48-5442-4a35-af41-f2b47ab32dd8", "client_saw": {"http": 502, "x_instance_id": null, "error_code": "unavailable"}, "events": ["enqueued", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 65.06s] E: API died after staging before COMMIT {"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7", "client_saw": {"http": 502, "x_instance_id": null, "error_code": "unavailable"}, "status": "pending", "jobs": 0, "api_get": 404}
|
||||
[ 74.28s] E: janitor removed pending row and staging object {"attachment_id": "6e0a7ed1-44c8-4485-923a-bd2fb20d00a7", "janitor_dry_run": {"abandoned_pending": 1, "orphan_objects": 0, "deleted_objects": 0, "deleted_rows": 0}, "janitor": {"abandoned_pending": 1, "orphan_objects": 0, "deleted_objects": 1, "deleted_rows": 1, "missing_objects": 0}, "row_gone": true}
|
||||
[ 89.69s] relay and api restored to .env configuration
|
||||
PASS: outbox closes COMMIT/publish gap; API crash windows handled
|
||||
exit=0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T13:53:09Z make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
# 2026-11-13T18:04:20Z make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"bytes": 824851,
|
||||
"status": 202,
|
||||
"seconds": 0.37,
|
||||
"instance": "1412199c46a5",
|
||||
"id": "55a33e4f-a23c-455c-8138-1cba7063aeae",
|
||||
"instance": "ebd193448b9a",
|
||||
"id": "7d1dc779-88c5-4e73-ad4e-1a330242d9fb",
|
||||
"error": null,
|
||||
"ready": true
|
||||
},
|
||||
@@ -16,9 +16,9 @@
|
||||
"kind": "progressive_444",
|
||||
"bytes": 819143,
|
||||
"status": 202,
|
||||
"seconds": 0.72,
|
||||
"instance": "5c4e29dc6a58",
|
||||
"id": "7252c912-b911-49b4-bf2e-c228f37afdd8",
|
||||
"seconds": 0.42,
|
||||
"instance": "13ba2067299a",
|
||||
"id": "677223ed-cf05-4fdc-b5f3-01d4c174adbd",
|
||||
"error": null,
|
||||
"ready": true
|
||||
},
|
||||
@@ -26,9 +26,9 @@
|
||||
"kind": "progressive_444",
|
||||
"bytes": 939182,
|
||||
"status": 202,
|
||||
"seconds": 1.21,
|
||||
"instance": "5c4e29dc6a58",
|
||||
"id": "4d4b8fe4-d4a5-4673-9281-463c05f003ec",
|
||||
"seconds": 0.89,
|
||||
"instance": "ebd193448b9a",
|
||||
"id": "c687f0d9-c83b-442e-8964-c4963a220dc3",
|
||||
"error": null,
|
||||
"ready": true
|
||||
},
|
||||
@@ -36,9 +36,9 @@
|
||||
"kind": "progressive_444",
|
||||
"bytes": 938143,
|
||||
"status": 202,
|
||||
"seconds": 0.8,
|
||||
"instance": "1412199c46a5",
|
||||
"id": "1ed6599a-bbf6-41c4-9a72-23ed98b88db4",
|
||||
"seconds": 0.94,
|
||||
"instance": "13ba2067299a",
|
||||
"id": "041b2d0e-2bf1-43af-83fe-4150270f440d",
|
||||
"error": null,
|
||||
"ready": true
|
||||
},
|
||||
@@ -46,9 +46,9 @@
|
||||
"kind": "progressive_420",
|
||||
"bytes": 530758,
|
||||
"status": 202,
|
||||
"seconds": 0.32,
|
||||
"instance": "5c4e29dc6a58",
|
||||
"id": "9fc3d589-53d4-47f0-9288-50a9e3429263",
|
||||
"seconds": 1.2,
|
||||
"instance": "ebd193448b9a",
|
||||
"id": "445c4b64-452c-400b-aaf3-5b3d592662d3",
|
||||
"error": null,
|
||||
"ready": true
|
||||
},
|
||||
@@ -56,9 +56,9 @@
|
||||
"kind": "baseline",
|
||||
"bytes": 883286,
|
||||
"status": 202,
|
||||
"seconds": 0.99,
|
||||
"instance": "1412199c46a5",
|
||||
"id": "46bbe758-23f8-41d1-bccb-fb829fcc005d",
|
||||
"seconds": 1.17,
|
||||
"instance": "13ba2067299a",
|
||||
"id": "4824c16e-e713-483a-b1da-341a9960eecb",
|
||||
"error": null,
|
||||
"ready": true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# 2026-11-13T18:13:17Z .venv/bin/python student-tests/queue_contract_check.py --output evidence/queue-contract-check.json
|
||||
PASS valid minimal schema=True parser=True
|
||||
PASS valid with trace context schema=True parser=True
|
||||
PASS valid created_at with offset and fraction schema=True parser=True
|
||||
PASS schema_version true (audit) schema=False parser=False
|
||||
PASS created_at date only (audit) schema=False parser=False
|
||||
PASS traceparent number (audit) schema=False parser=False
|
||||
PASS tracestate 513 chars (audit) schema=False parser=False
|
||||
PASS attempt true schema=False parser=False
|
||||
PASS attempt 0 schema=False parser=False
|
||||
PASS pipeline_version 1.0 schema=True parser=True
|
||||
PASS job_id not uuid schema=False parser=False
|
||||
PASS job_id uuid without hyphens schema=False parser=False
|
||||
PASS extra field schema=False parser=False
|
||||
PASS missing created_at schema=False parser=False
|
||||
PASS wrong type schema=False parser=False
|
||||
PASS traceparent bad version schema=False parser=False
|
||||
PASS created_at no timezone schema=False parser=False
|
||||
PASS F11 api with PIPELINE_VERSION=2 refuses to start: {'exit_code': 1, 'message': ['PIPELINE_VERSION=2 is not supported (supported: 1)']}
|
||||
PASS (17 cases, 0 mismatches, date-time format checked: True)
|
||||
exit=0
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T14:00:26Z docker compose exec -T broker rabbitmqctl -q -p messenger list_queues name type durable messages consumers
|
||||
# 2026-11-13T18:15:40Z docker compose exec -T broker rabbitmqctl -q -p messenger list_queues name type durable messages consumers
|
||||
name type durable messages consumers
|
||||
attachments.dlq quorum true 0 0
|
||||
attachments.process.v1 quorum true 0 4
|
||||
|
||||
+13
-13
@@ -1,15 +1,15 @@
|
||||
# 2026-11-13T17:56:27Z ./scripts/rolling-update.sh 2
|
||||
2026-11-13T17:56:28Z build version 2
|
||||
# 2026-11-13T18:15:14Z sh -c ./scripts/rolling-update.sh 2 && make test
|
||||
2026-11-13T18:15:15Z build version 2
|
||||
migrate Built
|
||||
2026-11-13T17:56:29Z migrate (once)
|
||||
2026-11-13 17:56:30,183 INFO migrations done; applied now: nothing
|
||||
2026-11-13T17:56:30Z replacing 2 replicas
|
||||
2026-11-13T17:56:36Z up mtusi-lab5-api-3 version=2 ip=172.23.0.12 UP in LB (UP slots: 4)
|
||||
2026-11-13T17:56:39Z gone mtusi-lab5-api-1 (graceful SIGTERM)
|
||||
2026-11-13T17:56:45Z up mtusi-lab5-api-4 version=2 ip=172.23.0.7 UP in LB (UP slots: 4)
|
||||
2026-11-13T17:56:49Z gone mtusi-lab5-api-2 (graceful SIGTERM)
|
||||
2026-11-13T17:56:49Z done: mtusi-lab5-api-3 mtusi-lab5-api-4
|
||||
2026-11-13T17:56:49Z verified: 10/10 responses via LB have X-App-Version=2
|
||||
exit=0
|
||||
# make test после обновления
|
||||
2026-11-13T18:15:15Z migrate (once)
|
||||
2026-11-13 18:15:17,160 INFO migrations done; applied now: nothing
|
||||
2026-11-13T18:15:17Z replacing 2 replicas
|
||||
2026-11-13T18:15:23Z up mtusi-lab5-fresh-api-3 version=2 ip=172.25.0.12 UP in LB (UP slots: 4)
|
||||
2026-11-13T18:15:26Z gone mtusi-lab5-fresh-api-1 (graceful SIGTERM)
|
||||
2026-11-13T18:15:32Z up mtusi-lab5-fresh-api-4 version=2 ip=172.25.0.6 UP in LB (UP slots: 4)
|
||||
2026-11-13T18:15:36Z gone mtusi-lab5-fresh-api-2 (graceful SIGTERM)
|
||||
2026-11-13T18:15:36Z done: mtusi-lab5-fresh-api-3 mtusi-lab5-fresh-api-4
|
||||
2026-11-13T18:15:36Z verified: 10/10 responses via LB have X-App-Version=2
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit=0
|
||||
|
||||
+38
-42
@@ -1,51 +1,51 @@
|
||||
{
|
||||
"scenario": "S3 outage: API answers 503 fast, accepted jobs retry and complete",
|
||||
"date_utc": "2026-11-13T17:58:27+00:00",
|
||||
"date_utc": "2026-11-13T18:14:17+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 2.04,
|
||||
"utc": "17:57:29.727",
|
||||
"t": 2.03,
|
||||
"utc": "18:13:21.275",
|
||||
"step": "worker stopped, job accepted before outage",
|
||||
"attachment_id": "19dac41c-4059-4326-8c97-93a0566b8979"
|
||||
"attachment_id": "6cdcfa17-a4bd-4764-8d3a-8a0fd6067d01"
|
||||
},
|
||||
{
|
||||
"t": 24.72,
|
||||
"utc": "17:57:52.405",
|
||||
"t": 24.4,
|
||||
"utc": "18:13:43.643",
|
||||
"step": "S3 `stop` for 5 s",
|
||||
"upload": {
|
||||
"status": 503,
|
||||
"ms": 14,
|
||||
"ms": 5,
|
||||
"code": "unavailable",
|
||||
"retry_after": "1"
|
||||
},
|
||||
"download_ready": {
|
||||
"status": 503,
|
||||
"ms": 10,
|
||||
"ms": 3,
|
||||
"code": "unavailable",
|
||||
"retry_after": "1"
|
||||
},
|
||||
"metadata_queued": {
|
||||
"status": 200,
|
||||
"ms": 6,
|
||||
"ms": 2,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"ms": 6,
|
||||
"ms": 4,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
},
|
||||
"ready": {
|
||||
"status": 200,
|
||||
"ms": 2,
|
||||
"ms": 1,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 25.83,
|
||||
"utc": "17:57:53.513",
|
||||
"t": 25.71,
|
||||
"utc": "18:13:44.952",
|
||||
"step": "worker meets S3 outage -> retry with backoff",
|
||||
"events": [
|
||||
"enqueued",
|
||||
@@ -56,19 +56,19 @@
|
||||
{
|
||||
"error_code": "storage_unavailable",
|
||||
"next_attempt": 2,
|
||||
"delay_seconds": 1.499
|
||||
"delay_seconds": 1.798
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 46.46,
|
||||
"utc": "17:58:14.145",
|
||||
"t": 45.24,
|
||||
"utc": "18:14:04.489",
|
||||
"step": "S3 `start` -> healthy",
|
||||
"seconds": 20.4
|
||||
"seconds": 19.3
|
||||
},
|
||||
{
|
||||
"t": 51.61,
|
||||
"utc": "17:58:19.296",
|
||||
"t": 50.39,
|
||||
"utc": "18:14:09.634",
|
||||
"step": "S3 `pause` for 5 s",
|
||||
"upload": {
|
||||
"status": 503,
|
||||
@@ -78,7 +78,7 @@
|
||||
},
|
||||
"download_ready": {
|
||||
"status": 503,
|
||||
"ms": 11,
|
||||
"ms": 10,
|
||||
"code": "unavailable",
|
||||
"retry_after": "1"
|
||||
},
|
||||
@@ -90,7 +90,7 @@
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"ms": 9,
|
||||
"ms": 10,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
},
|
||||
@@ -102,18 +102,18 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 57.47,
|
||||
"utc": "17:58:25.154",
|
||||
"t": 56.29,
|
||||
"utc": "18:14:15.540",
|
||||
"step": "S3 `unpause` -> healthy",
|
||||
"seconds": 5.7
|
||||
"seconds": 5.8
|
||||
},
|
||||
{
|
||||
"t": 58.24,
|
||||
"utc": "17:58:25.925",
|
||||
"t": 57.12,
|
||||
"utc": "18:14:16.368",
|
||||
"step": "job accepted before outage completed",
|
||||
"final": "ready",
|
||||
"replay": null,
|
||||
"attempts": 4,
|
||||
"attempts": 3,
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -121,15 +121,13 @@
|
||||
"claimed",
|
||||
"retry_scheduled",
|
||||
"claimed",
|
||||
"retry_scheduled",
|
||||
"claimed",
|
||||
"ready",
|
||||
"staging_deleted"
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 58.58,
|
||||
"utc": "17:58:26.262",
|
||||
"t": 57.47,
|
||||
"utc": "18:14:16.715",
|
||||
"step": "upload after recovery",
|
||||
"status": "ready"
|
||||
}
|
||||
@@ -138,31 +136,31 @@
|
||||
"s3_stop": {
|
||||
"upload": {
|
||||
"status": 503,
|
||||
"ms": 14,
|
||||
"ms": 5,
|
||||
"code": "unavailable",
|
||||
"retry_after": "1"
|
||||
},
|
||||
"download_ready": {
|
||||
"status": 503,
|
||||
"ms": 10,
|
||||
"ms": 3,
|
||||
"code": "unavailable",
|
||||
"retry_after": "1"
|
||||
},
|
||||
"metadata_queued": {
|
||||
"status": 200,
|
||||
"ms": 6,
|
||||
"ms": 2,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"ms": 6,
|
||||
"ms": 4,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
},
|
||||
"ready": {
|
||||
"status": 200,
|
||||
"ms": 2,
|
||||
"ms": 1,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
}
|
||||
@@ -177,7 +175,7 @@
|
||||
{
|
||||
"error_code": "storage_unavailable",
|
||||
"next_attempt": 2,
|
||||
"delay_seconds": 1.499
|
||||
"delay_seconds": 1.798
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -190,7 +188,7 @@
|
||||
},
|
||||
"download_ready": {
|
||||
"status": 503,
|
||||
"ms": 11,
|
||||
"ms": 10,
|
||||
"code": "unavailable",
|
||||
"retry_after": "1"
|
||||
},
|
||||
@@ -202,7 +200,7 @@
|
||||
},
|
||||
"text_message": {
|
||||
"status": 201,
|
||||
"ms": 9,
|
||||
"ms": 10,
|
||||
"code": null,
|
||||
"retry_after": null
|
||||
},
|
||||
@@ -216,7 +214,7 @@
|
||||
"accepted_job": {
|
||||
"final": "ready",
|
||||
"replay": null,
|
||||
"attempts": 4,
|
||||
"attempts": 3,
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -224,8 +222,6 @@
|
||||
"claimed",
|
||||
"retry_scheduled",
|
||||
"claimed",
|
||||
"retry_scheduled",
|
||||
"claimed",
|
||||
"ready",
|
||||
"staging_deleted"
|
||||
]
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# 2026-11-13T18:13:19Z python3 student-tests/s3_outage.py --output evidence/s3-outage.json
|
||||
[ 2.03s] worker stopped, job accepted before outage {"attachment_id": "6cdcfa17-a4bd-4764-8d3a-8a0fd6067d01"}
|
||||
[ 24.40s] S3 `stop` for 5 s {"upload": {"status": 503, "ms": 5, "code": "unavailable", "retry_after": "1"}, "download_ready": {"status": 503, "ms": 3, "code": "unavailable", "retry_after": "1"}, "metadata_queued": {"status": 200, "ms": 2, "code": null, "retry_after": null}, "text_message": {"status": 201, "ms": 4, "code": null, "retry_after": null}, "ready": {"status": 200, "ms": 1, "code": null, "retry_after": null}}
|
||||
[ 25.71s] worker meets S3 outage -> retry with backoff {"events": ["enqueued", "claimed", "retry_scheduled"], "retries": [{"error_code": "storage_unavailable", "next_attempt": 2, "delay_seconds": 1.798}]}
|
||||
[ 45.24s] S3 `start` -> healthy {"seconds": 19.3}
|
||||
[ 50.39s] S3 `pause` for 5 s {"upload": {"status": 503, "ms": 14, "code": "unavailable", "retry_after": "1"}, "download_ready": {"status": 503, "ms": 10, "code": "unavailable", "retry_after": "1"}, "metadata_queued": {"status": 200, "ms": 7, "code": null, "retry_after": null}, "text_message": {"status": 201, "ms": 10, "code": null, "retry_after": null}, "ready": {"status": 200, "ms": 2, "code": null, "retry_after": null}}
|
||||
[ 56.29s] S3 `unpause` -> healthy {"seconds": 5.8}
|
||||
[ 57.12s] job accepted before outage completed {"final": "ready", "replay": null, "attempts": 3, "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "ready", "staging_deleted"]}
|
||||
[ 57.47s] upload after recovery {"status": "ready"}
|
||||
PASS: S3 outage handled by API (503) and worker (retry), accepted work completed
|
||||
exit=0
|
||||
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T13:59:52Z docker compose --profile tools run --rm -T checks /app/student-tests/s3_private_check.py
|
||||
# 2026-11-13T18:11:23Z docker compose --profile tools run --rm -T checks /app/student-tests/s3_private_check.py
|
||||
PASS api: PutObject в свой bucket expected=allowed got=allowed
|
||||
PASS anonymous GET object expected=403 got=403
|
||||
PASS anonymous ListBucket expected=403 got=403
|
||||
|
||||
+15
-15
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"scenario": "slow client vs total body deadline",
|
||||
"date_utc": "2026-11-13T17:45:32+00:00",
|
||||
"date_utc": "2026-11-13T18:12:31+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 9.41,
|
||||
"utc": "17:45:14.226",
|
||||
"t": 9.49,
|
||||
"utc": "18:12:12.756",
|
||||
"step": "api recreated",
|
||||
"env": {
|
||||
"UPLOAD_TIMEOUT_SECONDS": "5",
|
||||
@@ -12,36 +12,36 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 14.87,
|
||||
"utc": "17:45:19.690",
|
||||
"t": 15.26,
|
||||
"utc": "18:12:18.527",
|
||||
"step": "upload drip 1 B / 0.5 s",
|
||||
"status": 400,
|
||||
"code": "invalid_request",
|
||||
"seconds": 5.02,
|
||||
"seconds": 5.01,
|
||||
"bytes_sent": 35,
|
||||
"of": 5000,
|
||||
"x_instance_id": true
|
||||
},
|
||||
{
|
||||
"t": 17.88,
|
||||
"utc": "17:45:22.700",
|
||||
"t": 18.26,
|
||||
"utc": "18:12:21.530",
|
||||
"step": "json drip 1 B / 0.5 s",
|
||||
"status": 400,
|
||||
"code": "invalid_request",
|
||||
"seconds": 3.01,
|
||||
"seconds": 3.0,
|
||||
"bytes_sent": 13,
|
||||
"of": 200,
|
||||
"x_instance_id": true
|
||||
},
|
||||
{
|
||||
"t": 17.91,
|
||||
"utc": "17:45:22.728",
|
||||
"t": 18.29,
|
||||
"utc": "18:12:21.556",
|
||||
"step": "normal upload afterwards",
|
||||
"status": "queued"
|
||||
},
|
||||
{
|
||||
"t": 27.47,
|
||||
"utc": "17:45:32.290",
|
||||
"t": 27.78,
|
||||
"utc": "18:12:31.045",
|
||||
"step": "api restored to .env configuration"
|
||||
}
|
||||
],
|
||||
@@ -49,7 +49,7 @@
|
||||
"upload": {
|
||||
"status": 400,
|
||||
"code": "invalid_request",
|
||||
"seconds": 5.02,
|
||||
"seconds": 5.01,
|
||||
"bytes_sent": 35,
|
||||
"of": 5000,
|
||||
"x_instance_id": true
|
||||
@@ -57,7 +57,7 @@
|
||||
"json": {
|
||||
"status": 400,
|
||||
"code": "invalid_request",
|
||||
"seconds": 3.01,
|
||||
"seconds": 3.0,
|
||||
"bytes_sent": 13,
|
||||
"of": 200,
|
||||
"x_instance_id": true
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# 2026-11-13T18:12:03Z python3 student-tests/slow_client.py --output evidence/slow-client.json
|
||||
[ 9.49s] api recreated {"env": {"UPLOAD_TIMEOUT_SECONDS": "5", "JSON_BODY_TIMEOUT_SECONDS": "3"}}
|
||||
[ 15.26s] upload drip 1 B / 0.5 s {"status": 400, "code": "invalid_request", "seconds": 5.01, "bytes_sent": 35, "of": 5000, "x_instance_id": true}
|
||||
[ 18.26s] json drip 1 B / 0.5 s {"status": 400, "code": "invalid_request", "seconds": 3.0, "bytes_sent": 13, "of": 200, "x_instance_id": true}
|
||||
[ 18.29s] normal upload afterwards {"status": "queued"}
|
||||
[ 27.78s] api restored to .env configuration
|
||||
PASS: slow clients are cut off by the total deadline
|
||||
exit=0
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# 2026-11-13T13:53:08Z make test
|
||||
# 2026-11-13T18:04:18Z make test
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
exit=0
|
||||
|
||||
@@ -3,17 +3,27 @@
|
||||
{
|
||||
"exit": 0,
|
||||
"class": "ok",
|
||||
"seconds": 0.13,
|
||||
"seconds": 0.12,
|
||||
"case": "valid 640x480",
|
||||
"expected": "ok",
|
||||
"input_bytes": 1949,
|
||||
"env": {},
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"exit": 0,
|
||||
"class": "ok",
|
||||
"seconds": 0.3,
|
||||
"case": "40 Mpx progressive 4:4:4 JPEG, default limits",
|
||||
"expected": "ok",
|
||||
"input_bytes": 890394,
|
||||
"env": {},
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"exit": 4,
|
||||
"class": "image_too_large",
|
||||
"seconds": 0.1,
|
||||
"seconds": 0.09,
|
||||
"case": "49 Mpx PNG (> MAX_IMAGE_PIXELS)",
|
||||
"expected": "image_too_large",
|
||||
"input_bytes": 159675,
|
||||
@@ -23,7 +33,7 @@
|
||||
{
|
||||
"exit": 0,
|
||||
"class": "ok",
|
||||
"seconds": 0.69,
|
||||
"seconds": 0.6,
|
||||
"case": "36 Mpx PNG, normal limits",
|
||||
"expected": "ok",
|
||||
"input_bytes": 119592,
|
||||
@@ -33,7 +43,7 @@
|
||||
{
|
||||
"exit": 5,
|
||||
"class": "resource_limit",
|
||||
"seconds": 0.13,
|
||||
"seconds": 0.1,
|
||||
"case": "36 Mpx PNG, memory limit 160 MiB",
|
||||
"expected": "resource_limit",
|
||||
"input_bytes": 119592,
|
||||
@@ -67,7 +77,7 @@
|
||||
{
|
||||
"exit": 3,
|
||||
"class": "invalid_image",
|
||||
"seconds": 0.1,
|
||||
"seconds": 0.09,
|
||||
"case": "truncated PNG",
|
||||
"expected": "invalid_image",
|
||||
"input_bytes": 974,
|
||||
@@ -77,7 +87,7 @@
|
||||
{
|
||||
"exit": 3,
|
||||
"class": "invalid_image",
|
||||
"seconds": 0.1,
|
||||
"seconds": 0.09,
|
||||
"case": "garbage declared as JPEG",
|
||||
"expected": "invalid_image",
|
||||
"input_bytes": 5003,
|
||||
@@ -87,7 +97,7 @@
|
||||
{
|
||||
"exit": 3,
|
||||
"class": "invalid_image",
|
||||
"seconds": 0.1,
|
||||
"seconds": 0.09,
|
||||
"case": "PNG declared as JPEG",
|
||||
"expected": "invalid_image",
|
||||
"input_bytes": 1949,
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
# 2026-11-13T13:54:49Z docker compose --profile tools run --rm -T checks /app/student-tests/transform_limits.py --output /app/evidence/transform-limits.json
|
||||
PASS valid 640x480 -> ok (0.13s)
|
||||
PASS 49 Mpx PNG (> MAX_IMAGE_PIXELS) -> image_too_large (0.10s)
|
||||
PASS 36 Mpx PNG, normal limits -> ok (0.69s)
|
||||
PASS 36 Mpx PNG, memory limit 160 MiB -> resource_limit (0.13s)
|
||||
# 2026-11-13T18:06:03Z docker compose --profile tools run --rm -T checks /app/student-tests/transform_limits.py --output /app/evidence/transform-limits.json
|
||||
PASS valid 640x480 -> ok (0.12s)
|
||||
PASS 40 Mpx progressive 4:4:4 JPEG, default limits -> ok (0.30s)
|
||||
PASS 49 Mpx PNG (> MAX_IMAGE_PIXELS) -> image_too_large (0.09s)
|
||||
PASS 36 Mpx PNG, normal limits -> ok (0.60s)
|
||||
PASS 36 Mpx PNG, memory limit 160 MiB -> resource_limit (0.10s)
|
||||
PASS 40 Mpx RGBA noise PNG, CPU limit 1 s -> killed_by_signal_24 (1.00s)
|
||||
PASS 40 Mpx RGBA noise PNG, wall timeout 0.5 s -> processing_timeout (0.51s)
|
||||
PASS truncated PNG -> invalid_image (0.10s)
|
||||
PASS garbage declared as JPEG -> invalid_image (0.10s)
|
||||
PASS PNG declared as JPEG -> invalid_image (0.10s)
|
||||
PASS 9/9
|
||||
PASS truncated PNG -> invalid_image (0.09s)
|
||||
PASS garbage declared as JPEG -> invalid_image (0.09s)
|
||||
PASS PNG declared as JPEG -> invalid_image (0.09s)
|
||||
PASS 10/10
|
||||
exit=0
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{
|
||||
"type": "image/png",
|
||||
"bytes": 10482871,
|
||||
"sha256": "184263681fcc647c"
|
||||
"sha256": "cdb0739751edf2b8"
|
||||
},
|
||||
{
|
||||
"type": "image/jpeg",
|
||||
@@ -23,42 +23,42 @@
|
||||
"202": 24
|
||||
},
|
||||
"megabytes_uploaded_ok": 148.2,
|
||||
"wall_s": 5.2,
|
||||
"wall_s": 5.8,
|
||||
"latency_s_p50_max": [
|
||||
2.07,
|
||||
2.7
|
||||
1.91,
|
||||
2.97
|
||||
],
|
||||
"replicas": {
|
||||
"78ea3303cfbc": {
|
||||
"c22f6c11ca32": {
|
||||
"rss_mib": 51,
|
||||
"hwm_mib_after_warmup": 82,
|
||||
"samples": 100,
|
||||
"peak_rss_mib_sampled": 81.1,
|
||||
"peak_anon_mib": 290.0,
|
||||
"peak_file_cache_mib": 46.6,
|
||||
"vmhwm_mib": 82,
|
||||
"cgroup_memory_peak_mib": 331.9,
|
||||
"hwm_mib_after_warmup": 83,
|
||||
"samples": 117,
|
||||
"peak_rss_mib_sampled": 81.3,
|
||||
"peak_anon_mib": 278.1,
|
||||
"peak_file_cache_mib": 55.4,
|
||||
"vmhwm_mib": 86,
|
||||
"cgroup_memory_peak_mib": 329.1,
|
||||
"memory_limit_mib": 512,
|
||||
"uploads_served": 12
|
||||
},
|
||||
"ad0d1b2c4289": {
|
||||
"6dec19715338": {
|
||||
"rss_mib": 51,
|
||||
"hwm_mib_after_warmup": 83,
|
||||
"samples": 95,
|
||||
"peak_rss_mib_sampled": 88.5,
|
||||
"peak_anon_mib": 297.5,
|
||||
"peak_file_cache_mib": 37.1,
|
||||
"vmhwm_mib": 88,
|
||||
"cgroup_memory_peak_mib": 339.7,
|
||||
"samples": 97,
|
||||
"peak_rss_mib_sampled": 68.8,
|
||||
"peak_anon_mib": 295.1,
|
||||
"peak_file_cache_mib": 27.9,
|
||||
"vmhwm_mib": 83,
|
||||
"cgroup_memory_peak_mib": 318.4,
|
||||
"memory_limit_mib": 512,
|
||||
"uploads_served": 12
|
||||
}
|
||||
},
|
||||
"s3": {
|
||||
"rss_mib": 413,
|
||||
"rss_mib": 432,
|
||||
"oom_killed": "false",
|
||||
"peak_rss_mib_sampled": 477.2,
|
||||
"peak_anon_mib": 396.8,
|
||||
"peak_rss_mib_sampled": 476.5,
|
||||
"peak_anon_mib": 395.8,
|
||||
"restarts": 0,
|
||||
"oom_killed_after": "false",
|
||||
"memory_limit_mib": 768
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
# 2026-11-13T18:14:17Z python3 student-tests/upload_memory.py --concurrency 12 --rounds 2 --output evidence/upload-memory-c12.json
|
||||
context canceled
|
||||
context canceled
|
||||
context canceled
|
||||
{
|
||||
"concurrency": 12,
|
||||
"rounds": 2,
|
||||
"files": [
|
||||
{
|
||||
"type": "image/png",
|
||||
"bytes": 10482871,
|
||||
"sha256": "cdb0739751edf2b8"
|
||||
},
|
||||
{
|
||||
"type": "image/jpeg",
|
||||
"bytes": 8051317,
|
||||
"sha256": "65d91ac28a9d4d68"
|
||||
},
|
||||
{
|
||||
"type": "image/jpeg",
|
||||
"bytes": 890394,
|
||||
"sha256": "e7f29bc3786e6d91"
|
||||
}
|
||||
],
|
||||
"uploads": 24,
|
||||
"status_counts": {
|
||||
"202": 24
|
||||
},
|
||||
"megabytes_uploaded_ok": 148.2,
|
||||
"wall_s": 5.8,
|
||||
"latency_s_p50_max": [
|
||||
1.91,
|
||||
2.97
|
||||
],
|
||||
"replicas": {
|
||||
"c22f6c11ca32": {
|
||||
"rss_mib": 51,
|
||||
"hwm_mib_after_warmup": 83,
|
||||
"samples": 117,
|
||||
"peak_rss_mib_sampled": 81.3,
|
||||
"peak_anon_mib": 278.1,
|
||||
"peak_file_cache_mib": 55.4,
|
||||
"vmhwm_mib": 86,
|
||||
"cgroup_memory_peak_mib": 329.1,
|
||||
"memory_limit_mib": 512,
|
||||
"uploads_served": 12
|
||||
},
|
||||
"6dec19715338": {
|
||||
"rss_mib": 51,
|
||||
"hwm_mib_after_warmup": 83,
|
||||
"samples": 97,
|
||||
"peak_rss_mib_sampled": 68.8,
|
||||
"peak_anon_mib": 295.1,
|
||||
"peak_file_cache_mib": 27.9,
|
||||
"vmhwm_mib": 83,
|
||||
"cgroup_memory_peak_mib": 318.4,
|
||||
"memory_limit_mib": 512,
|
||||
"uploads_served": 12
|
||||
}
|
||||
},
|
||||
"s3": {
|
||||
"rss_mib": 432,
|
||||
"oom_killed": "false",
|
||||
"peak_rss_mib_sampled": 476.5,
|
||||
"peak_anon_mib": 395.8,
|
||||
"restarts": 0,
|
||||
"oom_killed_after": "false",
|
||||
"memory_limit_mib": 768
|
||||
},
|
||||
"oom_kills": [
|
||||
"false",
|
||||
"false"
|
||||
],
|
||||
"criteria": {
|
||||
"all_responses_allowed": true,
|
||||
"no_oom_kills": true,
|
||||
"no_replica_restarts": true,
|
||||
"cgroup_peak_below_90pct": true
|
||||
},
|
||||
"pass": true
|
||||
}
|
||||
exit=0
|
||||
@@ -0,0 +1,4 @@
|
||||
# 2026-11-13T18:04:16Z make validate PYTHON=.venv/bin/python
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
exit=0
|
||||
+151
-21
@@ -14,7 +14,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 4679,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
@@ -23,7 +23,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 1820,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
@@ -32,7 +32,7 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 2462,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -50,7 +50,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 957,
|
||||
"no_exif_icc": true,
|
||||
"metadata_markers": [],
|
||||
"transparent_pixel_rgb": [
|
||||
255,
|
||||
255,
|
||||
@@ -64,7 +64,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 619,
|
||||
"no_exif_icc": true,
|
||||
"metadata_markers": [],
|
||||
"transparent_pixel_rgb": [
|
||||
255,
|
||||
255,
|
||||
@@ -78,7 +78,7 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 350,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -96,7 +96,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 861,
|
||||
"no_exif_icc": true,
|
||||
"metadata_markers": [],
|
||||
"left_rgb": [
|
||||
0,
|
||||
0,
|
||||
@@ -115,7 +115,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 578,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
@@ -124,7 +124,137 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 374,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "JPEG with COM+EXIF+XMP+ICC",
|
||||
"source_oriented": [
|
||||
500,
|
||||
300
|
||||
],
|
||||
"variants": {
|
||||
"thumbnail": {
|
||||
"size": [
|
||||
256,
|
||||
153
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 527,
|
||||
"metadata_markers": []
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 383,
|
||||
"metadata_markers": []
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
500,
|
||||
300
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 358,
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "RGB PNG with tRNS (fully transparent)",
|
||||
"source_oriented": [
|
||||
300,
|
||||
200
|
||||
],
|
||||
"variants": {
|
||||
"thumbnail": {
|
||||
"size": [
|
||||
256,
|
||||
170
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 548,
|
||||
"metadata_markers": [],
|
||||
"center_rgb": [
|
||||
255,
|
||||
255,
|
||||
255
|
||||
]
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 380,
|
||||
"metadata_markers": [],
|
||||
"center_rgb": [
|
||||
255,
|
||||
255,
|
||||
255
|
||||
]
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
300,
|
||||
200
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 248,
|
||||
"metadata_markers": [],
|
||||
"webp_alpha": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "L PNG with tRNS (fully transparent)",
|
||||
"source_oriented": [
|
||||
200,
|
||||
300
|
||||
],
|
||||
"variants": {
|
||||
"thumbnail": {
|
||||
"size": [
|
||||
170,
|
||||
256
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 548,
|
||||
"metadata_markers": [],
|
||||
"center_rgb": [
|
||||
255,
|
||||
255,
|
||||
255
|
||||
]
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 380,
|
||||
"metadata_markers": [],
|
||||
"center_rgb": [
|
||||
255,
|
||||
255,
|
||||
255
|
||||
]
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
200,
|
||||
300
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 218,
|
||||
"metadata_markers": [],
|
||||
"webp_alpha": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -142,7 +272,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 288,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
@@ -151,7 +281,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 383,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
@@ -160,7 +290,7 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 68,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -178,7 +308,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 2556,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
@@ -187,7 +317,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 1230,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
@@ -196,7 +326,7 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 5144,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -214,7 +344,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 334,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"crop": {
|
||||
"size": [
|
||||
@@ -223,7 +353,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 382,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
},
|
||||
"optimized": {
|
||||
"size": [
|
||||
@@ -232,7 +362,7 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 272,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -250,7 +380,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 308,
|
||||
"no_exif_icc": true,
|
||||
"metadata_markers": [],
|
||||
"transparent_pixel_rgb": [
|
||||
255,
|
||||
255,
|
||||
@@ -264,7 +394,7 @@
|
||||
],
|
||||
"format": "JPEG",
|
||||
"bytes": 380,
|
||||
"no_exif_icc": true,
|
||||
"metadata_markers": [],
|
||||
"transparent_pixel_rgb": [
|
||||
255,
|
||||
255,
|
||||
@@ -278,7 +408,7 @@
|
||||
],
|
||||
"format": "WEBP",
|
||||
"bytes": 130,
|
||||
"no_exif_icc": true
|
||||
"metadata_markers": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
# 2026-11-13T13:54:46Z docker compose --profile tools run --rm -T checks /app/student-tests/variants_check.py --base-url http://lb:8080 --output /app/evidence/variants-check.json
|
||||
# 2026-11-13T18:06:01Z docker compose --profile tools run --rm -T checks /app/student-tests/variants_check.py --base-url http://lb:8080 --output /app/evidence/variants-check.json
|
||||
PASS fixture 320x200 PNG {'thumbnail': (256, 160), 'crop': (128, 128), 'optimized': (320, 200)}
|
||||
PASS RGBA 300x300 half transparent {'thumbnail': (256, 256), 'crop': (128, 128), 'optimized': (300, 300)}
|
||||
PASS JPEG 400x200 EXIF orientation=6 {'thumbnail': (128, 256), 'crop': (128, 128), 'optimized': (200, 400)}
|
||||
PASS JPEG with COM+EXIF+XMP+ICC {'thumbnail': (256, 153), 'crop': (128, 128), 'optimized': (500, 300)}
|
||||
PASS RGB PNG with tRNS (fully transparent) {'thumbnail': (256, 170), 'crop': (128, 128), 'optimized': (300, 200)}
|
||||
PASS L PNG with tRNS (fully transparent) {'thumbnail': (170, 256), 'crop': (128, 128), 'optimized': (200, 300)}
|
||||
PASS tiny PNG 10x5 (no upscale) {'thumbnail': (10, 5), 'crop': (128, 128), 'optimized': (10, 5)}
|
||||
PASS JPEG 3000x2000 {'thumbnail': (256, 170), 'crop': (128, 128), 'optimized': (1280, 853)}
|
||||
PASS tall PNG 100x1000 {'thumbnail': (25, 256), 'crop': (128, 128), 'optimized': (100, 1000)}
|
||||
PASS palette PNG with transparency {'thumbnail': (64, 64), 'crop': (128, 128), 'optimized': (64, 64)}
|
||||
PASS: 7 inputs, all variants match contract
|
||||
PASS: 10 inputs, all variants match contract
|
||||
exit=0
|
||||
|
||||
+53
-53
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"scenario": "worker faults, retries, failed registry, replay, DLQ",
|
||||
"date_utc": "2026-11-13T17:55:56+00:00",
|
||||
"date_utc": "2026-11-13T18:08:43+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 7.38,
|
||||
"utc": "17:53:33.626",
|
||||
"t": 7.54,
|
||||
"utc": "18:06:21.593",
|
||||
"step": "workers recreated with fault injection",
|
||||
"env": {
|
||||
"WORKER_FAULT_INJECTION": "1",
|
||||
@@ -13,8 +13,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 41.67,
|
||||
"utc": "17:54:07.922",
|
||||
"t": 40.79,
|
||||
"utc": "18:06:54.847",
|
||||
"step": "crash-after-claim",
|
||||
"events": [
|
||||
"enqueued",
|
||||
@@ -42,8 +42,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 76.8,
|
||||
"utc": "17:54:43.051",
|
||||
"t": 76.26,
|
||||
"utc": "18:07:30.315",
|
||||
"step": "crash-after-s3-put",
|
||||
"events": [
|
||||
"enqueued",
|
||||
@@ -71,8 +71,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 81.11,
|
||||
"utc": "17:54:47.360",
|
||||
"t": 80.62,
|
||||
"utc": "18:07:34.677",
|
||||
"step": "crash-after-commit",
|
||||
"events": [
|
||||
"enqueued",
|
||||
@@ -97,21 +97,21 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 81.24,
|
||||
"utc": "17:54:47.489",
|
||||
"t": 80.76,
|
||||
"utc": "18:07:34.819",
|
||||
"step": "worker containers after crashes (restart: unless-stopped)",
|
||||
"containers": [
|
||||
"/mtusi-lab5-worker-1 1 running",
|
||||
"/mtusi-lab5-worker-2 2 running"
|
||||
"/mtusi-lab5-fresh-worker-1 1 running",
|
||||
"/mtusi-lab5-fresh-worker-2 2 running"
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 85.49,
|
||||
"utc": "17:54:51.743",
|
||||
"t": 85.08,
|
||||
"utc": "18:07:39.138",
|
||||
"step": "transient-2: retried with backoff",
|
||||
"delays": [
|
||||
0.72,
|
||||
1.133
|
||||
0.968,
|
||||
1.852
|
||||
],
|
||||
"bounds": [
|
||||
[
|
||||
@@ -138,14 +138,14 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 87.52,
|
||||
"utc": "17:54:53.769",
|
||||
"t": 87.18,
|
||||
"utc": "18:07:41.233",
|
||||
"step": "unexpected exception -> processing_failed -> retry -> ready",
|
||||
"attachment_id": "fa2eb139-4738-48c7-afd9-0b555d748c2b",
|
||||
"attachment_id": "5c527c98-0276-4827-b652-d74ea3872885",
|
||||
"retry_error_codes": [
|
||||
"processing_failed"
|
||||
],
|
||||
"seconds_to_ready": 1.27,
|
||||
"seconds_to_ready": 1.26,
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -169,30 +169,30 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 103.32,
|
||||
"utc": "17:55:09.568",
|
||||
"t": 102.16,
|
||||
"utc": "18:07:56.211",
|
||||
"step": "transient-always: failed after max attempts",
|
||||
"error_code": "retry_exhausted",
|
||||
"attempts": 5,
|
||||
"content": 409,
|
||||
"attach": 409,
|
||||
"registry_entry": {
|
||||
"attachment_id": "663cfcb8-6d2a-46e4-8f8b-09ab2733c642",
|
||||
"job_id": "51eda108-3eee-46e4-96be-5bfca56c0a1c",
|
||||
"attachment_id": "e1b414dd-1f9e-4982-9de1-e31e69f89523",
|
||||
"job_id": "a795d934-00a6-4e23-9be0-3371a2ebbd55",
|
||||
"error_code": "retry_exhausted",
|
||||
"attempt": 5,
|
||||
"max_attempts": 5,
|
||||
"replay_count": 0,
|
||||
"last_error": "last error: storage_unavailable injected transient error",
|
||||
"updated_at": "2026-11-13T17:55:07.923464Z",
|
||||
"updated_at": "2026-11-13T18:07:54.386852Z",
|
||||
"replayable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 106.82,
|
||||
"utc": "17:55:13.072",
|
||||
"t": 106.01,
|
||||
"utc": "18:08:00.069",
|
||||
"step": "replay -> ready; replay of ready refused",
|
||||
"attachment_id": "663cfcb8-6d2a-46e4-8f8b-09ab2733c642",
|
||||
"attachment_id": "e1b414dd-1f9e-4982-9de1-e31e69f89523",
|
||||
"dry_run": "would_replay",
|
||||
"replay": "replayed",
|
||||
"second_replay": "refused_status_ready",
|
||||
@@ -229,10 +229,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 115.6,
|
||||
"utc": "17:55:21.852",
|
||||
"t": 115.41,
|
||||
"utc": "18:08:09.461",
|
||||
"step": "tampered staging -> failed without retries",
|
||||
"attachment_id": "b6e7e80e-6b67-4e72-a034-e811f6f99b05",
|
||||
"attachment_id": "03f82fee-70af-4267-a19d-a3a5d7f5ea17",
|
||||
"error_code": "staging_corrupted",
|
||||
"attempts": 1,
|
||||
"events": [
|
||||
@@ -242,8 +242,8 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"t": 126.17,
|
||||
"utc": "17:55:32.419",
|
||||
"t": 126.1,
|
||||
"utc": "18:08:20.155",
|
||||
"step": "poison message dead-lettered and purged",
|
||||
"dlq_before": 0,
|
||||
"dlq_after_publish": 1,
|
||||
@@ -261,10 +261,10 @@
|
||||
"dlq_after_purge": 0
|
||||
},
|
||||
{
|
||||
"t": 143.17,
|
||||
"utc": "17:55:49.417",
|
||||
"t": 143.08,
|
||||
"utc": "18:08:37.133",
|
||||
"step": "job deadline exceeded -> processing_timeout -> retry -> ready",
|
||||
"attachment_id": "2fd55b68-dab6-4549-92ca-f65dbfdef0c7",
|
||||
"attachment_id": "176a0882-0837-439a-9766-d66c6147ac7d",
|
||||
"retry_error_codes": [
|
||||
"processing_timeout"
|
||||
],
|
||||
@@ -291,14 +291,14 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"t": 149.95,
|
||||
"utc": "17:55:56.200",
|
||||
"t": 149.87,
|
||||
"utc": "18:08:43.921",
|
||||
"step": "workers restored to .env configuration"
|
||||
}
|
||||
],
|
||||
"results": {
|
||||
"crash-after-claim": {
|
||||
"attachment_id": "e4f486a2-e2cc-4630-afbc-6eec514458b7",
|
||||
"attachment_id": "6713044e-dfa3-4af1-9be4-9629cf92b391",
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -325,7 +325,7 @@
|
||||
}
|
||||
},
|
||||
"crash-after-s3-put": {
|
||||
"attachment_id": "d694f1a9-29e2-4d50-a2a4-20472eafa047",
|
||||
"attachment_id": "44871940-8f63-4c90-8484-18d3918fd6ad",
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -352,7 +352,7 @@
|
||||
}
|
||||
},
|
||||
"crash-after-commit": {
|
||||
"attachment_id": "1a077be1-1153-4a03-b0d2-ed65a91d1f8d",
|
||||
"attachment_id": "f2c860be-7496-4b63-8f3c-7300c582ed94",
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -376,10 +376,10 @@
|
||||
}
|
||||
},
|
||||
"transient-2": {
|
||||
"attachment_id": "797a8154-56d0-421d-a46a-2fecd999c3f0",
|
||||
"attachment_id": "a49187df-9a8c-4bad-9127-7ca2660f44aa",
|
||||
"delays": [
|
||||
0.72,
|
||||
1.133
|
||||
0.968,
|
||||
1.852
|
||||
],
|
||||
"bounds": [
|
||||
[
|
||||
@@ -392,9 +392,9 @@
|
||||
]
|
||||
],
|
||||
"claims_at": [
|
||||
"2026-11-13T17:54:47.512858Z",
|
||||
"2026-11-13T17:54:48.520912Z",
|
||||
"2026-11-13T17:54:50.561214Z"
|
||||
"2026-11-13T18:07:34.842536Z",
|
||||
"2026-11-13T18:07:35.850470Z",
|
||||
"2026-11-13T18:07:37.881538Z"
|
||||
],
|
||||
"invariants": {
|
||||
"variants": [
|
||||
@@ -411,11 +411,11 @@
|
||||
}
|
||||
},
|
||||
"bug": {
|
||||
"attachment_id": "fa2eb139-4738-48c7-afd9-0b555d748c2b",
|
||||
"attachment_id": "5c527c98-0276-4827-b652-d74ea3872885",
|
||||
"retry_error_codes": [
|
||||
"processing_failed"
|
||||
],
|
||||
"seconds_to_ready": 1.27,
|
||||
"seconds_to_ready": 1.26,
|
||||
"events": [
|
||||
"enqueued",
|
||||
"claimed",
|
||||
@@ -439,7 +439,7 @@
|
||||
}
|
||||
},
|
||||
"transient-always+replay": {
|
||||
"attachment_id": "663cfcb8-6d2a-46e4-8f8b-09ab2733c642",
|
||||
"attachment_id": "e1b414dd-1f9e-4982-9de1-e31e69f89523",
|
||||
"dry_run": "would_replay",
|
||||
"replay": "replayed",
|
||||
"second_replay": "refused_status_ready",
|
||||
@@ -476,7 +476,7 @@
|
||||
}
|
||||
},
|
||||
"staging-tamper": {
|
||||
"attachment_id": "b6e7e80e-6b67-4e72-a034-e811f6f99b05",
|
||||
"attachment_id": "03f82fee-70af-4267-a19d-a3a5d7f5ea17",
|
||||
"error_code": "staging_corrupted",
|
||||
"attempts": 1,
|
||||
"events": [
|
||||
@@ -502,7 +502,7 @@
|
||||
"dlq_after_purge": 0
|
||||
},
|
||||
"deadline": {
|
||||
"attachment_id": "2fd55b68-dab6-4549-92ca-f65dbfdef0c7",
|
||||
"attachment_id": "176a0882-0837-439a-9766-d66c6147ac7d",
|
||||
"retry_error_codes": [
|
||||
"processing_timeout"
|
||||
],
|
||||
|
||||
+14
-13
@@ -1,15 +1,16 @@
|
||||
# 2026-11-13T13:54:58Z python3 student-tests/worker_faults.py --output evidence/worker-faults.json
|
||||
[ 7.43s] workers recreated with fault injection {"env": {"WORKER_FAULT_INJECTION": "1", "JOB_RETRY_BASE_SECONDS": "1", "JOB_RETRY_MAX_SECONDS": "8"}}
|
||||
[ 43.87s] crash-after-claim {"events": ["enqueued", "claimed", "fault_injected", "busy_ignored", "lease_expired", "requeued_after_lease", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 79.44s] crash-after-s3-put {"events": ["enqueued", "claimed", "fault_injected", "busy_ignored", "lease_expired", "requeued_after_lease", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 84.10s] crash-after-commit {"events": ["enqueued", "claimed", "ready", "fault_injected", "duplicate_ignored", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 84.24s] worker containers after crashes (restart: unless-stopped) {"containers": ["/mtusi-lab5-fresh-worker-1 2 running", "/mtusi-lab5-fresh-worker-2 1 running"]}
|
||||
[ 88.58s] transient-2: retried with backoff {"delays": [0.941, 1.489], "bounds": [[0.5, 1], [1.0, 2]], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 3}}
|
||||
[ 90.68s] unexpected exception -> processing_failed -> retry -> ready {"attachment_id": "8fbaeec2-25eb-40a3-9a33-308326d803c2", "retry_error_codes": ["processing_failed"], "seconds_to_ready": 1.24, "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 107.92s] transient-always: failed after max attempts {"error_code": "retry_exhausted", "attempts": 5, "content": 409, "attach": 409, "registry_entry": {"attachment_id": "8120ba5a-baa5-40d6-bb68-4f6913dacbb7", "job_id": "ecb422b5-b84b-43eb-9d5d-5d064612970d", "error_code": "retry_exhausted", "attempt": 5, "max_attempts": 5, "replay_count": 0, "last_error": "last error: storage_unavailable injected transient error", "updated_at": "2026-11-13T13:56:44.554290Z", "replayable": true}}
|
||||
[ 111.66s] replay -> ready; replay of ready refused {"attachment_id": "8120ba5a-baa5-40d6-bb68-4f6913dacbb7", "dry_run": "would_replay", "replay": "replayed", "second_replay": "refused_status_ready", "replay_count": 1, "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "failed", "replayed", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 6}}
|
||||
[ 121.03s] tampered staging -> failed without retries {"attachment_id": "d098c501-ff73-4036-a5c7-60302e9e450b", "error_code": "staging_corrupted", "attempts": 1, "events": ["enqueued", "claimed", "failed"]}
|
||||
[ 129.39s] poison message dead-lettered and purged {"dlq_before": 0, "dlq_after_publish": 1, "listed": [{"reason": "rejected", "delivery_count": 1, "action": "kept", "invalid": "extra fields"}], "purged": ["purged_invalid"], "dlq_after_purge": 0}
|
||||
[ 136.41s] workers restored to .env configuration
|
||||
# 2026-11-13T18:06:13Z python3 student-tests/worker_faults.py --output evidence/worker-faults.json
|
||||
[ 7.54s] workers recreated with fault injection {"env": {"WORKER_FAULT_INJECTION": "1", "JOB_RETRY_BASE_SECONDS": "1", "JOB_RETRY_MAX_SECONDS": "8"}}
|
||||
[ 40.79s] crash-after-claim {"events": ["enqueued", "claimed", "fault_injected", "busy_ignored", "lease_expired", "requeued_after_lease", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 76.26s] crash-after-s3-put {"events": ["enqueued", "claimed", "fault_injected", "busy_ignored", "lease_expired", "requeued_after_lease", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 80.62s] crash-after-commit {"events": ["enqueued", "claimed", "ready", "fault_injected", "duplicate_ignored", "staging_released"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
[ 80.76s] worker containers after crashes (restart: unless-stopped) {"containers": ["/mtusi-lab5-fresh-worker-1 1 running", "/mtusi-lab5-fresh-worker-2 2 running"]}
|
||||
[ 85.08s] transient-2: retried with backoff {"delays": [0.968, 1.852], "bounds": [[0.5, 1], [1.0, 2]], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 3}}
|
||||
[ 87.18s] unexpected exception -> processing_failed -> retry -> ready {"attachment_id": "5c527c98-0276-4827-b652-d74ea3872885", "retry_error_codes": ["processing_failed"], "seconds_to_ready": 1.26, "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 102.16s] transient-always: failed after max attempts {"error_code": "retry_exhausted", "attempts": 5, "content": 409, "attach": 409, "registry_entry": {"attachment_id": "e1b414dd-1f9e-4982-9de1-e31e69f89523", "job_id": "a795d934-00a6-4e23-9be0-3371a2ebbd55", "error_code": "retry_exhausted", "attempt": 5, "max_attempts": 5, "replay_count": 0, "last_error": "last error: storage_unavailable injected transient error", "updated_at": "2026-11-13T18:07:54.386852Z", "replayable": true}}
|
||||
[ 106.01s] replay -> ready; replay of ready refused {"attachment_id": "e1b414dd-1f9e-4982-9de1-e31e69f89523", "dry_run": "would_replay", "replay": "replayed", "second_replay": "refused_status_ready", "replay_count": 1, "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "retry_scheduled", "claimed", "failed", "replayed", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 6}}
|
||||
[ 115.41s] tampered staging -> failed without retries {"attachment_id": "03f82fee-70af-4267-a19d-a3a5d7f5ea17", "error_code": "staging_corrupted", "attempts": 1, "events": ["enqueued", "claimed", "failed"]}
|
||||
[ 126.10s] poison message dead-lettered and purged {"dlq_before": 0, "dlq_after_publish": 1, "listed": [{"reason": "rejected", "delivery_count": 1, "action": "kept", "invalid": "extra fields"}], "purged": ["purged_invalid"], "dlq_after_purge": 0}
|
||||
[ 143.08s] job deadline exceeded -> processing_timeout -> retry -> ready {"attachment_id": "176a0882-0837-439a-9766-d66c6147ac7d", "retry_error_codes": ["processing_timeout"], "events": ["enqueued", "claimed", "retry_scheduled", "claimed", "ready", "staging_deleted"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 2}}
|
||||
[ 149.87s] workers restored to .env configuration
|
||||
PASS: worker crashes, backoff, retry_exhausted -> replay, staging tamper, DLQ
|
||||
exit=0
|
||||
|
||||
+40
-40
@@ -1,24 +1,24 @@
|
||||
{
|
||||
"scenario": "worker outage -> restart api+broker -> worker start -> ready -> redelivery",
|
||||
"date_utc": "2026-11-13T13:54:46+00:00",
|
||||
"date_utc": "2026-11-13T18:06:01+00:00",
|
||||
"steps": [
|
||||
{
|
||||
"t": 1.33,
|
||||
"utc": "13:54:22.424",
|
||||
"t": 1.48,
|
||||
"utc": "18:05:32.760",
|
||||
"step": "worker stopped",
|
||||
"running": []
|
||||
},
|
||||
{
|
||||
"t": 1.78,
|
||||
"utc": "13:54:22.879",
|
||||
"t": 2.45,
|
||||
"utc": "18:05:33.736",
|
||||
"step": "upload while worker is down",
|
||||
"http": 202,
|
||||
"attachment_id": "e6ed01be-52e1-4460-8858-b9eef348be70",
|
||||
"attachment_id": "67a8fe5e-5c9d-4193-a09f-c2b3aa50962a",
|
||||
"status": "queued"
|
||||
},
|
||||
{
|
||||
"t": 1.79,
|
||||
"utc": "13:54:22.887",
|
||||
"t": 2.46,
|
||||
"utc": "18:05:33.744",
|
||||
"step": "metadata and content while queued",
|
||||
"status": "queued",
|
||||
"content": 409,
|
||||
@@ -26,15 +26,15 @@
|
||||
"error_code": "conflict"
|
||||
},
|
||||
{
|
||||
"t": 1.8,
|
||||
"utc": "13:54:22.894",
|
||||
"t": 2.47,
|
||||
"utc": "18:05:33.752",
|
||||
"step": "messages while worker is down",
|
||||
"with_queued_attachment": true,
|
||||
"plain_message_id": "f3001283-548f-4489-83de-615141cd549a"
|
||||
"plain_message_id": "859feea3-e045-420b-906a-a2d71239abe6"
|
||||
},
|
||||
{
|
||||
"t": 4.18,
|
||||
"utc": "13:54:25.271",
|
||||
"t": 5.4,
|
||||
"utc": "18:05:36.685",
|
||||
"step": "job is durable in broker",
|
||||
"queue": {
|
||||
"messages": 1,
|
||||
@@ -43,18 +43,18 @@
|
||||
"consumers": 0
|
||||
},
|
||||
"outbox_published": true,
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"job_status": "queued"
|
||||
},
|
||||
{
|
||||
"t": 13.09,
|
||||
"utc": "13:54:34.184",
|
||||
"t": 14.16,
|
||||
"utc": "18:05:45.437",
|
||||
"step": "api restarted",
|
||||
"status": "queued"
|
||||
},
|
||||
{
|
||||
"t": 18.16,
|
||||
"utc": "13:54:39.258",
|
||||
"t": 22.35,
|
||||
"utc": "18:05:53.630",
|
||||
"step": "broker restarted with volume",
|
||||
"queue": {
|
||||
"messages": 1,
|
||||
@@ -65,13 +65,13 @@
|
||||
"status": "queued"
|
||||
},
|
||||
{
|
||||
"t": 23.99,
|
||||
"utc": "13:54:45.086",
|
||||
"t": 28.18,
|
||||
"utc": "18:05:59.459",
|
||||
"step": "worker started"
|
||||
},
|
||||
{
|
||||
"t": 24.02,
|
||||
"utc": "13:54:45.115",
|
||||
"t": 28.21,
|
||||
"utc": "18:05:59.493",
|
||||
"step": "ready after worker start",
|
||||
"variants": [
|
||||
[
|
||||
@@ -94,8 +94,8 @@
|
||||
"thumbnail_bytes": 4679
|
||||
},
|
||||
{
|
||||
"t": 25.72,
|
||||
"utc": "13:54:46.813",
|
||||
"t": 29.98,
|
||||
"utc": "18:06:01.259",
|
||||
"step": "redelivery of the same job is a no-op",
|
||||
"events": [
|
||||
"enqueued",
|
||||
@@ -119,33 +119,33 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"attachment_id": "e6ed01be-52e1-4460-8858-b9eef348be70",
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"attachment_id": "67a8fe5e-5c9d-4193-a09f-c2b3aa50962a",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"events": [
|
||||
{
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"at": "2026-11-13T13:54:22.876280Z",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"at": "2026-11-13T18:05:33.732171Z",
|
||||
"event": "enqueued",
|
||||
"attempt": 1,
|
||||
"actor": "api",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"at": "2026-11-13T13:54:39.862578Z",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"at": "2026-11-13T18:05:54.254979Z",
|
||||
"event": "claimed",
|
||||
"attempt": 1,
|
||||
"actor": "3ecc0795d2da:873f888f",
|
||||
"actor": "338465464bda:c0c75819",
|
||||
"detail": {
|
||||
"redelivered_message_attempt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"at": "2026-11-13T13:54:40.000589Z",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"at": "2026-11-13T18:05:54.379915Z",
|
||||
"event": "ready",
|
||||
"attempt": 1,
|
||||
"actor": "3ecc0795d2da:873f888f",
|
||||
"actor": "338465464bda:c0c75819",
|
||||
"detail": {
|
||||
"variants": {
|
||||
"crop": [
|
||||
@@ -164,19 +164,19 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"at": "2026-11-13T13:54:40.001908Z",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"at": "2026-11-13T18:05:54.380926Z",
|
||||
"event": "staging_deleted",
|
||||
"attempt": 1,
|
||||
"actor": "3ecc0795d2da:873f888f",
|
||||
"actor": "338465464bda:c0c75819",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"job_id": "819863af-2d27-4892-9716-57aab92180c6",
|
||||
"at": "2026-11-13T13:54:45.844562Z",
|
||||
"job_id": "4eb87124-ca0c-462b-a04d-09e558406474",
|
||||
"at": "2026-11-13T18:06:00.259189Z",
|
||||
"event": "duplicate_ignored",
|
||||
"attempt": 1,
|
||||
"actor": "3ecc0795d2da:873f888f",
|
||||
"actor": "338465464bda:c0c75819",
|
||||
"detail": {
|
||||
"status": "ready"
|
||||
}
|
||||
|
||||
+11
-11
@@ -1,13 +1,13 @@
|
||||
# 2026-11-13T13:54:21Z python3 student-tests/worker_outage.py --output evidence/worker-outage.json
|
||||
[ 1.33s] worker stopped {"running": []}
|
||||
[ 1.78s] upload while worker is down {"http": 202, "attachment_id": "e6ed01be-52e1-4460-8858-b9eef348be70", "status": "queued"}
|
||||
[ 1.79s] metadata and content while queued {"status": "queued", "content": 409, "thumbnail": 409, "error_code": "conflict"}
|
||||
[ 1.80s] messages while worker is down {"with_queued_attachment": true, "plain_message_id": "f3001283-548f-4489-83de-615141cd549a"}
|
||||
[ 4.18s] job is durable in broker {"queue": {"messages": 1, "messages_ready": 1, "messages_unacknowledged": 0, "consumers": 0}, "outbox_published": true, "job_id": "819863af-2d27-4892-9716-57aab92180c6", "job_status": "queued"}
|
||||
[ 13.09s] api restarted {"status": "queued"}
|
||||
[ 18.16s] broker restarted with volume {"queue": {"messages": 1, "messages_ready": 1, "messages_unacknowledged": 0, "consumers": 0}, "status": "queued"}
|
||||
[ 23.99s] worker started
|
||||
[ 24.02s] ready after worker start {"variants": [["thumbnail", 256, 160], ["crop", 128, 128], ["optimized", 320, 200]], "original_sha256_ok": true, "thumbnail_bytes": 4679}
|
||||
[ 25.72s] redelivery of the same job is a no-op {"events": ["enqueued", "claimed", "ready", "staging_deleted", "duplicate_ignored"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
# 2026-11-13T18:05:31Z python3 student-tests/worker_outage.py --output evidence/worker-outage.json
|
||||
[ 1.48s] worker stopped {"running": []}
|
||||
[ 2.45s] upload while worker is down {"http": 202, "attachment_id": "67a8fe5e-5c9d-4193-a09f-c2b3aa50962a", "status": "queued"}
|
||||
[ 2.46s] metadata and content while queued {"status": "queued", "content": 409, "thumbnail": 409, "error_code": "conflict"}
|
||||
[ 2.47s] messages while worker is down {"with_queued_attachment": true, "plain_message_id": "859feea3-e045-420b-906a-a2d71239abe6"}
|
||||
[ 5.40s] job is durable in broker {"queue": {"messages": 1, "messages_ready": 1, "messages_unacknowledged": 0, "consumers": 0}, "outbox_published": true, "job_id": "4eb87124-ca0c-462b-a04d-09e558406474", "job_status": "queued"}
|
||||
[ 14.16s] api restarted {"status": "queued"}
|
||||
[ 22.35s] broker restarted with volume {"queue": {"messages": 1, "messages_ready": 1, "messages_unacknowledged": 0, "consumers": 0}, "status": "queued"}
|
||||
[ 28.18s] worker started
|
||||
[ 28.21s] ready after worker start {"variants": [["thumbnail", 256, 160], ["crop", 128, 128], ["optimized", 320, 200]], "original_sha256_ok": true, "thumbnail_bytes": 4679}
|
||||
[ 29.98s] redelivery of the same job is a no-op {"events": ["enqueued", "claimed", "ready", "staging_deleted", "duplicate_ignored"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
|
||||
PASS: worker outage, api+broker restart, ready, duplicate delivery no-op
|
||||
exit=0
|
||||
|
||||
Reference in New Issue
Block a user