Перепроверка из чистого clone: evidence, исправление теста окон D/E, отчёт

This commit is contained in:
2026-11-13 17:02:32 +03:00
parent 3ebd674062
commit 98aca383b8
30 changed files with 502 additions and 416 deletions
+102 -43
View File
@@ -1,10 +1,10 @@
{
"scenario": "worker faults, retries, failed registry, replay, DLQ",
"date_utc": "2026-11-13T13:23:18+00:00",
"date_utc": "2026-11-13T13:57:15+00:00",
"steps": [
{
"t": 7.26,
"utc": "13:21:13.790",
"t": 7.43,
"utc": "13:55:06.128",
"step": "workers recreated with fault injection",
"env": {
"WORKER_FAULT_INJECTION": "1",
@@ -13,8 +13,8 @@
}
},
{
"t": 40.75,
"utc": "13:21:47.283",
"t": 43.87,
"utc": "13:55:42.572",
"step": "crash-after-claim",
"events": [
"enqueued",
@@ -42,8 +42,8 @@
}
},
{
"t": 76.1,
"utc": "13:22:22.637",
"t": 79.44,
"utc": "13:56:18.141",
"step": "crash-after-s3-put",
"events": [
"enqueued",
@@ -71,8 +71,8 @@
}
},
{
"t": 80.78,
"utc": "13:22:27.315",
"t": 84.1,
"utc": "13:56:22.802",
"step": "crash-after-commit",
"events": [
"enqueued",
@@ -97,21 +97,21 @@
}
},
{
"t": 80.92,
"utc": "13:22:27.454",
"t": 84.24,
"utc": "13:56:22.943",
"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 2 running",
"/mtusi-lab5-fresh-worker-2 1 running"
]
},
{
"t": 85.17,
"utc": "13:22:31.709",
"t": 88.58,
"utc": "13:56:27.276",
"step": "transient-2: retried with backoff",
"delays": [
0.952,
1.513
0.941,
1.489
],
"bounds": [
[
@@ -138,30 +138,61 @@
}
},
{
"t": 101.04,
"utc": "13:22:47.577",
"t": 90.68,
"utc": "13:56:29.384",
"step": "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
}
},
{
"t": 107.92,
"utc": "13:56:46.618",
"step": "transient-always: failed after max attempts",
"error_code": "retry_exhausted",
"attempts": 5,
"content": 409,
"attach": 409,
"registry_entry": {
"attachment_id": "8a6dc0d1-e4eb-4187-9618-09148e913ebc",
"job_id": "1a212af1-07fd-4afe-a5bd-4342839a3e8e",
"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:22:45.859850Z",
"updated_at": "2026-11-13T13:56:44.554290Z",
"replayable": true
}
},
{
"t": 104.53,
"utc": "13:22:51.067",
"t": 111.66,
"utc": "13:56:50.361",
"step": "replay -> ready; replay of ready refused",
"attachment_id": "8a6dc0d1-e4eb-4187-9618-09148e913ebc",
"attachment_id": "8120ba5a-baa5-40d6-bb68-4f6913dacbb7",
"dry_run": "would_replay",
"replay": "replayed",
"second_replay": "refused_status_ready",
@@ -198,10 +229,10 @@
}
},
{
"t": 113.33,
"utc": "13:22:59.866",
"t": 121.03,
"utc": "13:56:59.727",
"step": "tampered staging -> failed without retries",
"attachment_id": "dddc059c-a98e-4150-b866-dbdbfeb875f2",
"attachment_id": "d098c501-ff73-4036-a5c7-60302e9e450b",
"error_code": "staging_corrupted",
"attempts": 1,
"events": [
@@ -211,8 +242,8 @@
]
},
{
"t": 125.06,
"utc": "13:23:11.590",
"t": 129.39,
"utc": "13:57:08.092",
"step": "poison message dead-lettered and purged",
"dlq_before": 0,
"dlq_after_publish": 1,
@@ -230,14 +261,14 @@
"dlq_after_purge": 0
},
{
"t": 131.72,
"utc": "13:23:18.259",
"t": 136.41,
"utc": "13:57:15.109",
"step": "workers restored to .env configuration"
}
],
"results": {
"crash-after-claim": {
"attachment_id": "93dccce9-b04b-4317-a72e-68f43e719634",
"attachment_id": "033b0e03-a599-4110-937e-6a37c45c41e7",
"events": [
"enqueued",
"claimed",
@@ -264,7 +295,7 @@
}
},
"crash-after-s3-put": {
"attachment_id": "da8e1461-70e0-431d-81da-d993cca01288",
"attachment_id": "69421764-cfd2-48ef-8dc1-097399edb0b8",
"events": [
"enqueued",
"claimed",
@@ -291,7 +322,7 @@
}
},
"crash-after-commit": {
"attachment_id": "1379cce6-0c65-40cf-a575-61a7f643ea07",
"attachment_id": "3a9afd6b-4e6d-46bd-8d25-bfd3b7e225a0",
"events": [
"enqueued",
"claimed",
@@ -315,10 +346,10 @@
}
},
"transient-2": {
"attachment_id": "58756a3d-8bb3-4aad-bb47-f1b4c4b0696e",
"attachment_id": "d4e7f4b2-faeb-449c-94a1-edd75e1b0bd3",
"delays": [
0.952,
1.513
0.941,
1.489
],
"bounds": [
[
@@ -331,9 +362,9 @@
]
],
"claims_at": [
"2026-11-13T13:22:27.471179Z",
"2026-11-13T13:22:28.490332Z",
"2026-11-13T13:22:30.531633Z"
"2026-11-13T13:56:22.965351Z",
"2026-11-13T13:56:23.984778Z",
"2026-11-13T13:56:26.030551Z"
],
"invariants": {
"variants": [
@@ -349,8 +380,36 @@
"attempt": 3
}
},
"bug": {
"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
}
},
"transient-always+replay": {
"attachment_id": "8a6dc0d1-e4eb-4187-9618-09148e913ebc",
"attachment_id": "8120ba5a-baa5-40d6-bb68-4f6913dacbb7",
"dry_run": "would_replay",
"replay": "replayed",
"second_replay": "refused_status_ready",
@@ -387,7 +446,7 @@
}
},
"staging-tamper": {
"attachment_id": "dddc059c-a98e-4150-b866-dbdbfeb875f2",
"attachment_id": "d098c501-ff73-4036-a5c7-60302e9e450b",
"error_code": "staging_corrupted",
"attempts": 1,
"events": [