[+] lab4
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"stopped": {
|
||||
"container": "01ac5da3549e234a658a6202029fec3661951caf9cd6230f71536579465b51df",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"instance": "68057e4f671d4bc4beebe6446a39f551",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"stopped_at_utc": "2026-11-02T09:10:52.334643+00:00",
|
||||
"stop_seconds": 0.415,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
},
|
||||
"download_instance": "4bd9e299c91d4af99e1b94bab75f8f3d",
|
||||
"same_bytes": true,
|
||||
"same_sha256": true,
|
||||
"seconds_from_action_start": 1.988
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"parallel_requests": 8,
|
||||
"observed_instances": [
|
||||
"3ca208a978e441ccba13625143527d66",
|
||||
"de89643f69534e43bc1111510e0a993e"
|
||||
],
|
||||
"responses_201": 8,
|
||||
"messages_created": 1,
|
||||
"different_body_status": 409
|
||||
}
|
||||
@@ -0,0 +1,612 @@
|
||||
{
|
||||
"captured_at_utc": "2026-11-02T09:15:37.434138+00:00",
|
||||
"result": "PASS",
|
||||
"context": {
|
||||
"git_commit": "ec540a1a725862a8619fcb758daec4ad197f0dd5",
|
||||
"tracked_worktree_dirty": true,
|
||||
"host_python": "3.13.7",
|
||||
"host_os": "macOS-27.2-arm64-arm-64bit-Mach-O",
|
||||
"docker_version": "29.8.2",
|
||||
"compose_version": "5.6.0",
|
||||
"contract_version": "1.4.0",
|
||||
"endpoint": {
|
||||
"scheme": "http",
|
||||
"host": "localhost",
|
||||
"port": 8080
|
||||
}
|
||||
},
|
||||
"input": {
|
||||
"format": "PNG",
|
||||
"mode": "RGB",
|
||||
"width": 3000,
|
||||
"height": 1000,
|
||||
"size_bytes": 9002318,
|
||||
"sha256": "9bb84f9e461995a5e031a0678da59c6dea8d963a157e590a9798d9030437c3fe",
|
||||
"generator": "SHAKE-256 lab4-concurrent-upload-v1 row seeds; filter 0; zlib level 0",
|
||||
"same_immutable_bytes_for_all_requests": true
|
||||
},
|
||||
"concurrency": 10,
|
||||
"reset": {
|
||||
"command": "docker compose up -d --no-deps --force-recreate api",
|
||||
"purpose": "Reset API cgroup memory.peak and PID 1 VmHWM; retain all volumes"
|
||||
},
|
||||
"peak_scope": "Fresh API startup, bootstrap, ten uploads and representative download; no peak sampling gaps",
|
||||
"cluster_before": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:15:38.382323712Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:15:38.308471337Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "cleanup",
|
||||
"container": "7b76cdac9466b51209de0eb07f566a25ce9829b4ac9c454b1d5d2337866908a6",
|
||||
"name": "mtusi-lab4-cleanup-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:38.357370005Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:39.330794254Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "5011a2065a877dbe6f3867961067d19ee3c8a9b4dce036a4c0bc0d0dd0fc9ce2",
|
||||
"name": "mtusi-lab4-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:37.212308463Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "541ae9cb0aa97d512613671772597869f2b255860b8bb1ebd3360a62d160bd36",
|
||||
"name": "mtusi-lab4-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:12:16.586994384Z",
|
||||
"image": "mtusi-lab4-minio:2025-04-22",
|
||||
"image_id": "sha256:e55c472ba116fb1a1ab6dc2c94ceae51056977434e59da3e8cb3421d6442efe9",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "a354624e1306dfea39b630ea882e5ce2b6a997eaa22c85a679ee95a8da863641",
|
||||
"name": "mtusi-lab4-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:37.288107921Z",
|
||||
"image": "mtusi-lab4-mc:2025-04-16",
|
||||
"image_id": "sha256:c5b3fa838b7ae5e787473b7d95f926e587899940c6234e5487bc749ac24a23e9",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "3bbaa1721cad718b66e4e090c38ebae718cb45dc9fdcf5f241d613bfae2294b2",
|
||||
"name": "mtusi-lab4-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:32.508777334Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "4fd82d3c8816ce4cb86e02b81dbe6a673b309d6fa00217c5c259087b7619ac0a",
|
||||
"name": "mtusi-lab4-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:32.445843167Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"baseline": {
|
||||
"3bd3bbc5d37c4b5a97dc188076f363dd": {
|
||||
"source": "cgroup-v2",
|
||||
"cgroup_peak_bytes": 96063488,
|
||||
"cgroup_current_bytes": 87937024,
|
||||
"pid1_vmhwm_bytes": 96518144,
|
||||
"pid1_vmrss_bytes": 96518144,
|
||||
"memory_events": {
|
||||
"low": 0,
|
||||
"high": 0,
|
||||
"max": 0,
|
||||
"oom": 0,
|
||||
"oom_kill": 0,
|
||||
"oom_group_kill": 0,
|
||||
"sock_throttled": 0
|
||||
}
|
||||
},
|
||||
"de89643f69534e43bc1111510e0a993e": {
|
||||
"source": "cgroup-v2",
|
||||
"cgroup_peak_bytes": 104452096,
|
||||
"cgroup_current_bytes": 87433216,
|
||||
"pid1_vmhwm_bytes": 96370688,
|
||||
"pid1_vmrss_bytes": 96370688,
|
||||
"memory_events": {
|
||||
"low": 0,
|
||||
"high": 0,
|
||||
"max": 0,
|
||||
"oom": 0,
|
||||
"oom_kill": 0,
|
||||
"oom_group_kill": 0,
|
||||
"sock_throttled": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"memory_limits": [
|
||||
{
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000
|
||||
},
|
||||
{
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000
|
||||
}
|
||||
],
|
||||
"requests": [
|
||||
{
|
||||
"index": 0,
|
||||
"start_seconds": 0.9074667920067441,
|
||||
"status": 201,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"attachment_id": "14a5f6e5-0973-4b7f-98e2-81a9b7ba6ccb",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.4336796249990584
|
||||
},
|
||||
{
|
||||
"index": 1,
|
||||
"start_seconds": 0.9073489169968525,
|
||||
"status": 201,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"attachment_id": "79f74d1b-624f-497e-b80d-e2605dc22427",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5235847080039093
|
||||
},
|
||||
{
|
||||
"index": 2,
|
||||
"start_seconds": 0.9075777499965625,
|
||||
"status": 201,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"attachment_id": "c5e24f93-8f8b-49fc-9e71-13161f08be4b",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.2526268750079907
|
||||
},
|
||||
{
|
||||
"index": 3,
|
||||
"start_seconds": 0.907239958003629,
|
||||
"status": 201,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"attachment_id": "480d346b-f983-45a3-9a78-05064f27ef06",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.352467999997316
|
||||
},
|
||||
{
|
||||
"index": 4,
|
||||
"start_seconds": 0.9076472919987282,
|
||||
"status": 201,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"attachment_id": "9e96aac9-21a4-4b27-b600-881e440e17b7",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5511514579993673
|
||||
},
|
||||
{
|
||||
"index": 5,
|
||||
"start_seconds": 0.9077015420043608,
|
||||
"status": 201,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"attachment_id": "85dde29d-dccf-43a8-b634-4fb380ce555f",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5152983750012936
|
||||
},
|
||||
{
|
||||
"index": 6,
|
||||
"start_seconds": 0.9077392080071149,
|
||||
"status": 201,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"attachment_id": "63ab944f-fd09-465e-bd9a-ad033cf79477",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5623937500058673
|
||||
},
|
||||
{
|
||||
"index": 7,
|
||||
"start_seconds": 0.9075430829980178,
|
||||
"status": 201,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"attachment_id": "4b5e0c15-4a6c-47a4-9741-74cd6ac3b3db",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5540448750107316
|
||||
},
|
||||
{
|
||||
"index": 8,
|
||||
"start_seconds": 0.9074074170057429,
|
||||
"status": 201,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"attachment_id": "38272fe7-3a6a-4064-9664-f7346a36431a",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5352119580056751
|
||||
},
|
||||
{
|
||||
"index": 9,
|
||||
"start_seconds": 0.9075136250030482,
|
||||
"status": 201,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"attachment_id": "5c124808-e996-4e34-bfe6-16f20fbe6895",
|
||||
"metadata_verified": true,
|
||||
"end_seconds": 1.5333833750046324
|
||||
}
|
||||
],
|
||||
"elapsed_seconds": 1.562777917002677,
|
||||
"peak_active_requests": 10,
|
||||
"all_ten_overlap_seconds": 0.3448876670008758,
|
||||
"all_ten_overlapping": true,
|
||||
"successful_count": 10,
|
||||
"error_count": 0,
|
||||
"observed_instances": [
|
||||
"3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"de89643f69534e43bc1111510e0a993e"
|
||||
],
|
||||
"representative_download": {
|
||||
"verified_as": "bob (chat member)",
|
||||
"matches_original_bytes": true,
|
||||
"size_bytes": 9002318,
|
||||
"sha256": "9bb84f9e461995a5e031a0678da59c6dea8d963a157e590a9798d9030437c3fe"
|
||||
},
|
||||
"final": {
|
||||
"3bd3bbc5d37c4b5a97dc188076f363dd": {
|
||||
"source": "cgroup-v2",
|
||||
"cgroup_peak_bytes": 215822336,
|
||||
"cgroup_current_bytes": 183332864,
|
||||
"pid1_vmhwm_bytes": 191754240,
|
||||
"pid1_vmrss_bytes": 191754240,
|
||||
"memory_events": {
|
||||
"low": 0,
|
||||
"high": 0,
|
||||
"max": 0,
|
||||
"oom": 0,
|
||||
"oom_kill": 0,
|
||||
"oom_group_kill": 0,
|
||||
"sock_throttled": 0
|
||||
}
|
||||
},
|
||||
"de89643f69534e43bc1111510e0a993e": {
|
||||
"source": "cgroup-v2",
|
||||
"cgroup_peak_bytes": 225161216,
|
||||
"cgroup_current_bytes": 182919168,
|
||||
"pid1_vmhwm_bytes": 192196608,
|
||||
"pid1_vmrss_bytes": 192196608,
|
||||
"memory_events": {
|
||||
"low": 0,
|
||||
"high": 0,
|
||||
"max": 0,
|
||||
"oom": 0,
|
||||
"oom_kill": 0,
|
||||
"oom_group_kill": 0,
|
||||
"sock_throttled": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"cluster_after": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:15:38.382323712Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "3bd3bbc5d37c4b5a97dc188076f363dd",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:15:38.308471337Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "cleanup",
|
||||
"container": "7b76cdac9466b51209de0eb07f566a25ce9829b4ac9c454b1d5d2337866908a6",
|
||||
"name": "mtusi-lab4-cleanup-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:38.357370005Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:39.330794254Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "5011a2065a877dbe6f3867961067d19ee3c8a9b4dce036a4c0bc0d0dd0fc9ce2",
|
||||
"name": "mtusi-lab4-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:37.212308463Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "541ae9cb0aa97d512613671772597869f2b255860b8bb1ebd3360a62d160bd36",
|
||||
"name": "mtusi-lab4-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:12:16.586994384Z",
|
||||
"image": "mtusi-lab4-minio:2025-04-22",
|
||||
"image_id": "sha256:e55c472ba116fb1a1ab6dc2c94ceae51056977434e59da3e8cb3421d6442efe9",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "a354624e1306dfea39b630ea882e5ce2b6a997eaa22c85a679ee95a8da863641",
|
||||
"name": "mtusi-lab4-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:37.288107921Z",
|
||||
"image": "mtusi-lab4-mc:2025-04-16",
|
||||
"image_id": "sha256:c5b3fa838b7ae5e787473b7d95f926e587899940c6234e5487bc749ac24a23e9",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "3bbaa1721cad718b66e4e090c38ebae718cb45dc9fdcf5f241d613bfae2294b2",
|
||||
"name": "mtusi-lab4-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:32.508777334Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "4fd82d3c8816ce4cb86e02b81dbe6a673b309d6fa00217c5c259087b7619ac0a",
|
||||
"name": "mtusi-lab4-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:32.445843167Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"oom_killed": {
|
||||
"mtusi-lab4-api-1": false,
|
||||
"mtusi-lab4-api-2": false
|
||||
},
|
||||
"per_node_peaks": {
|
||||
"3bd3bbc5d37c4b5a97dc188076f363dd": {
|
||||
"source": "cgroup-v2",
|
||||
"cgroup_peak_bytes": 215822336,
|
||||
"cgroup_current_bytes": 183332864,
|
||||
"pid1_vmhwm_bytes": 191754240,
|
||||
"pid1_vmrss_bytes": 191754240,
|
||||
"memory_events": {
|
||||
"low": 0,
|
||||
"high": 0,
|
||||
"max": 0,
|
||||
"oom": 0,
|
||||
"oom_kill": 0,
|
||||
"oom_group_kill": 0,
|
||||
"sock_throttled": 0
|
||||
}
|
||||
},
|
||||
"de89643f69534e43bc1111510e0a993e": {
|
||||
"source": "cgroup-v2",
|
||||
"cgroup_peak_bytes": 225161216,
|
||||
"cgroup_current_bytes": 182919168,
|
||||
"pid1_vmhwm_bytes": 192196608,
|
||||
"pid1_vmrss_bytes": 192196608,
|
||||
"memory_events": {
|
||||
"low": 0,
|
||||
"high": 0,
|
||||
"max": 0,
|
||||
"oom": 0,
|
||||
"oom_kill": 0,
|
||||
"oom_group_kill": 0,
|
||||
"sock_throttled": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"redis": {
|
||||
"profile_status": 200,
|
||||
"fallback_seconds": 0.0132,
|
||||
"anonymous": 401,
|
||||
"readiness": 200
|
||||
},
|
||||
"postgres": {
|
||||
"authenticated_status": 503,
|
||||
"response_seconds": 0.0047,
|
||||
"anonymous_status": 401,
|
||||
"internal_api_liveness": [
|
||||
200,
|
||||
200
|
||||
],
|
||||
"note": "Nginx-generated502/503/504 may have no API JSON/instance headers when all backends become unavailable."
|
||||
},
|
||||
"same_session_after_recovery": true
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
./scripts/check_fresh_migrations.sh
|
||||
Applied 001_initial.sql
|
||||
Applied 002_idempotency.sql
|
||||
Applied 003_attachments.sql
|
||||
Migrations up to date
|
||||
Migrations up to date
|
||||
..................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
student-tests/test_attachments.py: 13 warnings
|
||||
student-tests/test_idempotency.py: 1 warning
|
||||
/usr/local/lib/python3.13/site-packages/botocore/auth.py:422: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
|
||||
datetime_now = datetime.datetime.utcnow()
|
||||
|
||||
student-tests/test_attachments.py::test_invalid_media_corruption_limits_and_filename
|
||||
/usr/local/lib/python3.13/site-packages/PIL/Image.py:3452: DecompressionBombWarning: Image size (40004000 pixels) exceeds limit of 40000000 pixels, could be decompression bomb DOS attack.
|
||||
warnings.warn(
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
21 passed, 15 warnings in 4.23s
|
||||
PASS: migrations and application tests on fresh disposable PostgreSQL and Redis volumes.
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"target_container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"target_instance": "69d3312a6f6b4f7bb50651c8632e196a",
|
||||
"fixture": "temporary BEFORE INSERT trigger sleeps2s for one synthetic text; removed afterwards",
|
||||
"in_flight_observed_in_pg_stat_activity": true,
|
||||
"in_flight_response": 201,
|
||||
"new_tcp_after_sigterm": {
|
||||
"accepted": false,
|
||||
"error_type": "ConnectionRefusedError"
|
||||
},
|
||||
"target_still_running_when_new_tcp_rejected": true,
|
||||
"exit_code": 0,
|
||||
"shutdown_seconds_from_sigterm": 2.0927,
|
||||
"confirmed_message_preserved": true
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"containers": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "102a32862f73ac850881b369827c3d0fef35d41445893bd6807200759f201e3b",
|
||||
"name": "mtusi-lab4-api-3",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:26:04.73288638Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:e53ef1cc7aef252b12b8f7e0136c8836a5ab075152b194a609e6c6fa1f4de351",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"release": "lab4-ce567129"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "2089d486fe8dbdf85cfda30cfe2ea79de996f070343cb076dc3bceb83d18e8a0",
|
||||
"name": "mtusi-lab4-api-4",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:26:10.354473716Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:e53ef1cc7aef252b12b8f7e0136c8836a5ab075152b194a609e6c6fa1f4de351",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "0f0ee5b42e754b7f9aa359e746294e8f",
|
||||
"release": "lab4-ce567129"
|
||||
},
|
||||
{
|
||||
"service": "cleanup",
|
||||
"container": "7b76cdac9466b51209de0eb07f566a25ce9829b4ac9c454b1d5d2337866908a6",
|
||||
"name": "mtusi-lab4-cleanup-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:24:53.220476166Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.272136138Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "5011a2065a877dbe6f3867961067d19ee3c8a9b4dce036a4c0bc0d0dd0fc9ce2",
|
||||
"name": "mtusi-lab4-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:25:13.130777342Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "541ae9cb0aa97d512613671772597869f2b255860b8bb1ebd3360a62d160bd36",
|
||||
"name": "mtusi-lab4-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.261138388Z",
|
||||
"image": "mtusi-lab4-minio:2025-04-22",
|
||||
"image_id": "sha256:e55c472ba116fb1a1ab6dc2c94ceae51056977434e59da3e8cb3421d6442efe9",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "a354624e1306dfea39b630ea882e5ce2b6a997eaa22c85a679ee95a8da863641",
|
||||
"name": "mtusi-lab4-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:25:13.207299134Z",
|
||||
"image": "mtusi-lab4-mc:2025-04-16",
|
||||
"image_id": "sha256:c5b3fa838b7ae5e787473b7d95f926e587899940c6234e5487bc749ac24a23e9",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "3bbaa1721cad718b66e4e090c38ebae718cb45dc9fdcf5f241d613bfae2294b2",
|
||||
"name": "mtusi-lab4-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:26:21.713520555Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "4fd82d3c8816ce4cb86e02b81dbe6a673b309d6fa00217c5c259087b7619ac0a",
|
||||
"name": "mtusi-lab4-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:26:20.609059638Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"declared_bytes": 500000,
|
||||
"sent_bytes": 108,
|
||||
"metadata_unchanged": true,
|
||||
"s3_object_count_unchanged": true
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"instance": "6e358c3478904b0e97230b8ceeb17c24",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"stopped_at_utc": "2026-11-02T09:25:37.448855+00:00",
|
||||
"stop_seconds": 0.5935,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"version": "nginx version: nginx/1.28.0",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"public_server_header": "nginx",
|
||||
"config_syntax": "PASS",
|
||||
"observed_instances": [
|
||||
"3ca208a978e441ccba13625143527d66",
|
||||
"de89643f69534e43bc1111510e0a993e"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/cluster.py exec python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"fault": "SIGKILL API after successful S3PUT, before metadata COMMIT",
|
||||
"crash_exit_code": 137,
|
||||
"target_container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"upload_acknowledged": false,
|
||||
"orphan_confirmed": true,
|
||||
"grace_wait_seconds": 61,
|
||||
"dry_run": {
|
||||
"mode": "dry-run",
|
||||
"grace_seconds": 60,
|
||||
"listed": 29,
|
||||
"fresh": 1,
|
||||
"tracked": 26,
|
||||
"locked": 1,
|
||||
"orphans": 1,
|
||||
"deleted": 0
|
||||
},
|
||||
"apply": {
|
||||
"mode": "apply",
|
||||
"grace_seconds": 60,
|
||||
"listed": 29,
|
||||
"fresh": 1,
|
||||
"tracked": 26,
|
||||
"locked": 1,
|
||||
"orphans": 1,
|
||||
"deleted": 1
|
||||
},
|
||||
"repeat": {
|
||||
"mode": "apply",
|
||||
"grace_seconds": 60,
|
||||
"listed": 28,
|
||||
"fresh": 1,
|
||||
"tracked": 26,
|
||||
"locked": 1,
|
||||
"orphans": 0,
|
||||
"deleted": 0
|
||||
},
|
||||
"after_lock_release": {
|
||||
"mode": "apply",
|
||||
"grace_seconds": 60,
|
||||
"listed": 28,
|
||||
"fresh": 1,
|
||||
"tracked": 26,
|
||||
"locked": 0,
|
||||
"orphans": 1,
|
||||
"deleted": 1
|
||||
},
|
||||
"fresh_preserved": true,
|
||||
"tracked_and_linked_preserved": true,
|
||||
"active_lock_preserved": true
|
||||
}
|
||||
@@ -0,0 +1,356 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"before": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:23:34.501426213Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "3ca208a978e441ccba13625143527d66",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:15:38.308471337Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "de89643f69534e43bc1111510e0a993e",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "cleanup",
|
||||
"container": "7b76cdac9466b51209de0eb07f566a25ce9829b4ac9c454b1d5d2337866908a6",
|
||||
"name": "mtusi-lab4-cleanup-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:38.357370005Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:39.330794254Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "5011a2065a877dbe6f3867961067d19ee3c8a9b4dce036a4c0bc0d0dd0fc9ce2",
|
||||
"name": "mtusi-lab4-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:37.212308463Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "541ae9cb0aa97d512613671772597869f2b255860b8bb1ebd3360a62d160bd36",
|
||||
"name": "mtusi-lab4-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:12:16.586994384Z",
|
||||
"image": "mtusi-lab4-minio:2025-04-22",
|
||||
"image_id": "sha256:e55c472ba116fb1a1ab6dc2c94ceae51056977434e59da3e8cb3421d6442efe9",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "a354624e1306dfea39b630ea882e5ce2b6a997eaa22c85a679ee95a8da863641",
|
||||
"name": "mtusi-lab4-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:10:37.288107921Z",
|
||||
"image": "mtusi-lab4-mc:2025-04-16",
|
||||
"image_id": "sha256:c5b3fa838b7ae5e787473b7d95f926e587899940c6234e5487bc749ac24a23e9",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "3bbaa1721cad718b66e4e090c38ebae718cb45dc9fdcf5f241d613bfae2294b2",
|
||||
"name": "mtusi-lab4-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:32.508777334Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "4fd82d3c8816ce4cb86e02b81dbe6a673b309d6fa00217c5c259087b7619ac0a",
|
||||
"name": "mtusi-lab4-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:03:32.445843167Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.617456221Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "c5dd801e4df142e599da4bafc592e9d7",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.685437846Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data",
|
||||
"mtusi-lab4_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "6e358c3478904b0e97230b8ceeb17c24",
|
||||
"release": "lab4-v1"
|
||||
},
|
||||
{
|
||||
"service": "cleanup",
|
||||
"container": "7b76cdac9466b51209de0eb07f566a25ce9829b4ac9c454b1d5d2337866908a6",
|
||||
"name": "mtusi-lab4-cleanup-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:24:53.220476166Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.272136138Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "5011a2065a877dbe6f3867961067d19ee3c8a9b4dce036a4c0bc0d0dd0fc9ce2",
|
||||
"name": "mtusi-lab4-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:24:53.965337083Z",
|
||||
"image": "mtusi-lab4-api:lab4",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "541ae9cb0aa97d512613671772597869f2b255860b8bb1ebd3360a62d160bd36",
|
||||
"name": "mtusi-lab4-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.261138388Z",
|
||||
"image": "mtusi-lab4-minio:2025-04-22",
|
||||
"image_id": "sha256:e55c472ba116fb1a1ab6dc2c94ceae51056977434e59da3e8cb3421d6442efe9",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "a354624e1306dfea39b630ea882e5ce2b6a997eaa22c85a679ee95a8da863641",
|
||||
"name": "mtusi-lab4-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-02T09:24:53.907159458Z",
|
||||
"image": "mtusi-lab4-mc:2025-04-16",
|
||||
"image_id": "sha256:c5b3fa838b7ae5e787473b7d95f926e587899940c6234e5487bc749ac24a23e9",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "3bbaa1721cad718b66e4e090c38ebae718cb45dc9fdcf5f241d613bfae2294b2",
|
||||
"name": "mtusi-lab4-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.284073804Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "4fd82d3c8816ce4cb86e02b81dbe6a673b309d6fa00217c5c259087b7619ac0a",
|
||||
"name": "mtusi-lab4-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.227454096Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab4_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab4_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"public_test": "Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence."
|
||||
}
|
||||
@@ -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.
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"public_test": "Executing explicit failover hook; hook output suppressed to avoid leaking secrets.\n{\"observed_instances_before\": 2, \"successful_writes\": 134, \"failed_attempts\": 0, \"first_recovery_seconds\": 1.104}\nPASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.",
|
||||
"stopped": {
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"instance": "c5dd801e4df142e599da4bafc592e9d7",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"stopped_at_utc": "2026-11-02T09:24:58.384960+00:00",
|
||||
"stop_seconds": 0.4473,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 134, "failed_attempts": 0, "first_recovery_seconds": 1.104}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,171 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"before": [
|
||||
{
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"instance": "0e4e9b12996647ac8d03d03d79ae64fe",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961"
|
||||
},
|
||||
{
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"instance": "427b43f714ff4bc3b99698dc90cafa3b",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961"
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"container": "102a32862f73ac850881b369827c3d0fef35d41445893bd6807200759f201e3b",
|
||||
"name": "mtusi-lab4-api-3",
|
||||
"instance": "3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"release": "lab4-ce567129",
|
||||
"image_id": "sha256:e53ef1cc7aef252b12b8f7e0136c8836a5ab075152b194a609e6c6fa1f4de351"
|
||||
},
|
||||
{
|
||||
"container": "2089d486fe8dbdf85cfda30cfe2ea79de996f070343cb076dc3bceb83d18e8a0",
|
||||
"name": "mtusi-lab4-api-4",
|
||||
"instance": "0f0ee5b42e754b7f9aa359e746294e8f",
|
||||
"release": "lab4-ce567129",
|
||||
"image_id": "sha256:e53ef1cc7aef252b12b8f7e0136c8836a5ab075152b194a609e6c6fa1f4de351"
|
||||
}
|
||||
],
|
||||
"target_release": "lab4-ce567129",
|
||||
"lb_before": {
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.272136138Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
"lb_after": {
|
||||
"service": "lb",
|
||||
"container": "16b997261cb684aacd6c27103b59160fce9939137d83c3dcc3e42e54f9a4ae71",
|
||||
"name": "mtusi-lab4-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-02T09:24:50.272136138Z",
|
||||
"image": "nginx:1.28.0-alpine",
|
||||
"image_id": "sha256:30f1c0d78e0ad60901648be663a710bdadf19e4c10ac6782c235200619158284",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab4_front"
|
||||
]
|
||||
},
|
||||
"lb_not_restarted": true,
|
||||
"build_seconds": 2.7115,
|
||||
"migration_output": "Migrations up to date",
|
||||
"replacements": [
|
||||
{
|
||||
"old_container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"new_container": "102a32862f73ac850881b369827c3d0fef35d41445893bd6807200759f201e3b",
|
||||
"old_ip": "172.25.0.2",
|
||||
"new_ip": "172.25.0.5",
|
||||
"dns_discovered_new_address": true,
|
||||
"instances_during_start_first": [
|
||||
"0e4e9b12996647ac8d03d03d79ae64fe",
|
||||
"3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"427b43f714ff4bc3b99698dc90cafa3b"
|
||||
],
|
||||
"observed_instances": [
|
||||
"3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"427b43f714ff4bc3b99698dc90cafa3b"
|
||||
],
|
||||
"old_exit_code": 0,
|
||||
"seconds": 5.6289
|
||||
},
|
||||
{
|
||||
"old_container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"new_container": "2089d486fe8dbdf85cfda30cfe2ea79de996f070343cb076dc3bceb83d18e8a0",
|
||||
"old_ip": "172.25.0.3",
|
||||
"new_ip": "172.25.0.2",
|
||||
"dns_discovered_new_address": true,
|
||||
"instances_during_start_first": [
|
||||
"0f0ee5b42e754b7f9aa359e746294e8f",
|
||||
"3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"427b43f714ff4bc3b99698dc90cafa3b"
|
||||
],
|
||||
"observed_instances": [
|
||||
"0f0ee5b42e754b7f9aa359e746294e8f",
|
||||
"3715a1c3cd074e9f952ad3b9bb646d54"
|
||||
],
|
||||
"old_exit_code": 0,
|
||||
"seconds": 5.4987
|
||||
}
|
||||
],
|
||||
"during_replacement": {
|
||||
"seconds": 11.1277,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 8499,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 763.77,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.34,
|
||||
"p95": 7.505,
|
||||
"p99": 37.719
|
||||
},
|
||||
"instances": [
|
||||
"0e4e9b12996647ac8d03d03d79ae64fe",
|
||||
"0f0ee5b42e754b7f9aa359e746294e8f",
|
||||
"3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"427b43f714ff4bc3b99698dc90cafa3b"
|
||||
]
|
||||
},
|
||||
"total": {
|
||||
"seconds": 20.7958,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 15875,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 763.377,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.479,
|
||||
"p95": 7.406,
|
||||
"p99": 28.635
|
||||
},
|
||||
"instances": [
|
||||
"0e4e9b12996647ac8d03d03d79ae64fe",
|
||||
"0f0ee5b42e754b7f9aa359e746294e8f",
|
||||
"3715a1c3cd074e9f952ad3b9bb646d54",
|
||||
"427b43f714ff4bc3b99698dc90cafa3b"
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"confirmed_unique_messages": 15875,
|
||||
"history_messages": 15875,
|
||||
"confirmed_preserved": true,
|
||||
"duplicate_ids": 0,
|
||||
"duplicate_texts": 0
|
||||
},
|
||||
"change": "New image with a distinct release header; API code and schema remain compatible. Start-first: scale to3, prove new IP in DNS/LB, stop/remove one old container, return to2 with --no-recreate."
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"upload_status_during_outage": 503,
|
||||
"response_seconds": 0.2487,
|
||||
"original_preserved_after_restart": true,
|
||||
"same_session_after_recovery": true
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"anonymous_get": 403,
|
||||
"create_bucket_with_api_credentials": 403,
|
||||
"list_other_prefix": 403,
|
||||
"console_reachable_from_api": false,
|
||||
"root_secret_mounted_in_api": false,
|
||||
"bootstrap_repeated_without_data_loss": true,
|
||||
"bootstrap_output": "PASS: private bucket and restricted API policy ready (credentials hidden)."
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"baseline": {
|
||||
"seconds": 3.0101,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 2029,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 674.073,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.838,
|
||||
"p95": 7.446,
|
||||
"p99": 24.831
|
||||
},
|
||||
"instances": [
|
||||
"118d370a438c4c14aabe117988bc86e9",
|
||||
"6e358c3478904b0e97230b8ceeb17c24"
|
||||
]
|
||||
},
|
||||
"phases": [
|
||||
{
|
||||
"stopped": {
|
||||
"container": "3160c34884b51370acb5692d6646ec690408b54fbe406b82d8069146a5ca305c",
|
||||
"name": "mtusi-lab4-api-1",
|
||||
"instance": "118d370a438c4c14aabe117988bc86e9",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"stopped_at_utc": "2026-11-02T09:25:23.676868+00:00",
|
||||
"stop_seconds": 0.5348,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
},
|
||||
"traffic": {
|
||||
"seconds": 8.0006,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 3857,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 482.09,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 6.513,
|
||||
"p95": 16.08,
|
||||
"p99": 56.428
|
||||
},
|
||||
"instances": [
|
||||
"118d370a438c4c14aabe117988bc86e9",
|
||||
"6e358c3478904b0e97230b8ceeb17c24"
|
||||
]
|
||||
},
|
||||
"post_stop_write_seconds_from_action_start": 1.2915,
|
||||
"post_stop_write_seconds_from_stop_completion": 0.0308,
|
||||
"read_during_outage": {
|
||||
"status": 200,
|
||||
"confirmed_message_preserved": true,
|
||||
"seconds_from_action_start": 1.2842,
|
||||
"seconds_from_stop_completion": 0.0235
|
||||
},
|
||||
"new_connection_after_stop": {
|
||||
"accepted": false,
|
||||
"error_type": "TimeoutError"
|
||||
},
|
||||
"stopped_remains_stopped": true
|
||||
},
|
||||
{
|
||||
"stopped": {
|
||||
"container": "e4079b051482cd9397de303e7afce2b627d01205688e0041734f136596252f72",
|
||||
"name": "mtusi-lab4-api-2",
|
||||
"instance": "6e358c3478904b0e97230b8ceeb17c24",
|
||||
"release": "lab4-v1",
|
||||
"image_id": "sha256:c85561107f5a367fdfe410d70321a94dcf9ceaf305ca5b73c00525759a1c5961",
|
||||
"stopped_at_utc": "2026-11-02T09:25:37.448855+00:00",
|
||||
"stop_seconds": 0.5935,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
},
|
||||
"traffic": {
|
||||
"seconds": 8.0018,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 4137,
|
||||
"failed_attempts": 1,
|
||||
"successful_rps": 517.011,
|
||||
"error_ratio": 0.000242,
|
||||
"successful_latency_ms": {
|
||||
"p50": 6.55,
|
||||
"p95": 14.11,
|
||||
"p99": 53.684
|
||||
},
|
||||
"instances": [
|
||||
"69d3312a6f6b4f7bb50651c8632e196a",
|
||||
"6e358c3478904b0e97230b8ceeb17c24"
|
||||
]
|
||||
},
|
||||
"post_stop_write_seconds_from_action_start": 1.2502,
|
||||
"post_stop_write_seconds_from_stop_completion": 0.0189,
|
||||
"read_during_outage": {
|
||||
"status": 200,
|
||||
"confirmed_message_preserved": true,
|
||||
"seconds_from_action_start": 1.2386,
|
||||
"seconds_from_stop_completion": 0.0073
|
||||
},
|
||||
"new_connection_after_stop": {
|
||||
"accepted": false,
|
||||
"error_type": "TimeoutError"
|
||||
},
|
||||
"stopped_remains_stopped": true
|
||||
}
|
||||
],
|
||||
"total": {
|
||||
"seconds": 30.9392,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 17688,
|
||||
"failed_attempts": 1,
|
||||
"successful_rps": 571.702,
|
||||
"error_ratio": 5.7e-05,
|
||||
"successful_latency_ms": {
|
||||
"p50": 5.77,
|
||||
"p95": 12.069,
|
||||
"p99": 46.873
|
||||
},
|
||||
"instances": [
|
||||
"118d370a438c4c14aabe117988bc86e9",
|
||||
"427b43f714ff4bc3b99698dc90cafa3b",
|
||||
"69d3312a6f6b4f7bb50651c8632e196a",
|
||||
"6e358c3478904b0e97230b8ceeb17c24"
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"confirmed_unique_messages": 17688,
|
||||
"history_messages": 17688,
|
||||
"confirmed_preserved": true,
|
||||
"duplicate_ids": 0,
|
||||
"duplicate_texts": 0
|
||||
},
|
||||
"each_original_container_tested": true
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,14 @@
|
||||
python3 scripts/cluster.py exec python -m pytest student-tests -q --tb=short -o cache_dir=/tmp/pytest-cache
|
||||
..................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
student-tests/test_attachments.py: 13 warnings
|
||||
student-tests/test_idempotency.py: 1 warning
|
||||
/usr/local/lib/python3.13/site-packages/botocore/auth.py:422: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
|
||||
datetime_now = datetime.datetime.utcnow()
|
||||
|
||||
student-tests/test_attachments.py::test_invalid_media_corruption_limits_and_filename
|
||||
/usr/local/lib/python3.13/site-packages/PIL/Image.py:3452: DecompressionBombWarning: Image size (40004000 pixels) exceeds limit of 40000000 pixels, could be decompression bomb DOS attack.
|
||||
warnings.warn(
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
21 passed, 15 warnings in 4.15s
|
||||
Reference in New Issue
Block a user