Перепроверка из чистого 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
+71 -59
View File
@@ -1,18 +1,18 @@
{
"scenario": "outbox: COMMIT/publish gap and API crash windows",
"date_utc": "2026-11-13T13:24:33+00:00",
"date_utc": "2026-11-13T13:58:45+00:00",
"steps": [
{
"t": 6.31,
"utc": "13:23:24.684",
"t": 5.47,
"utc": "13:57:20.717",
"step": "A: relay stopped, upload 202",
"attachment_id": "41a53cd8-7e57-44b8-9c9f-12320b323750",
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
"outbox": [
{
"id": 105,
"id": 98,
"attempt": "1",
"available_at": "2026-11-13T13:23:19.956776Z",
"created_at": "2026-11-13T13:23:19.956776Z",
"available_at": "2026-11-13T13:57:16.395116Z",
"created_at": "2026-11-13T13:57:16.395116Z",
"published_at": null,
"publish_count": 0
}
@@ -25,10 +25,10 @@
}
},
{
"t": 12.77,
"utc": "13:23:31.150",
"t": 12.08,
"utc": "13:57:27.326",
"step": "A: relay started -> ready, same single job",
"attachment_id": "41a53cd8-7e57-44b8-9c9f-12320b323750",
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
"events": [
"enqueued",
"claimed",
@@ -37,11 +37,11 @@
],
"outbox": [
{
"id": 105,
"id": 98,
"attempt": "1",
"available_at": "2026-11-13T13:23:19.956776Z",
"created_at": "2026-11-13T13:23:19.956776Z",
"published_at": "2026-11-13T13:23:26.328881Z",
"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
}
],
@@ -61,10 +61,10 @@
}
},
{
"t": 23.48,
"utc": "13:23:41.861",
"t": 21.46,
"utc": "13:57:36.707",
"step": "B: relay crashed between COMMIT and publish -> restarted -> ready",
"attachment_id": "a2401b04-a5db-4026-adc4-01d5040fdd2c",
"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f",
"relay_restart_count": [
[
0
@@ -81,11 +81,11 @@
],
"outbox": [
{
"id": 106,
"id": 99,
"attempt": "1",
"available_at": "2026-11-13T13:23:38.382769Z",
"created_at": "2026-11-13T13:23:38.382769Z",
"published_at": "2026-11-13T13:23:40.445416Z",
"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
}
],
@@ -104,10 +104,10 @@
}
},
{
"t": 32.98,
"utc": "13:23:51.354",
"t": 31.05,
"utc": "13:57:46.295",
"step": "C: published twice (crash before marking) -> duplicate is a no-op",
"attachment_id": "85b3ce6d-b06a-49ab-bc80-07be18cfd5d9",
"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5",
"relay_restart_count": [
1
],
@@ -120,11 +120,11 @@
],
"outbox": [
{
"id": 107,
"id": 100,
"attempt": "1",
"available_at": "2026-11-13T13:23:48.361567Z",
"created_at": "2026-11-13T13:23:48.361567Z",
"published_at": "2026-11-13T13:23:49.734047Z",
"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
}
],
@@ -143,11 +143,15 @@
}
},
{
"t": 49.85,
"utc": "13:24:08.230",
"t": 56.68,
"utc": "13:58:11.927",
"step": "D: API died after COMMIT before 202 -> work still completed",
"attachment_id": "5778567a-0d6c-4322-b0e0-31a17a40994f",
"client_saw": "missing X-Instance-Id",
"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be",
"client_saw": {
"http": 502,
"x_instance_id": null,
"error_code": "unavailable"
},
"events": [
"enqueued",
"claimed",
@@ -169,20 +173,24 @@
}
},
{
"t": 50.15,
"utc": "13:24:08.530",
"t": 65.79,
"utc": "13:58:21.034",
"step": "E: API died after staging before COMMIT",
"attachment_id": "5b7070f4-ece0-49d9-bef4-1d704222955f",
"client_saw": "missing X-Instance-Id",
"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
},
{
"t": 58.86,
"utc": "13:24:17.232",
"t": 74.22,
"utc": "13:58:29.474",
"step": "E: janitor removed pending row and staging object",
"attachment_id": "5b7070f4-ece0-49d9-bef4-1d704222955f",
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
"janitor_dry_run": {
"abandoned_pending": 1,
"orphan_objects": 0,
@@ -199,14 +207,14 @@
"row_gone": true
},
{
"t": 74.96,
"utc": "13:24:33.332",
"t": 90.61,
"utc": "13:58:45.855",
"step": "relay and api restored to .env configuration"
}
],
"results": {
"A": {
"attachment_id": "41a53cd8-7e57-44b8-9c9f-12320b323750",
"attachment_id": "8695d9c8-cdc5-4f28-a17e-b2222d6ee5f4",
"events": [
"enqueued",
"claimed",
@@ -215,11 +223,11 @@
],
"outbox": [
{
"id": 105,
"id": 98,
"attempt": "1",
"available_at": "2026-11-13T13:23:19.956776Z",
"created_at": "2026-11-13T13:23:19.956776Z",
"published_at": "2026-11-13T13:23:26.328881Z",
"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
}
],
@@ -239,7 +247,7 @@
}
},
"B": {
"attachment_id": "a2401b04-a5db-4026-adc4-01d5040fdd2c",
"attachment_id": "73a95268-17ba-4a02-b38b-b4b28ceda56f",
"relay_restart_count": [
[
0
@@ -256,11 +264,11 @@
],
"outbox": [
{
"id": 106,
"id": 99,
"attempt": "1",
"available_at": "2026-11-13T13:23:38.382769Z",
"created_at": "2026-11-13T13:23:38.382769Z",
"published_at": "2026-11-13T13:23:40.445416Z",
"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
}
],
@@ -279,7 +287,7 @@
}
},
"C": {
"attachment_id": "85b3ce6d-b06a-49ab-bc80-07be18cfd5d9",
"attachment_id": "b418c3c7-74cf-492a-ab07-8e94202f47e5",
"relay_restart_count": [
1
],
@@ -292,11 +300,11 @@
],
"outbox": [
{
"id": 107,
"id": 100,
"attempt": "1",
"available_at": "2026-11-13T13:23:48.361567Z",
"created_at": "2026-11-13T13:23:48.361567Z",
"published_at": "2026-11-13T13:23:49.734047Z",
"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
}
],
@@ -315,8 +323,12 @@
}
},
"D": {
"attachment_id": "5778567a-0d6c-4322-b0e0-31a17a40994f",
"client_saw": "missing X-Instance-Id",
"attachment_id": "76c1ed67-220e-4fdd-bb63-7930dbad69be",
"client_saw": {
"http": 502,
"x_instance_id": null,
"error_code": "unavailable"
},
"events": [
"enqueued",
"claimed",
@@ -338,7 +350,7 @@
}
},
"E": {
"attachment_id": "5b7070f4-ece0-49d9-bef4-1d704222955f",
"attachment_id": "e42703f7-bf99-461f-910c-e03b66ba2b73",
"janitor_dry_run": {
"abandoned_pending": 1,
"orphan_objects": 0,