forked from mtusi2026/mtusi2026lab5
Выполнить лабораторную 5: асинхронный pipeline и исследование идемпотентности
This commit is contained in:
+15
-3
@@ -1,5 +1,17 @@
|
||||
# Доказательства
|
||||
# Доказательства лабораторной 5
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
Файлы получены реальными запусками из этого репозитория. Credentials, тела запросов с паролями и сессионные токены сюда не записываются.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
- `check.txt`, `validate.txt`, `smoke.txt`, `readiness.txt`: публичные проверки и две здоровые API.
|
||||
- `pipeline-faults.json`: уровень 5, трек 2; матрица crash/дубли/версии и дополнительные retry/replay/outbox-сценарии.
|
||||
- `fault-summary.csv`, `pipeline-faults.png`, `pipeline-faults.svg`: сводка матрицы, генерируется `scripts/summarize_research.py`.
|
||||
- `lifecycle.json`: SIGKILL API, restart broker, сохранность принятого файла и реальный lease timeout.
|
||||
- `backpressure.json`: 100 загрузок при остановленном broker, 429 на следующей, полное восстановление.
|
||||
- `cleanup-and-limits.json`: настоящие child timeout/MemoryError с уменьшенными тестовыми бюджетами; cleanup с ускоренными часами.
|
||||
- `uploads-negative.json`, `private-storage.json`, `image-variants.json`: ограничения, авторизация, приватность и реальные варианты изображений.
|
||||
- `cache-consistency.txt`, `idempotency.json`: сохранённые возможности прошлых лабораторных.
|
||||
- `persistence.txt`, `persistence-before.json`, `persistence-after.json`, `persistence-verified.json`: сохранность и проверка фактического перезапуска всех сервисов.
|
||||
- `failover.txt`: потеря одной API с восстановлением записи.
|
||||
- `runtime.json`, `containers.json`: безопасная сводка Docker VM, лимитов и volumes.
|
||||
|
||||
Матрица не измеряет production SLA. Для ускоренной lease/cleanup/retry-проверки явно указано изменение тестовых часов/расписания; отдельный lifecycle использует настоящий lease.
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"accepted_while_broker_down": 100,
|
||||
"next_upload_status": 429,
|
||||
"messages_available": true,
|
||||
"all_ready": 100,
|
||||
"admission_seconds": 2.997,
|
||||
"drain_seconds": 24.64,
|
||||
"lost_accepted": 0,
|
||||
"profile": "100 PNG 320x200, 8 upload clients, 1 serial worker; closed-loop; not a throughput benchmark"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
cache_key_exists=True
|
||||
ttl_seconds=3599
|
||||
avg_latency_ms=1.90
|
||||
p95_latency_ms=2.60
|
||||
stale_cache_rejected=True
|
||||
forged_identity_rejected=True
|
||||
concurrent_identity_checks=8/8
|
||||
malformed_cache_recovers=True
|
||||
repopulated_revoked_cache_rejected=True
|
||||
short_ttl_recovers_from_db=True
|
||||
logout_revokes_cache=True
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"rows": [
|
||||
{
|
||||
"case": "real_child_timeout_with_test_budget_50ms",
|
||||
"status": "PASS",
|
||||
"elapsed_ms": 68.024
|
||||
},
|
||||
{
|
||||
"case": "real_child_address_space_limit_32MiB",
|
||||
"status": "PASS",
|
||||
"error_code": "resource_limit"
|
||||
},
|
||||
{
|
||||
"case": "staging_dry_run_apply_repeat",
|
||||
"status": "PASS",
|
||||
"candidates": 23,
|
||||
"repeat_candidates": 0,
|
||||
"active_retained": true,
|
||||
"clock": "advanced_2_days"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
[
|
||||
{
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"id": "a6c7dcf307879d09ac07b0b887033559137681728328ba576f97fda75b221f10",
|
||||
"hostname": "a6c7dcf30787",
|
||||
"service": "api",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:31:20.56568455Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"id": "d43ff1cbdbbc9743e6702bf486fd2b08565d16938a1c43cd5f3580a8319fb951",
|
||||
"hostname": "d43ff1cbdbbc",
|
||||
"service": "api",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:31:20.41170375Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"id": "43400a668650580ec394d0355b5d57094552b72ac2045c469024a488fae8819b",
|
||||
"hostname": "43400a668650",
|
||||
"service": "broker",
|
||||
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:31:28.257499705Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_broker_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-db-1",
|
||||
"id": "f20a9e4d87839b3be31ca6c91db0b948689899ea06a88df9efa4d4d1ba6791d4",
|
||||
"hostname": "f20a9e4d8783",
|
||||
"service": "db",
|
||||
"image_id": "sha256:b4fc54c57484e6077fad42c66fc44a6f5e7f5892b1a92fa48e910938bf5ce0ad",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:51.02995726Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_postgres_data",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-janitor-1",
|
||||
"id": "8ec2d9f5b984f65c1208a23cfa3605f764fef9f62af2173f494b6fbf0b67f4a6",
|
||||
"hostname": "8ec2d9f5b984",
|
||||
"service": "janitor",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:52.911355944Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"id": "14adfe35371f51e2272c03a8a300f62311ff31ba28236048a75e12d648e6fd82",
|
||||
"hostname": "14adfe35371f",
|
||||
"service": "lb",
|
||||
"image_id": "sha256:6a7f903d19e76bd3fa7fb5225e33d6acd5eb7f52407eece4858b58831c3e256a",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:31:14.230730447Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 67108864,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8085"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"id": "c265f53ce7e970448fe93e6cc543d2256e025efc3fb28f5b19757bafaa46f61a",
|
||||
"hostname": "c265f53ce7e9",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-20T15:32:07.768599294Z",
|
||||
"health": null,
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-publisher-1",
|
||||
"id": "acdc5d34e3b03523ae5209ee57234d257e370740fef663745d9981bc1744ee5a",
|
||||
"hostname": "acdc5d34e3b0",
|
||||
"service": "publisher",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:31:38.59219456Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"id": "554bcd156ad20d89a0c2b1f8d57e17fb825e4d1af032553114f74f5a82a752d1",
|
||||
"hostname": "554bcd156ad2",
|
||||
"service": "s3",
|
||||
"image_id": "sha256:8f08aee614800a237906bd48114d733e5ac5bfac4ccdf731f141b0e880d7a253",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:51.22311738Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 805306368,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_s3_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-init-1",
|
||||
"id": "d7a59a3102909606b2c42b96efbeb186573aed665c4ff2b0eb4a6a4975b37759",
|
||||
"hostname": "d7a59a310290",
|
||||
"service": "s3-init",
|
||||
"image_id": "sha256:5dee113ef037d349ac22ab6c20193ade5c4701e2a38e3777fa1c1bec1c063ad1",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-20T15:32:07.290372244Z",
|
||||
"health": null,
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-valkey-1",
|
||||
"id": "8c620bff1a6cf99ddfe2799e69b51943c76b0be02039dda64fd34d0a62f4ab83",
|
||||
"hostname": "8c620bff1a6c",
|
||||
"service": "valkey",
|
||||
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:50.863364684Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_valkey_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"id": "72ecae4e267759c0dccfbf0bd9244852c4da3942dacd70c9b5cc11cee5a0d0e7",
|
||||
"hostname": "72ecae4e2677",
|
||||
"service": "worker",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:31:38.594433513Z",
|
||||
"health": null,
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 805306368,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8085"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 114, "failed_attempts": 2, "first_recovery_seconds": 2.171}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,6 @@
|
||||
scenario,repeats,mean_ms,min_ms,max_ms,stdev_ms,object_sets,objects_per_current_version,failures
|
||||
before_effect,3,1550.718,1321.347,1786.888,232.845,1,4,0
|
||||
after_effect,3,1549.527,1334.593,1872.025,284.404,1,4,0
|
||||
after_commit,3,1383.915,1275.246,1590.414,178.915,1,4,0
|
||||
concurrent_duplicates,3,143.795,121.12,172.849,26.448,1,4,0
|
||||
reorder_stale_version,3,223.21,109.191,440.476,188.235,1,4,0
|
||||
|
@@ -0,0 +1 @@
|
||||
{"parallel_requests": 16, "observed_instances": ["46b8beae40b9", "a684e742220a"], "unique_messages": 1, "conflict": 409, "semantic_replay": true, "user_scope": true}
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"rows": [
|
||||
{
|
||||
"case": "small_alpha",
|
||||
"status": "PASS",
|
||||
"dimensions": {
|
||||
"thumbnail": [
|
||||
80,
|
||||
40
|
||||
],
|
||||
"crop": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"optimized": [
|
||||
80,
|
||||
40
|
||||
]
|
||||
},
|
||||
"original_sha256": "2a4135aed00454b2566994964a2efffd9fd5593454d4d2f5b102aa3c42b2d3bd"
|
||||
},
|
||||
{
|
||||
"case": "exif_orientation",
|
||||
"status": "PASS",
|
||||
"dimensions": {
|
||||
"thumbnail": [
|
||||
64,
|
||||
256
|
||||
],
|
||||
"crop": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"optimized": [
|
||||
100,
|
||||
400
|
||||
]
|
||||
},
|
||||
"original_sha256": "43ba669d1496cb5857d62be714452e087d474b2421f70f3cba3264dca491d026"
|
||||
},
|
||||
{
|
||||
"case": "center_crop",
|
||||
"status": "PASS",
|
||||
"dimensions": {
|
||||
"thumbnail": [
|
||||
256,
|
||||
64
|
||||
],
|
||||
"crop": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"optimized": [
|
||||
400,
|
||||
100
|
||||
]
|
||||
},
|
||||
"original_sha256": "983bf89131f785c45b587c57640d62d223af08bfc71fcf28a27faed486af9583"
|
||||
},
|
||||
{
|
||||
"case": "large_fit",
|
||||
"status": "PASS",
|
||||
"dimensions": {
|
||||
"thumbnail": [
|
||||
256,
|
||||
128
|
||||
],
|
||||
"crop": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"optimized": [
|
||||
1280,
|
||||
640
|
||||
]
|
||||
},
|
||||
"original_sha256": "fd1aebd1ed7ce3d142d0e38b7dc2d3b6c106a71d399e6fad25706c1f3ad8850b"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"rows": [
|
||||
{
|
||||
"scenario": "stopped_worker_api_kill_outbox_broker_restart",
|
||||
"status": "PASS",
|
||||
"attachment_id": "882900a6-2551-4975-90ff-1a1ca424b0ee",
|
||||
"stream_length_before": 1,
|
||||
"stream_length_after": 1,
|
||||
"ready_ms": 3023.094,
|
||||
"containers_before": {
|
||||
"mtusi-lab5-api-1": {
|
||||
"id": "a6c7dcf30787",
|
||||
"started_at": "2026-11-20T15:28:14.515508921Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi-lab5-api-2": {
|
||||
"id": "d43ff1cbdbbc",
|
||||
"started_at": "2026-11-20T15:27:52.500502971Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi-lab5-broker-1": {
|
||||
"id": "43400a668650",
|
||||
"started_at": "2026-11-20T15:27:50.923553697Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"containers_after": {
|
||||
"mtusi-lab5-api-1": {
|
||||
"id": "a6c7dcf30787",
|
||||
"started_at": "2026-11-20T15:31:20.56568455Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi-lab5-api-2": {
|
||||
"id": "d43ff1cbdbbc",
|
||||
"started_at": "2026-11-20T15:31:20.41170375Z",
|
||||
"volumes": []
|
||||
},
|
||||
"mtusi-lab5-broker-1": {
|
||||
"id": "43400a668650",
|
||||
"started_at": "2026-11-20T15:31:28.257499705Z",
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"scenario": "crash_real_lease_expiry",
|
||||
"status": "PASS",
|
||||
"attachment_id": "4c7827d8-b5f2-4b58-a019-a5d26099c12b",
|
||||
"ready_ms": 28922.739,
|
||||
"job": {
|
||||
"job_id": "12c2c00c-8114-4c19-a9c6-2b4ffd42bd29",
|
||||
"state": "ready",
|
||||
"attempt": 2,
|
||||
"lease_until": null,
|
||||
"pipeline_version": 1,
|
||||
"published_at": "2026-11-20 15:32:05.409533+00:00",
|
||||
"deliveries": 2
|
||||
},
|
||||
"lease_clock": "real"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
[
|
||||
{
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"id": "a6c7dcf307879d09ac07b0b887033559137681728328ba576f97fda75b221f10",
|
||||
"hostname": "a6c7dcf30787",
|
||||
"service": "api",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:52.845602697Z",
|
||||
"health": "starting",
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"id": "d43ff1cbdbbc9743e6702bf486fd2b08565d16938a1c43cd5f3580a8319fb951",
|
||||
"hostname": "d43ff1cbdbbc",
|
||||
"service": "api",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:52.500502971Z",
|
||||
"health": "starting",
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"id": "43400a668650580ec394d0355b5d57094552b72ac2045c469024a488fae8819b",
|
||||
"hostname": "43400a668650",
|
||||
"service": "broker",
|
||||
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:50.923553697Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_broker_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-db-1",
|
||||
"id": "f20a9e4d87839b3be31ca6c91db0b948689899ea06a88df9efa4d4d1ba6791d4",
|
||||
"hostname": "f20a9e4d8783",
|
||||
"service": "db",
|
||||
"image_id": "sha256:b4fc54c57484e6077fad42c66fc44a6f5e7f5892b1a92fa48e910938bf5ce0ad",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:51.02995726Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_postgres_data",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-janitor-1",
|
||||
"id": "8ec2d9f5b984f65c1208a23cfa3605f764fef9f62af2173f494b6fbf0b67f4a6",
|
||||
"hostname": "8ec2d9f5b984",
|
||||
"service": "janitor",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:52.911355944Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"id": "65e0d941c1b56b64cfc79d597ded2d8a64f8aa32ce378e6f3c737525e7ab4f37",
|
||||
"hostname": "65e0d941c1b5",
|
||||
"service": "lb",
|
||||
"image_id": "sha256:6a7f903d19e76bd3fa7fb5225e33d6acd5eb7f52407eece4858b58831c3e256a",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:51.271530136Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 67108864,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "",
|
||||
"HostPort": "8085"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"id": "c265f53ce7e970448fe93e6cc543d2256e025efc3fb28f5b19757bafaa46f61a",
|
||||
"hostname": "c265f53ce7e9",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-20T15:27:36.704304537Z",
|
||||
"health": null,
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-publisher-1",
|
||||
"id": "acdc5d34e3b03523ae5209ee57234d257e370740fef663745d9981bc1744ee5a",
|
||||
"hostname": "acdc5d34e3b0",
|
||||
"service": "publisher",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:52.978480354Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"id": "554bcd156ad20d89a0c2b1f8d57e17fb825e4d1af032553114f74f5a82a752d1",
|
||||
"hostname": "554bcd156ad2",
|
||||
"service": "s3",
|
||||
"image_id": "sha256:8f08aee614800a237906bd48114d733e5ac5bfac4ccdf731f141b0e880d7a253",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:51.22311738Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 805306368,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_s3_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-init-1",
|
||||
"id": "d7a59a3102909606b2c42b96efbeb186573aed665c4ff2b0eb4a6a4975b37759",
|
||||
"hostname": "d7a59a310290",
|
||||
"service": "s3-init",
|
||||
"image_id": "sha256:5dee113ef037d349ac22ab6c20193ade5c4701e2a38e3777fa1c1bec1c063ad1",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-20T15:27:36.140115508Z",
|
||||
"health": null,
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-valkey-1",
|
||||
"id": "8c620bff1a6cf99ddfe2799e69b51943c76b0be02039dda64fd34d0a62f4ab83",
|
||||
"hostname": "8c620bff1a6c",
|
||||
"service": "valkey",
|
||||
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:50.863364684Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_valkey_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"id": "72ecae4e267759c0dccfbf0bd9244852c4da3942dacd70c9b5cc11cee5a0d0e7",
|
||||
"hostname": "72ecae4e2677",
|
||||
"service": "worker",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:52.000472553Z",
|
||||
"health": null,
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 805306368,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,197 @@
|
||||
[
|
||||
{
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"id": "a6c7dcf307879d09ac07b0b887033559137681728328ba576f97fda75b221f10",
|
||||
"hostname": "a6c7dcf30787",
|
||||
"service": "api",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:26:31.479663938Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"id": "d43ff1cbdbbc9743e6702bf486fd2b08565d16938a1c43cd5f3580a8319fb951",
|
||||
"hostname": "d43ff1cbdbbc",
|
||||
"service": "api",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:26:31.171165305Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"id": "43400a668650580ec394d0355b5d57094552b72ac2045c469024a488fae8819b",
|
||||
"hostname": "43400a668650",
|
||||
"service": "broker",
|
||||
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:25:26.510562536Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_broker_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-db-1",
|
||||
"id": "f20a9e4d87839b3be31ca6c91db0b948689899ea06a88df9efa4d4d1ba6791d4",
|
||||
"hostname": "f20a9e4d8783",
|
||||
"service": "db",
|
||||
"image_id": "sha256:b4fc54c57484e6077fad42c66fc44a6f5e7f5892b1a92fa48e910938bf5ce0ad",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:18:03.662849926Z",
|
||||
"health": "healthy",
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_postgres_data",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-janitor-1",
|
||||
"id": "8ec2d9f5b984f65c1208a23cfa3605f764fef9f62af2173f494b6fbf0b67f4a6",
|
||||
"hostname": "8ec2d9f5b984",
|
||||
"service": "janitor",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:26:31.168446315Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"id": "65e0d941c1b56b64cfc79d597ded2d8a64f8aa32ce378e6f3c737525e7ab4f37",
|
||||
"hostname": "65e0d941c1b5",
|
||||
"service": "lb",
|
||||
"image_id": "sha256:6a7f903d19e76bd3fa7fb5225e33d6acd5eb7f52407eece4858b58831c3e256a",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:26:31.646228277Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 67108864,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "",
|
||||
"HostPort": "8085"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"id": "c265f53ce7e970448fe93e6cc543d2256e025efc3fb28f5b19757bafaa46f61a",
|
||||
"hostname": "c265f53ce7e9",
|
||||
"service": "migrate",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-20T15:27:36.704304537Z",
|
||||
"health": null,
|
||||
"nano_cpus": 2000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-publisher-1",
|
||||
"id": "acdc5d34e3b03523ae5209ee57234d257e370740fef663745d9981bc1744ee5a",
|
||||
"hostname": "acdc5d34e3b0",
|
||||
"service": "publisher",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:38.479168598Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 201326592,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"id": "554bcd156ad20d89a0c2b1f8d57e17fb825e4d1af032553114f74f5a82a752d1",
|
||||
"hostname": "554bcd156ad2",
|
||||
"service": "s3",
|
||||
"image_id": "sha256:8f08aee614800a237906bd48114d733e5ac5bfac4ccdf731f141b0e880d7a253",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:18:03.664833261Z",
|
||||
"health": null,
|
||||
"nano_cpus": 500000000,
|
||||
"memory_bytes": 805306368,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_s3_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-init-1",
|
||||
"id": "d7a59a3102909606b2c42b96efbeb186573aed665c4ff2b0eb4a6a4975b37759",
|
||||
"hostname": "d7a59a310290",
|
||||
"service": "s3-init",
|
||||
"image_id": "sha256:5dee113ef037d349ac22ab6c20193ade5c4701e2a38e3777fa1c1bec1c063ad1",
|
||||
"status": "exited",
|
||||
"started_at": "2026-11-20T15:27:36.140115508Z",
|
||||
"health": null,
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 536870912,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-valkey-1",
|
||||
"id": "8c620bff1a6cf99ddfe2799e69b51943c76b0be02039dda64fd34d0a62f4ab83",
|
||||
"hostname": "8c620bff1a6c",
|
||||
"service": "valkey",
|
||||
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:18:03.65752301Z",
|
||||
"health": null,
|
||||
"nano_cpus": 250000000,
|
||||
"memory_bytes": 134217728,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
{
|
||||
"name": "mtusi-lab5_valkey_data",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"id": "72ecae4e267759c0dccfbf0bd9244852c4da3942dacd70c9b5cc11cee5a0d0e7",
|
||||
"hostname": "72ecae4e2677",
|
||||
"service": "worker",
|
||||
"image_id": "sha256:340a6a6f74699a98e63e9725282594990013b479be7ae533fddf40cbab866ada",
|
||||
"status": "running",
|
||||
"started_at": "2026-11-20T15:27:38.475722085Z",
|
||||
"health": null,
|
||||
"nano_cpus": 1000000000,
|
||||
"memory_bytes": 805306368,
|
||||
"published_ports": {},
|
||||
"volumes": []
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"running_processes_restarted": 10,
|
||||
"rows": [
|
||||
{
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"service": "api",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"service": "api",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"service": "broker",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-db-1",
|
||||
"service": "db",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-janitor-1",
|
||||
"service": "janitor",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"service": "lb",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-publisher-1",
|
||||
"service": "publisher",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"service": "s3",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-valkey-1",
|
||||
"service": "valkey",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
},
|
||||
{
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"service": "worker",
|
||||
"same_container": true,
|
||||
"process_restarted": true,
|
||||
"same_volumes": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8085"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,213 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"track": 2,
|
||||
"matrix_repeats": 3,
|
||||
"rows": [
|
||||
{
|
||||
"iteration": 1,
|
||||
"scenario": "before_effect",
|
||||
"status": "PASS",
|
||||
"attempts": 2,
|
||||
"recovery_ms": 1786.888,
|
||||
"objects": 4,
|
||||
"lease_expiry": "accelerated"
|
||||
},
|
||||
{
|
||||
"iteration": 1,
|
||||
"scenario": "after_effect",
|
||||
"status": "PASS",
|
||||
"attempts": 2,
|
||||
"recovery_ms": 1441.962,
|
||||
"objects": 4,
|
||||
"lease_expiry": "accelerated"
|
||||
},
|
||||
{
|
||||
"iteration": 1,
|
||||
"scenario": "after_commit",
|
||||
"status": "PASS",
|
||||
"attempts": 1,
|
||||
"recovery_ms": 1286.085,
|
||||
"objects": 4,
|
||||
"lease_expiry": "not_needed"
|
||||
},
|
||||
{
|
||||
"iteration": 1,
|
||||
"scenario": "concurrent_duplicates",
|
||||
"status": "PASS",
|
||||
"deliveries": 8,
|
||||
"effects": 1,
|
||||
"recovery_ms": 137.417,
|
||||
"outcomes": [
|
||||
"ready",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer"
|
||||
],
|
||||
"objects": 4
|
||||
},
|
||||
{
|
||||
"iteration": 1,
|
||||
"scenario": "reorder_stale_version",
|
||||
"status": "PASS",
|
||||
"old_deliveries": 5,
|
||||
"current_version": 2,
|
||||
"old_objects": 0,
|
||||
"objects": 4,
|
||||
"recovery_ms": 440.476
|
||||
},
|
||||
{
|
||||
"iteration": 2,
|
||||
"scenario": "before_effect",
|
||||
"status": "PASS",
|
||||
"attempts": 2,
|
||||
"recovery_ms": 1543.92,
|
||||
"objects": 4,
|
||||
"lease_expiry": "accelerated"
|
||||
},
|
||||
{
|
||||
"iteration": 2,
|
||||
"scenario": "after_effect",
|
||||
"status": "PASS",
|
||||
"attempts": 2,
|
||||
"recovery_ms": 1872.025,
|
||||
"objects": 4,
|
||||
"lease_expiry": "accelerated"
|
||||
},
|
||||
{
|
||||
"iteration": 2,
|
||||
"scenario": "after_commit",
|
||||
"status": "PASS",
|
||||
"attempts": 1,
|
||||
"recovery_ms": 1590.414,
|
||||
"objects": 4,
|
||||
"lease_expiry": "not_needed"
|
||||
},
|
||||
{
|
||||
"iteration": 2,
|
||||
"scenario": "concurrent_duplicates",
|
||||
"status": "PASS",
|
||||
"deliveries": 8,
|
||||
"effects": 1,
|
||||
"recovery_ms": 172.849,
|
||||
"outcomes": [
|
||||
"ready",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer"
|
||||
],
|
||||
"objects": 4
|
||||
},
|
||||
{
|
||||
"iteration": 2,
|
||||
"scenario": "reorder_stale_version",
|
||||
"status": "PASS",
|
||||
"old_deliveries": 5,
|
||||
"current_version": 2,
|
||||
"old_objects": 0,
|
||||
"objects": 4,
|
||||
"recovery_ms": 109.191
|
||||
},
|
||||
{
|
||||
"iteration": 3,
|
||||
"scenario": "before_effect",
|
||||
"status": "PASS",
|
||||
"attempts": 2,
|
||||
"recovery_ms": 1321.347,
|
||||
"objects": 4,
|
||||
"lease_expiry": "accelerated"
|
||||
},
|
||||
{
|
||||
"iteration": 3,
|
||||
"scenario": "after_effect",
|
||||
"status": "PASS",
|
||||
"attempts": 2,
|
||||
"recovery_ms": 1334.593,
|
||||
"objects": 4,
|
||||
"lease_expiry": "accelerated"
|
||||
},
|
||||
{
|
||||
"iteration": 3,
|
||||
"scenario": "after_commit",
|
||||
"status": "PASS",
|
||||
"attempts": 1,
|
||||
"recovery_ms": 1275.246,
|
||||
"objects": 4,
|
||||
"lease_expiry": "not_needed"
|
||||
},
|
||||
{
|
||||
"iteration": 3,
|
||||
"scenario": "concurrent_duplicates",
|
||||
"status": "PASS",
|
||||
"deliveries": 8,
|
||||
"effects": 1,
|
||||
"recovery_ms": 121.12,
|
||||
"outcomes": [
|
||||
"defer",
|
||||
"ready",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer",
|
||||
"defer"
|
||||
],
|
||||
"objects": 4
|
||||
},
|
||||
{
|
||||
"iteration": 3,
|
||||
"scenario": "reorder_stale_version",
|
||||
"status": "PASS",
|
||||
"old_deliveries": 5,
|
||||
"current_version": 2,
|
||||
"old_objects": 0,
|
||||
"objects": 4,
|
||||
"recovery_ms": 119.964
|
||||
},
|
||||
{
|
||||
"scenario": "published_v1_then_v2_then_stale_v1",
|
||||
"status": "PASS",
|
||||
"current_version": 2,
|
||||
"objects": 4
|
||||
},
|
||||
{
|
||||
"scenario": "permanent_failed_replay",
|
||||
"status": "PASS",
|
||||
"objects": 4
|
||||
},
|
||||
{
|
||||
"scenario": "bounded_retry_jitter",
|
||||
"status": "PASS",
|
||||
"max_attempts": 5,
|
||||
"delays_seconds": [
|
||||
1.080882,
|
||||
2.447441,
|
||||
2.182634,
|
||||
8.30795
|
||||
]
|
||||
},
|
||||
{
|
||||
"scenario": "outbox_republish",
|
||||
"status": "PASS",
|
||||
"objects": 4
|
||||
}
|
||||
],
|
||||
"accepted_in_database": 151,
|
||||
"invariants": {
|
||||
"accepted_tasks_lost": 0,
|
||||
"duplicate_variant_sets": 0,
|
||||
"stale_version_overwrites": 0
|
||||
},
|
||||
"limitations": [
|
||||
"matrix lease expiry accelerated with SQL",
|
||||
"single host, worker processing is serial except intentional duplicate probe",
|
||||
"no disk-loss or network partition proof"
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 62 KiB |
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"anonymous_bucket_and_object_status": [
|
||||
403,
|
||||
403
|
||||
],
|
||||
"application_admin_operations_denied": [
|
||||
"create_bucket",
|
||||
"get_bucket_policy",
|
||||
"write_outside_prefix"
|
||||
],
|
||||
"visible_bucket_names": [
|
||||
"messenger-attachments"
|
||||
],
|
||||
"console_reachable": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS: healthy API replicas observed through LB
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"ServerVersion": "27.4.0",
|
||||
"Architecture": "aarch64",
|
||||
"OSType": "linux",
|
||||
"NCPU": 4,
|
||||
"MemTotal": 8308158464,
|
||||
"KernelVersion": "6.8.0-50-generic"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8085"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"cases": [
|
||||
{
|
||||
"case": "corrupt_png",
|
||||
"status": 415
|
||||
},
|
||||
{
|
||||
"case": "truncated_png",
|
||||
"status": 415
|
||||
},
|
||||
{
|
||||
"case": "mime_spoof",
|
||||
"status": 415
|
||||
},
|
||||
{
|
||||
"case": "unsupported_mime",
|
||||
"status": 415
|
||||
},
|
||||
{
|
||||
"case": "empty_payload",
|
||||
"status": 415
|
||||
},
|
||||
{
|
||||
"case": "unsafe_filename",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"case": "unsafe_filename",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"case": "unsafe_filename",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"case": "unsafe_filename",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"case": "unsafe_filename",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"case": "unsafe_filename",
|
||||
"status": 400
|
||||
},
|
||||
{
|
||||
"case": "foreign_chat_upload",
|
||||
"status": 404
|
||||
},
|
||||
{
|
||||
"case": "unauthenticated_upload",
|
||||
"status": 401
|
||||
},
|
||||
{
|
||||
"case": "over_40_million_pixels",
|
||||
"status": 413
|
||||
},
|
||||
{
|
||||
"case": "oversized_content_length_before_body",
|
||||
"status": 413
|
||||
},
|
||||
{
|
||||
"case": "chunked_oversize",
|
||||
"status": 413
|
||||
},
|
||||
{
|
||||
"case": "foreign_attachment_metadata_and_bytes",
|
||||
"status": 404
|
||||
},
|
||||
{
|
||||
"case": "cross_chat_and_unknown_attachment",
|
||||
"status": 404
|
||||
},
|
||||
{
|
||||
"case": "attachment_idempotency_and_conflict",
|
||||
"status": "201/409"
|
||||
},
|
||||
{
|
||||
"case": "truncated_jpeg",
|
||||
"status": 415
|
||||
},
|
||||
{
|
||||
"case": "interrupted_http_body",
|
||||
"metadata_or_object_added": false
|
||||
}
|
||||
],
|
||||
"count": 21
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
Reference in New Issue
Block a user