ЛР 5 — БВТ2303 — Брезгунова — на 5

This commit is contained in:
2026-11-13 13:10:15 +03:00
parent 276dbdad8a
commit ab9161be3d
64 changed files with 5191 additions and 34 deletions
+1
View File
@@ -0,0 +1 @@
{"result": "PASS", "images": ["fixture", "tiny_alpha", "portrait", "exif"], "negative_uploads": 12, "concurrent_repeats": 12, "message_ids": 1, "denied_s3_operations": 2}
+65
View File
@@ -0,0 +1,65 @@
{
"api1": {
"id": "60efa3f419bfd74a2f77b96c9ccdea043fe4a34f4fb771066ed0d68908f6ec1c",
"started_at": "2026-10-10T18:48:02.9628944Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"api2": {
"id": "4916d370dab864ac1f3c8fef3af7388eaced1ad9e59dfb7f9a45eb7cb30d29dd",
"started_at": "2026-10-10T18:48:02.90235717Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"broker": {
"id": "60e5fffbf85d87f2bccc121186222b5870b271e031a80592a985fe5be3561243",
"started_at": "2026-10-10T18:48:02.712816279Z",
"image": "redis:7.4.5-alpine3.21",
"memory_limit": 268435456,
"cpu_limit": 500000000
},
"janitor": {
"id": "c540012dfb508e26137881d6b4ef0e8d162d93aa753f879b9cd6e8554b77a095",
"started_at": "2026-10-10T18:48:02.649538204Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"lb": {
"id": "8f0f73c4ac37cc26c36aec49b228f1f143bbaa68e5ba97ccfe9737b38dc9e325",
"started_at": "2026-10-10T18:48:03.181041346Z",
"image": "haproxy:3.0.11-alpine",
"memory_limit": 134217728,
"cpu_limit": 500000000
},
"postgres": {
"id": "bbe0711ca3dd7531626aebc36f6f76e3356b462d311b395249a01d162e1cd4bc",
"started_at": "2026-10-10T18:48:02.819515794Z",
"image": "postgres:17.6-alpine3.22",
"memory_limit": 402653184,
"cpu_limit": 1000000000
},
"publisher": {
"id": "fa22076f49afcb5f7167dcf80e8e95c22c38eb5474f266f17f0a5e6159c50eb2",
"started_at": "2026-10-10T18:48:02.197399624Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"s3": {
"id": "481e131cee68518b2e3b5c9f06738d2aab54a80dbf89c93d0a32da328ab0d6bc",
"started_at": "2026-10-10T18:48:02.312938674Z",
"image": "mtusi-minio:RELEASE.2025-04-22T22-12-26Z",
"memory_limit": 536870912,
"cpu_limit": 1000000000
},
"worker": {
"id": "2380466d5e891c9cdeb42d4affd52504076ac9fc2510c33927a9085f72e0b303",
"started_at": "2026-10-10T18:48:02.443290696Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 2147483648,
"cpu_limit": 2000000000
}
}
+65
View File
@@ -0,0 +1,65 @@
{
"api1": {
"id": "60efa3f419bfd74a2f77b96c9ccdea043fe4a34f4fb771066ed0d68908f6ec1c",
"started_at": "2026-10-10T18:47:44.515499761Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"api2": {
"id": "4916d370dab864ac1f3c8fef3af7388eaced1ad9e59dfb7f9a45eb7cb30d29dd",
"started_at": "2026-10-10T18:47:44.426162896Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"broker": {
"id": "60e5fffbf85d87f2bccc121186222b5870b271e031a80592a985fe5be3561243",
"started_at": "2026-10-10T18:47:48.095671327Z",
"image": "redis:7.4.5-alpine3.21",
"memory_limit": 268435456,
"cpu_limit": 500000000
},
"janitor": {
"id": "c540012dfb508e26137881d6b4ef0e8d162d93aa753f879b9cd6e8554b77a095",
"started_at": "2026-10-10T18:44:30.392935244Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"lb": {
"id": "8f0f73c4ac37cc26c36aec49b228f1f143bbaa68e5ba97ccfe9737b38dc9e325",
"started_at": "2026-10-10T18:39:18.19823672Z",
"image": "haproxy:3.0.11-alpine",
"memory_limit": 134217728,
"cpu_limit": 500000000
},
"postgres": {
"id": "bbe0711ca3dd7531626aebc36f6f76e3356b462d311b395249a01d162e1cd4bc",
"started_at": "2026-10-10T18:39:05.370145141Z",
"image": "postgres:17.6-alpine3.22",
"memory_limit": 402653184,
"cpu_limit": 1000000000
},
"publisher": {
"id": "fa22076f49afcb5f7167dcf80e8e95c22c38eb5474f266f17f0a5e6159c50eb2",
"started_at": "2026-10-10T18:46:30.791311925Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"s3": {
"id": "481e131cee68518b2e3b5c9f06738d2aab54a80dbf89c93d0a32da328ab0d6bc",
"started_at": "2026-10-10T18:39:05.203195838Z",
"image": "mtusi-minio:RELEASE.2025-04-22T22-12-26Z",
"memory_limit": 536870912,
"cpu_limit": 1000000000
},
"worker": {
"id": "2380466d5e891c9cdeb42d4affd52504076ac9fc2510c33927a9085f72e0b303",
"started_at": "2026-10-10T18:47:32.697034265Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 2147483648,
"cpu_limit": 2000000000
}
}
+1
View File
@@ -0,0 +1 @@
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+7
View File
@@ -0,0 +1,7 @@
{
"ServerVersion": "29.8.0",
"OperatingSystem": "Docker Desktop",
"Architecture": "x86_64",
"NCPU": 20,
"MemTotal": 8129257472
}
+3
View File
@@ -0,0 +1,3 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 72, "failed_attempts": 2, "first_recovery_seconds": 2.625}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+65
View File
@@ -0,0 +1,65 @@
{
"api1": {
"id": "60efa3f419bfd74a2f77b96c9ccdea043fe4a34f4fb771066ed0d68908f6ec1c",
"started_at": "2026-10-10T18:48:02.9628944Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"api2": {
"id": "4916d370dab864ac1f3c8fef3af7388eaced1ad9e59dfb7f9a45eb7cb30d29dd",
"started_at": "2026-10-10T18:48:26.13794421Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"broker": {
"id": "60e5fffbf85d87f2bccc121186222b5870b271e031a80592a985fe5be3561243",
"started_at": "2026-10-10T18:48:02.712816279Z",
"image": "redis:7.4.5-alpine3.21",
"memory_limit": 268435456,
"cpu_limit": 500000000
},
"janitor": {
"id": "c540012dfb508e26137881d6b4ef0e8d162d93aa753f879b9cd6e8554b77a095",
"started_at": "2026-10-10T18:48:02.649538204Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"lb": {
"id": "8f0f73c4ac37cc26c36aec49b228f1f143bbaa68e5ba97ccfe9737b38dc9e325",
"started_at": "2026-10-10T18:48:03.181041346Z",
"image": "haproxy:3.0.11-alpine",
"memory_limit": 134217728,
"cpu_limit": 500000000
},
"postgres": {
"id": "bbe0711ca3dd7531626aebc36f6f76e3356b462d311b395249a01d162e1cd4bc",
"started_at": "2026-10-10T18:48:02.819515794Z",
"image": "postgres:17.6-alpine3.22",
"memory_limit": 402653184,
"cpu_limit": 1000000000
},
"publisher": {
"id": "fa22076f49afcb5f7167dcf80e8e95c22c38eb5474f266f17f0a5e6159c50eb2",
"started_at": "2026-10-10T18:48:02.197399624Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"s3": {
"id": "481e131cee68518b2e3b5c9f06738d2aab54a80dbf89c93d0a32da328ab0d6bc",
"started_at": "2026-10-10T18:48:02.312938674Z",
"image": "mtusi-minio:RELEASE.2025-04-22T22-12-26Z",
"memory_limit": 536870912,
"cpu_limit": 1000000000
},
"worker": {
"id": "2380466d5e891c9cdeb42d4affd52504076ac9fc2510c33927a9085f72e0b303",
"started_at": "2026-10-10T18:48:02.443290696Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 2147483648,
"cpu_limit": 2000000000
}
}
+1
View File
@@ -0,0 +1 @@
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
+5
View File
@@ -0,0 +1,5 @@
{
"Name": "12th Gen Intel(R) Core(TM) i7-12700H",
"NumberOfCores": 14,
"NumberOfLogicalProcessors": 20
}
+3
View File
@@ -0,0 +1,3 @@
{
"TotalPhysicalMemory": 16788811776
}
+8
View File
@@ -0,0 +1,8 @@
{
"result": "PASS",
"unchanged_mandatory_files": 17,
"scanned_files": 73,
"private_value_leaks": 0,
"local_secrets_ignored": true,
"scope": "mtusi2026lab5 only"
}
+1
View File
@@ -0,0 +1 @@
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
+2
View File
@@ -0,0 +1,2 @@
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
File diff suppressed because it is too large Load Diff
+119
View File
@@ -0,0 +1,119 @@
{
"result": "PASS",
"job": {
"attachment_id": "eb0730e0-8e8d-4ddb-976f-fba32e775fa7",
"status": "ready",
"version": 1,
"error_code": null,
"variants": [
{
"name": "thumbnail",
"width": 256,
"height": 160,
"sha256": "8fac43e7b4e9148871b7ce4373cdf954bdacad9ba8679847f27b62128e866fc6",
"object_key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/thumbnail",
"size_bytes": 6981,
"content_type": "image/jpeg"
},
{
"name": "crop",
"width": 128,
"height": 128,
"sha256": "7894b8099ad56bc8a8771eab1f52850a5e4bd07062b68a33c8a4954a08312270",
"object_key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/crop",
"size_bytes": 2858,
"content_type": "image/jpeg"
},
{
"name": "optimized",
"width": 320,
"height": 200,
"sha256": "45c5694bda8dda06f9025ae80065ebc59dd0e98ab37b7ce0f94b1d628f02ba24",
"object_key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/optimized",
"size_bytes": 2344,
"content_type": "image/webp"
}
],
"jobs": [
{
"id": "1ca4e4b8-3a7c-408a-ace8-2edef424137f",
"attachment_id": "eb0730e0-8e8d-4ddb-976f-fba32e775fa7",
"pipeline_version": 1,
"attempts": 1,
"status": "ready",
"next_attempt_at": "2026-10-10 18:46:27.122611+00:00",
"lease_until": null,
"error_code": null,
"created_at": "2026-10-10 18:46:27.122611+00:00"
}
],
"events": [
{
"event": "accepted",
"detail": "",
"created_at": "2026-10-10 18:46:27.123942+00:00"
},
{
"event": "published",
"detail": "1",
"created_at": "2026-10-10 18:46:31.492190+00:00"
},
{
"event": "processing",
"detail": "1",
"created_at": "2026-10-10 18:46:31.512682+00:00"
},
{
"event": "ready",
"detail": "",
"created_at": "2026-10-10 18:46:31.890810+00:00"
},
{
"event": "fault",
"detail": "after_result_commit",
"created_at": "2026-10-10 18:46:31.893146+00:00"
},
{
"event": "duplicate_ignored",
"detail": "",
"created_at": "2026-10-10 18:46:47.305597+00:00"
}
],
"objects": [
{
"key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/crop",
"size": 2858,
"etag": "\"38275e817df1512cfc45b119ee7d8af2\"",
"modified": "2026-10-10 18:46:31.878000+00:00"
},
{
"key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/optimized",
"size": 2344,
"etag": "\"364f200d7d03b39725dbebecac18f2be\"",
"modified": "2026-10-10 18:46:31.883000+00:00"
},
{
"key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/original",
"size": 111817,
"etag": "\"c2ab21400d8c13ea847e4d5d3c9832ad\"",
"modified": "2026-10-10 18:46:31.863000+00:00"
},
{
"key": "results/eb0730e0-8e8d-4ddb-976f-fba32e775fa7/v1/thumbnail",
"size": 6981,
"etag": "\"22d266a80d796be51d89a8690a065614\"",
"modified": "2026-10-10 18:46:31.872000+00:00"
}
]
},
"queue": {
"length": 0,
"aof": {
"appendonly": "yes"
},
"fsync": {
"appendfsync": "always"
},
"invalid": 1
}
}
+65
View File
@@ -0,0 +1,65 @@
{
"api1": {
"id": "e5506ad77a3e78452a2b6236940e6f1a88dcc09a1130615ed372895058e1007f",
"started_at": "2026-10-10T18:51:33.307922314Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"api2": {
"id": "cdb2985b7a90d988a472e3a95575b40210a668a5e03f3c61e1eee808c9207602",
"started_at": "2026-10-10T18:51:33.826863887Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"broker": {
"id": "60e5fffbf85d87f2bccc121186222b5870b271e031a80592a985fe5be3561243",
"started_at": "2026-10-10T18:48:02.712816279Z",
"image": "redis:7.4.5-alpine3.21",
"memory_limit": 268435456,
"cpu_limit": 500000000
},
"janitor": {
"id": "54f793a1d24d2007fb51a0e4fa05d5891b8da36ab4db1e0cc27e47305559fbef",
"started_at": "2026-10-10T18:51:33.659898913Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"lb": {
"id": "8f0f73c4ac37cc26c36aec49b228f1f143bbaa68e5ba97ccfe9737b38dc9e325",
"started_at": "2026-10-10T18:48:03.181041346Z",
"image": "haproxy:3.0.11-alpine",
"memory_limit": 134217728,
"cpu_limit": 500000000
},
"postgres": {
"id": "bbe0711ca3dd7531626aebc36f6f76e3356b462d311b395249a01d162e1cd4bc",
"started_at": "2026-10-10T18:48:02.819515794Z",
"image": "postgres:17.6-alpine3.22",
"memory_limit": 402653184,
"cpu_limit": 1000000000
},
"publisher": {
"id": "08f43d66ffc93acb166e6b22e086481c5cc68c5ba4c71b07ed7d07d8f852221a",
"started_at": "2026-10-10T18:51:33.133551482Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 1073741824,
"cpu_limit": 1000000000
},
"s3": {
"id": "481e131cee68518b2e3b5c9f06738d2aab54a80dbf89c93d0a32da328ab0d6bc",
"started_at": "2026-10-10T18:48:02.312938674Z",
"image": "mtusi-minio:RELEASE.2025-04-22T22-12-26Z",
"memory_limit": 536870912,
"cpu_limit": 1000000000
},
"worker": {
"id": "0087f01d5747626eec0ec61e83df1863523448499e940beb70b31339c5103940",
"started_at": "2026-10-10T18:51:33.498882247Z",
"image": "mtusi-messenger:lab5",
"memory_limit": 2147483648,
"cpu_limit": 2000000000
}
}
+1
View File
@@ -0,0 +1 @@
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
+99
View File
@@ -0,0 +1,99 @@
{
"result": "PASS",
"job": {
"attachment_id": "ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6",
"status": "ready",
"version": 1,
"error_code": null,
"variants": [
{
"name": "thumbnail",
"width": 256,
"height": 160,
"sha256": "8fac43e7b4e9148871b7ce4373cdf954bdacad9ba8679847f27b62128e866fc6",
"object_key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/thumbnail",
"size_bytes": 6981,
"content_type": "image/jpeg"
},
{
"name": "crop",
"width": 128,
"height": 128,
"sha256": "7894b8099ad56bc8a8771eab1f52850a5e4bd07062b68a33c8a4954a08312270",
"object_key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/crop",
"size_bytes": 2858,
"content_type": "image/jpeg"
},
{
"name": "optimized",
"width": 320,
"height": 200,
"sha256": "45c5694bda8dda06f9025ae80065ebc59dd0e98ab37b7ce0f94b1d628f02ba24",
"object_key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/optimized",
"size_bytes": 2344,
"content_type": "image/webp"
}
],
"jobs": [
{
"id": "0bb672c2-6589-4868-8575-8150cc12a22e",
"attachment_id": "ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6",
"pipeline_version": 1,
"attempts": 1,
"status": "ready",
"next_attempt_at": "2026-10-10 18:51:20.509622+00:00",
"lease_until": null,
"error_code": null,
"created_at": "2026-10-10 18:51:20.509622+00:00"
}
],
"events": [
{
"event": "accepted",
"detail": "",
"created_at": "2026-10-10 18:51:20.511121+00:00"
},
{
"event": "published",
"detail": "1",
"created_at": "2026-10-10 18:51:27.153825+00:00"
},
{
"event": "processing",
"detail": "1",
"created_at": "2026-10-10 18:51:27.305794+00:00"
},
{
"event": "ready",
"detail": "",
"created_at": "2026-10-10 18:51:27.690925+00:00"
}
],
"objects": [
{
"key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/crop",
"size": 2858,
"etag": "\"38275e817df1512cfc45b119ee7d8af2\"",
"modified": "2026-10-10 18:51:27.679000+00:00"
},
{
"key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/optimized",
"size": 2344,
"etag": "\"364f200d7d03b39725dbebecac18f2be\"",
"modified": "2026-10-10 18:51:27.685000+00:00"
},
{
"key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/original",
"size": 111817,
"etag": "\"c2ab21400d8c13ea847e4d5d3c9832ad\"",
"modified": "2026-10-10 18:51:27.663000+00:00"
},
{
"key": "results/ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6/v1/thumbnail",
"size": 6981,
"etag": "\"22d266a80d796be51d89a8690a065614\"",
"modified": "2026-10-10 18:51:27.672000+00:00"
}
]
}
}
+1
View File
@@ -0,0 +1 @@
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
+1
View File
@@ -0,0 +1 @@
{"result": "PASS", "removed": 2, "active_preserved": "ed1fcdc1-eef3-4bb0-ad1f-feb2622a54c6", "expired_failed": "4359a166-3817-43ed-9215-c5dfa9d828c0", "old_orphan_removed": true, "fresh_orphan_preserved": true, "expired_replay_denied": true}
+14
View File
@@ -0,0 +1,14 @@
{
"result": "PASS",
"pipeline_scenarios": 15,
"public_smoke": true,
"public_persistence": true,
"public_failover": true,
"image_acceptance": true,
"base_url": "http://127.0.0.1:8085",
"post_commit_redelivery": true,
"staging_retention": true,
"openapi_validation": true,
"mandatory_integrity": true,
"production_smoke": true
}