[+] lab5
This commit is contained in:
@@ -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": [
|
||||
"2836440f76e24486ab068d4c71498d15",
|
||||
"77545b2c0222441193411736edbf54ff"
|
||||
],
|
||||
"responses_201": 8,
|
||||
"messages_created": 1,
|
||||
"different_body_status": 409
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"redis": {
|
||||
"profile_status": 200,
|
||||
"fallback_seconds": 2.5178,
|
||||
"anonymous": 401,
|
||||
"readiness": 200
|
||||
},
|
||||
"postgres": {
|
||||
"authenticated_status": 503,
|
||||
"response_seconds": 0.006,
|
||||
"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,70 @@
|
||||
./scripts/check_fresh_migrations.sh
|
||||
Volume mtusi-lab5-migration-check-53406_redis_data Creating
|
||||
Network mtusi-lab5-migration-check-53406_data Creating
|
||||
Volume mtusi-lab5-migration-check-53406_postgres_data Creating
|
||||
Volume mtusi-lab5-migration-check-53406_minio_data Creating
|
||||
Volume mtusi-lab5-migration-check-53406_redis_data Creating
|
||||
Network mtusi-lab5-migration-check-53406_data Creating
|
||||
Volume mtusi-lab5-migration-check-53406_postgres_data Creating
|
||||
Volume mtusi-lab5-migration-check-53406_minio_data Creating
|
||||
Volume mtusi-lab5-migration-check-53406_postgres_data Created
|
||||
Volume mtusi-lab5-migration-check-53406_postgres_data Created
|
||||
Volume mtusi-lab5-migration-check-53406_redis_data Created
|
||||
Volume mtusi-lab5-migration-check-53406_redis_data Created
|
||||
Volume mtusi-lab5-migration-check-53406_minio_data Created
|
||||
Volume mtusi-lab5-migration-check-53406_minio_data Created
|
||||
Network mtusi-lab5-migration-check-53406_data Created
|
||||
Network mtusi-lab5-migration-check-53406_data Created
|
||||
Container mtusi-lab5-migration-check-53406-redis-1 Creating
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Creating
|
||||
Container mtusi-lab5-migration-check-53406-postgres-1 Creating
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Created
|
||||
Container mtusi-lab5-migration-check-53406-minio-init-1 Creating
|
||||
Container mtusi-lab5-migration-check-53406-redis-1 Created
|
||||
Container mtusi-lab5-migration-check-53406-postgres-1 Created
|
||||
Container mtusi-lab5-migration-check-53406-minio-init-1 Created
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Starting
|
||||
Container mtusi-lab5-migration-check-53406-postgres-1 Starting
|
||||
Container mtusi-lab5-migration-check-53406-redis-1 Starting
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Started
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Waiting
|
||||
Container mtusi-lab5-migration-check-53406-postgres-1 Started
|
||||
Container mtusi-lab5-migration-check-53406-redis-1 Started
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Healthy
|
||||
Container mtusi-lab5-migration-check-53406-minio-init-1 Starting
|
||||
Container mtusi-lab5-migration-check-53406-minio-init-1 Started
|
||||
Container mtusi-lab5-migration-check-53406-redis-1 Waiting
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Waiting
|
||||
Container mtusi-lab5-migration-check-53406-postgres-1 Waiting
|
||||
Container mtusi-lab5-migration-check-53406-minio-init-1 Waiting
|
||||
Container mtusi-lab5-migration-check-53406-redis-1 Healthy
|
||||
Container mtusi-lab5-migration-check-53406-minio-1 Healthy
|
||||
Container mtusi-lab5-migration-check-53406-postgres-1 Healthy
|
||||
Container mtusi-lab5-migration-check-53406-minio-init-1 Healthy
|
||||
Network mtusi-lab5-migration-check-53406_front Creating
|
||||
Network mtusi-lab5-migration-check-53406_front Creating
|
||||
Network mtusi-lab5-migration-check-53406_front Created
|
||||
Network mtusi-lab5-migration-check-53406_front Created
|
||||
Container mtusi-lab5-migration-check-53406-api-run-80cac000e90f Creating
|
||||
Container mtusi-lab5-migration-check-53406-api-run-80cac000e90f Created
|
||||
Applied 001_initial.sql
|
||||
Applied 002_idempotency.sql
|
||||
Applied 003_attachments.sql
|
||||
Applied 004_jobs.sql
|
||||
Migrations up to date
|
||||
Migrations up to date
|
||||
........................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
student-tests/test_attachments.py: 19 warnings
|
||||
student-tests/test_idempotency.py: 1 warning
|
||||
student-tests/test_jobs.py: 6 warnings
|
||||
/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
|
||||
27 passed, 27 warnings in 11.96s
|
||||
PASS: migrations and application tests on fresh disposable PostgreSQL and Redis volumes.
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"target_container": "07cfdd91be6804999a83f2e8f9d6fe5ebc8a655db57e6d84c681b8223f653808",
|
||||
"target_instance": "3cd11c3ed6654d15aa331b17da172ba6",
|
||||
"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.1039,
|
||||
"confirmed_message_preserved": true
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"containers": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "04dace371f7c119107574888627a31b46870064efb055240ece1e76f25aa6f0e",
|
||||
"name": "mtusi-lab5-api-3",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:16:43.516831177Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:d0161806e14c815373596e7ed6ad1dd90c1099f1d6effa1178f6d723272084fe",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data",
|
||||
"mtusi-lab5_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "f0356f65fd3349ebb6a12a12cbe8911b",
|
||||
"release": "lab5-03545ea5"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "ddd943a740c7befc0853727aa039a802ebc7c2ec6e82b61747da7c301964f5ca",
|
||||
"name": "mtusi-lab5-api-4",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:16:48.637814055Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:d0161806e14c815373596e7ed6ad1dd90c1099f1d6effa1178f6d723272084fe",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data",
|
||||
"mtusi-lab5_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "1f3ca0aa757548729c3af44cfe1152d8",
|
||||
"release": "lab5-03545ea5"
|
||||
},
|
||||
{
|
||||
"service": "broker",
|
||||
"container": "4ae9bb96997fc330297b8b1f7dc802643300d3d5fb2dcc0431fd24e7dd6bd646",
|
||||
"name": "mtusi-lab5-broker-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.613805961Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 167772160,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "1e8af54790b3d81c6ab07b8b48e2190ffd58177f02cfbb71a4e9d70642d28732",
|
||||
"name": "mtusi-lab5-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.692474795Z",
|
||||
"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-lab5_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "7a5be77365652cc141dc5f96a13977d9ece465f5e11313a80719e83cc23bd8b8",
|
||||
"name": "mtusi-lab5-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:50.728753166Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "28139ee8cc9a93c011dbc795a747e711cf532953c0222ecfff055456aad67ab6",
|
||||
"name": "mtusi-lab5-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.65248217Z",
|
||||
"image": "mtusi-lab5-minio:2025-04-22",
|
||||
"image_id": "sha256:72715c518d214a04aaa43f38aaae882a07e6e59d8dd9e6b0dd31a42fd47dfa41",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "3ecadb4d965df869dd2e46c9f43b9388ac1fdcc0ef84051e13830e02504c9dfd",
|
||||
"name": "mtusi-lab5-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:50.664761458Z",
|
||||
"image": "mtusi-lab5-mc:2025-04-16",
|
||||
"image_id": "sha256:48bb08e6faef719679f13f7bc92e12f5ad550f92066a6c0a553ff7d463d8d5c3",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "74681e7e4e0a21be82e14a032a7180b6a1eca6f5723d17b1fe5aa590087c79f3",
|
||||
"name": "mtusi-lab5-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:17:03.314404256Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "d95d99e43cd645266f73e98e513eb233b614e607f7610089fa7beba7fec561f3",
|
||||
"name": "mtusi-lab5-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:17:02.234800422Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "relay",
|
||||
"container": "64d602cba0426d571d9e213f54fc78dff1824a617202eaf85186be25018eefce",
|
||||
"name": "mtusi-lab5-relay-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:28.180030295Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"container": "63cbd712bb72a3cc09d3dec9c20f439e7780bb5eb6ffd54e91fe79842d8f42e5",
|
||||
"name": "mtusi-lab5-worker-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:28.686125545Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"commit_publish_gap": {
|
||||
"accepted_status": 202,
|
||||
"outbox_unpublished": true,
|
||||
"api_broker_restarted": true,
|
||||
"same_job_ready": true
|
||||
},
|
||||
"broker_persistence": {
|
||||
"unread_job_survived_restart": true
|
||||
},
|
||||
"after_put_before_ack": {
|
||||
"s3_effect_written": true,
|
||||
"lease_recovery_seconds": 90.804,
|
||||
"attempt_after_recovery": 2,
|
||||
"same_job": true
|
||||
},
|
||||
"duplicate": {
|
||||
"ready_noop": true
|
||||
},
|
||||
"retry_replay": {
|
||||
"failed_after": 5,
|
||||
"code": "retry_exhausted",
|
||||
"explicit_replay_ready": true,
|
||||
"failed_attachment_binding": 409
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
FAIL: POST /api/v1/chats/2a81dc08-f62f-4897-899d-7c925a255fbf/attachments: expected [202], received 201
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"name": "mtusi-lab5-api-2",
|
||||
"instance": "fa72717b0a734be9b12e177fd2ca606d",
|
||||
"release": "lab5-v1",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"stopped_at_utc": "2026-11-09T15:16:14.991795+00:00",
|
||||
"stop_seconds": 0.5132,
|
||||
"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": [
|
||||
"2836440f76e24486ab068d4c71498d15",
|
||||
"77545b2c0222441193411736edbf54ff"
|
||||
]
|
||||
}
|
||||
@@ -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,428 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"before": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "07cfdd91be6804999a83f2e8f9d6fe5ebc8a655db57e6d84c681b8223f653808",
|
||||
"name": "mtusi-lab5-api-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:12:16.797696721Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data",
|
||||
"mtusi-lab5_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "77545b2c0222441193411736edbf54ff",
|
||||
"release": "lab5-v1"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"name": "mtusi-lab5-api-2",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:12:16.716356512Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data",
|
||||
"mtusi-lab5_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "2836440f76e24486ab068d4c71498d15",
|
||||
"release": "lab5-v1"
|
||||
},
|
||||
{
|
||||
"service": "broker",
|
||||
"container": "4ae9bb96997fc330297b8b1f7dc802643300d3d5fb2dcc0431fd24e7dd6bd646",
|
||||
"name": "mtusi-lab5-broker-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:12:27.23476842Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 167772160,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "1e8af54790b3d81c6ab07b8b48e2190ffd58177f02cfbb71a4e9d70642d28732",
|
||||
"name": "mtusi-lab5-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:06:24.855529918Z",
|
||||
"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-lab5_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "7a5be77365652cc141dc5f96a13977d9ece465f5e11313a80719e83cc23bd8b8",
|
||||
"name": "mtusi-lab5-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:14:23.843447751Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "28139ee8cc9a93c011dbc795a747e711cf532953c0222ecfff055456aad67ab6",
|
||||
"name": "mtusi-lab5-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:06:18.468961513Z",
|
||||
"image": "mtusi-lab5-minio:2025-04-22",
|
||||
"image_id": "sha256:72715c518d214a04aaa43f38aaae882a07e6e59d8dd9e6b0dd31a42fd47dfa41",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "3ecadb4d965df869dd2e46c9f43b9388ac1fdcc0ef84051e13830e02504c9dfd",
|
||||
"name": "mtusi-lab5-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:14:23.912373126Z",
|
||||
"image": "mtusi-lab5-mc:2025-04-16",
|
||||
"image_id": "sha256:48bb08e6faef719679f13f7bc92e12f5ad550f92066a6c0a553ff7d463d8d5c3",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "74681e7e4e0a21be82e14a032a7180b6a1eca6f5723d17b1fe5aa590087c79f3",
|
||||
"name": "mtusi-lab5-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:06:18.410650346Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "d95d99e43cd645266f73e98e513eb233b614e607f7610089fa7beba7fec561f3",
|
||||
"name": "mtusi-lab5-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:06:18.524762596Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "relay",
|
||||
"container": "64d602cba0426d571d9e213f54fc78dff1824a617202eaf85186be25018eefce",
|
||||
"name": "mtusi-lab5-relay-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:14:20.333630291Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"container": "63cbd712bb72a3cc09d3dec9c20f439e7780bb5eb6ffd54e91fe79842d8f42e5",
|
||||
"name": "mtusi-lab5-worker-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:14:20.398521Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"service": "api",
|
||||
"container": "07cfdd91be6804999a83f2e8f9d6fe5ebc8a655db57e6d84c681b8223f653808",
|
||||
"name": "mtusi-lab5-api-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.966931253Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data",
|
||||
"mtusi-lab5_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "cda72c7a2f684f4f83c4f124fe97d9a6",
|
||||
"release": "lab5-v1"
|
||||
},
|
||||
{
|
||||
"service": "api",
|
||||
"container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"name": "mtusi-lab5-api-2",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.899393962Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data",
|
||||
"mtusi-lab5_front"
|
||||
],
|
||||
"http_status": 200,
|
||||
"instance": "c306444bf8ac4a599b4dc6ac465b038a",
|
||||
"release": "lab5-v1"
|
||||
},
|
||||
{
|
||||
"service": "broker",
|
||||
"container": "4ae9bb96997fc330297b8b1f7dc802643300d3d5fb2dcc0431fd24e7dd6bd646",
|
||||
"name": "mtusi-lab5-broker-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.613805961Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 167772160,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_broker_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "lb",
|
||||
"container": "1e8af54790b3d81c6ab07b8b48e2190ffd58177f02cfbb71a4e9d70642d28732",
|
||||
"name": "mtusi-lab5-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.692474795Z",
|
||||
"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-lab5_front"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"container": "7a5be77365652cc141dc5f96a13977d9ece465f5e11313a80719e83cc23bd8b8",
|
||||
"name": "mtusi-lab5-migrate-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:29.872387004Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 268435456,
|
||||
"nano_cpus": 500000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio",
|
||||
"container": "28139ee8cc9a93c011dbc795a747e711cf532953c0222ecfff055456aad67ab6",
|
||||
"name": "mtusi-lab5-minio-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.65248217Z",
|
||||
"image": "mtusi-lab5-minio:2025-04-22",
|
||||
"image_id": "sha256:72715c518d214a04aaa43f38aaae882a07e6e59d8dd9e6b0dd31a42fd47dfa41",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_minio_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "minio-init",
|
||||
"container": "3ecadb4d965df869dd2e46c9f43b9388ac1fdcc0ef84051e13830e02504c9dfd",
|
||||
"name": "mtusi-lab5-minio-init-1",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:30.375772004Z",
|
||||
"image": "mtusi-lab5-mc:2025-04-16",
|
||||
"image_id": "sha256:48bb08e6faef719679f13f7bc92e12f5ad550f92066a6c0a553ff7d463d8d5c3",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"container": "74681e7e4e0a21be82e14a032a7180b6a1eca6f5723d17b1fe5aa590087c79f3",
|
||||
"name": "mtusi-lab5-postgres-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.672883961Z",
|
||||
"image": "postgres:17.5-bookworm",
|
||||
"image_id": "sha256:fbcea1bd13b6a882cd6caa6b58db3ae5c102efe50ec625b3e2a5cbc50db5bfe4",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_postgres_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"container": "d95d99e43cd645266f73e98e513eb233b614e607f7610089fa7beba7fec561f3",
|
||||
"name": "mtusi-lab5-redis-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.736927712Z",
|
||||
"image": "redis:7.4.4-bookworm",
|
||||
"image_id": "sha256:7b5ee51c14cf5febd4adde3a4b6cced72efdf154df7e9a0383163b13e16e9091",
|
||||
"memory_bytes": 134217728,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [
|
||||
"mtusi-lab5_redis_data"
|
||||
],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "relay",
|
||||
"container": "64d602cba0426d571d9e213f54fc78dff1824a617202eaf85186be25018eefce",
|
||||
"name": "mtusi-lab5-relay-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:28.180030295Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 201326592,
|
||||
"nano_cpus": 250000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"container": "63cbd712bb72a3cc09d3dec9c20f439e7780bb5eb6ffd54e91fe79842d8f42e5",
|
||||
"name": "mtusi-lab5-worker-1",
|
||||
"status": "running",
|
||||
"health": null,
|
||||
"started_at": "2026-11-09T15:15:28.686125545Z",
|
||||
"image": "mtusi-lab5-api:lab5",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"memory_bytes": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"published_ports": {},
|
||||
"volumes": [],
|
||||
"networks": [
|
||||
"mtusi-lab5_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\": 133, \"failed_attempts\": 0, \"first_recovery_seconds\": 0.878}\nPASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.",
|
||||
"stopped": {
|
||||
"container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"name": "mtusi-lab5-api-2",
|
||||
"instance": "c306444bf8ac4a599b4dc6ac465b038a",
|
||||
"release": "lab5-v1",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"stopped_at_utc": "2026-11-09T15:15:35.619684+00:00",
|
||||
"stop_seconds": 0.3357,
|
||||
"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": 133, "failed_attempts": 0, "first_recovery_seconds": 0.878}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,171 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"before": [
|
||||
{
|
||||
"container": "07cfdd91be6804999a83f2e8f9d6fe5ebc8a655db57e6d84c681b8223f653808",
|
||||
"name": "mtusi-lab5-api-1",
|
||||
"instance": "d23b5da28be949239c1ea5f27a578822",
|
||||
"release": "lab5-v1",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b"
|
||||
},
|
||||
{
|
||||
"container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"name": "mtusi-lab5-api-2",
|
||||
"instance": "7c84431c2a104eba8f1f3d789d971602",
|
||||
"release": "lab5-v1",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b"
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"container": "04dace371f7c119107574888627a31b46870064efb055240ece1e76f25aa6f0e",
|
||||
"name": "mtusi-lab5-api-3",
|
||||
"instance": "f0356f65fd3349ebb6a12a12cbe8911b",
|
||||
"release": "lab5-03545ea5",
|
||||
"image_id": "sha256:d0161806e14c815373596e7ed6ad1dd90c1099f1d6effa1178f6d723272084fe"
|
||||
},
|
||||
{
|
||||
"container": "ddd943a740c7befc0853727aa039a802ebc7c2ec6e82b61747da7c301964f5ca",
|
||||
"name": "mtusi-lab5-api-4",
|
||||
"instance": "1f3ca0aa757548729c3af44cfe1152d8",
|
||||
"release": "lab5-03545ea5",
|
||||
"image_id": "sha256:d0161806e14c815373596e7ed6ad1dd90c1099f1d6effa1178f6d723272084fe"
|
||||
}
|
||||
],
|
||||
"target_release": "lab5-03545ea5",
|
||||
"lb_before": {
|
||||
"service": "lb",
|
||||
"container": "1e8af54790b3d81c6ab07b8b48e2190ffd58177f02cfbb71a4e9d70642d28732",
|
||||
"name": "mtusi-lab5-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.692474795Z",
|
||||
"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-lab5_front"
|
||||
]
|
||||
},
|
||||
"lb_after": {
|
||||
"service": "lb",
|
||||
"container": "1e8af54790b3d81c6ab07b8b48e2190ffd58177f02cfbb71a4e9d70642d28732",
|
||||
"name": "mtusi-lab5-lb-1",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"started_at": "2026-11-09T15:15:27.692474795Z",
|
||||
"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-lab5_front"
|
||||
]
|
||||
},
|
||||
"lb_not_restarted": true,
|
||||
"build_seconds": 3.8455,
|
||||
"migration_output": "Migrations up to date",
|
||||
"replacements": [
|
||||
{
|
||||
"old_container": "07cfdd91be6804999a83f2e8f9d6fe5ebc8a655db57e6d84c681b8223f653808",
|
||||
"new_container": "04dace371f7c119107574888627a31b46870064efb055240ece1e76f25aa6f0e",
|
||||
"old_ip": "172.26.0.3",
|
||||
"new_ip": "172.26.0.5",
|
||||
"dns_discovered_new_address": true,
|
||||
"instances_during_start_first": [
|
||||
"7c84431c2a104eba8f1f3d789d971602",
|
||||
"d23b5da28be949239c1ea5f27a578822",
|
||||
"f0356f65fd3349ebb6a12a12cbe8911b"
|
||||
],
|
||||
"observed_instances": [
|
||||
"7c84431c2a104eba8f1f3d789d971602",
|
||||
"f0356f65fd3349ebb6a12a12cbe8911b"
|
||||
],
|
||||
"old_exit_code": 0,
|
||||
"seconds": 5.1191
|
||||
},
|
||||
{
|
||||
"old_container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"new_container": "ddd943a740c7befc0853727aa039a802ebc7c2ec6e82b61747da7c301964f5ca",
|
||||
"old_ip": "172.26.0.2",
|
||||
"new_ip": "172.26.0.3",
|
||||
"dns_discovered_new_address": true,
|
||||
"instances_during_start_first": [
|
||||
"1f3ca0aa757548729c3af44cfe1152d8",
|
||||
"7c84431c2a104eba8f1f3d789d971602",
|
||||
"f0356f65fd3349ebb6a12a12cbe8911b"
|
||||
],
|
||||
"observed_instances": [
|
||||
"1f3ca0aa757548729c3af44cfe1152d8",
|
||||
"f0356f65fd3349ebb6a12a12cbe8911b"
|
||||
],
|
||||
"old_exit_code": 0,
|
||||
"seconds": 6.1668
|
||||
}
|
||||
],
|
||||
"during_replacement": {
|
||||
"seconds": 11.286,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 8541,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 756.778,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.383,
|
||||
"p95": 7.793,
|
||||
"p99": 35.123
|
||||
},
|
||||
"instances": [
|
||||
"1f3ca0aa757548729c3af44cfe1152d8",
|
||||
"7c84431c2a104eba8f1f3d789d971602",
|
||||
"d23b5da28be949239c1ea5f27a578822",
|
||||
"f0356f65fd3349ebb6a12a12cbe8911b"
|
||||
]
|
||||
},
|
||||
"total": {
|
||||
"seconds": 22.0756,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 16487,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 746.843,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.601,
|
||||
"p95": 7.648,
|
||||
"p99": 26.561
|
||||
},
|
||||
"instances": [
|
||||
"1f3ca0aa757548729c3af44cfe1152d8",
|
||||
"7c84431c2a104eba8f1f3d789d971602",
|
||||
"d23b5da28be949239c1ea5f27a578822",
|
||||
"f0356f65fd3349ebb6a12a12cbe8911b"
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"confirmed_unique_messages": 16487,
|
||||
"history_messages": 16487,
|
||||
"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,135 @@
|
||||
{
|
||||
"result": "PASS",
|
||||
"baseline": {
|
||||
"seconds": 3.0041,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 2367,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 787.933,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.168,
|
||||
"p95": 6.086,
|
||||
"p99": 33.522
|
||||
},
|
||||
"instances": [
|
||||
"cda72c7a2f684f4f83c4f124fe97d9a6",
|
||||
"fa72717b0a734be9b12e177fd2ca606d"
|
||||
]
|
||||
},
|
||||
"phases": [
|
||||
{
|
||||
"stopped": {
|
||||
"container": "07cfdd91be6804999a83f2e8f9d6fe5ebc8a655db57e6d84c681b8223f653808",
|
||||
"name": "mtusi-lab5-api-1",
|
||||
"instance": "cda72c7a2f684f4f83c4f124fe97d9a6",
|
||||
"release": "lab5-v1",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"stopped_at_utc": "2026-11-09T15:16:01.326356+00:00",
|
||||
"stop_seconds": 0.4399,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
},
|
||||
"traffic": {
|
||||
"seconds": 8.0034,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 4111,
|
||||
"failed_attempts": 1,
|
||||
"successful_rps": 513.658,
|
||||
"error_ratio": 0.000243,
|
||||
"successful_latency_ms": {
|
||||
"p50": 6.469,
|
||||
"p95": 12.349,
|
||||
"p99": 58.778
|
||||
},
|
||||
"instances": [
|
||||
"cda72c7a2f684f4f83c4f124fe97d9a6",
|
||||
"fa72717b0a734be9b12e177fd2ca606d"
|
||||
]
|
||||
},
|
||||
"post_stop_write_seconds_from_action_start": 1.4598,
|
||||
"post_stop_write_seconds_from_stop_completion": 0.029,
|
||||
"read_during_outage": {
|
||||
"status": 200,
|
||||
"confirmed_message_preserved": true,
|
||||
"seconds_from_action_start": 1.4513,
|
||||
"seconds_from_stop_completion": 0.0206
|
||||
},
|
||||
"new_connection_after_stop": {
|
||||
"accepted": false,
|
||||
"error_type": "TimeoutError"
|
||||
},
|
||||
"stopped_remains_stopped": true
|
||||
},
|
||||
{
|
||||
"stopped": {
|
||||
"container": "9db348f53667a52f5b86a5f5669261201905a75eb0b74b7871d45257294054e6",
|
||||
"name": "mtusi-lab5-api-2",
|
||||
"instance": "fa72717b0a734be9b12e177fd2ca606d",
|
||||
"release": "lab5-v1",
|
||||
"image_id": "sha256:dace11316f63abedc33626ca68f91be7185a168ce126bb50220c27a70d07087b",
|
||||
"stopped_at_utc": "2026-11-09T15:16:14.991795+00:00",
|
||||
"stop_seconds": 0.5132,
|
||||
"exit_code": 0,
|
||||
"left_stopped": true
|
||||
},
|
||||
"traffic": {
|
||||
"seconds": 8.0007,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 4087,
|
||||
"failed_attempts": 0,
|
||||
"successful_rps": 510.829,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 6.497,
|
||||
"p95": 13.243,
|
||||
"p99": 57.218
|
||||
},
|
||||
"instances": [
|
||||
"3cd11c3ed6654d15aa331b17da172ba6",
|
||||
"fa72717b0a734be9b12e177fd2ca606d"
|
||||
]
|
||||
},
|
||||
"post_stop_write_seconds_from_action_start": 1.3033,
|
||||
"post_stop_write_seconds_from_stop_completion": 0.0159,
|
||||
"read_during_outage": {
|
||||
"status": 200,
|
||||
"confirmed_message_preserved": true,
|
||||
"seconds_from_action_start": 1.3004,
|
||||
"seconds_from_stop_completion": 0.013
|
||||
},
|
||||
"new_connection_after_stop": {
|
||||
"accepted": false,
|
||||
"error_type": "TimeoutError"
|
||||
},
|
||||
"stopped_remains_stopped": true
|
||||
}
|
||||
],
|
||||
"total": {
|
||||
"seconds": 30.9184,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 18469,
|
||||
"failed_attempts": 1,
|
||||
"successful_rps": 597.347,
|
||||
"error_ratio": 5.4e-05,
|
||||
"successful_latency_ms": {
|
||||
"p50": 5.53,
|
||||
"p95": 10.788,
|
||||
"p99": 46.459
|
||||
},
|
||||
"instances": [
|
||||
"3cd11c3ed6654d15aa331b17da172ba6",
|
||||
"7c84431c2a104eba8f1f3d789d971602",
|
||||
"cda72c7a2f684f4f83c4f124fe97d9a6",
|
||||
"fa72717b0a734be9b12e177fd2ca606d"
|
||||
]
|
||||
},
|
||||
"data": {
|
||||
"confirmed_unique_messages": 18469,
|
||||
"history_messages": 18469,
|
||||
"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: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,15 @@
|
||||
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: 19 warnings
|
||||
student-tests/test_idempotency.py: 1 warning
|
||||
student-tests/test_jobs.py: 6 warnings
|
||||
/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
|
||||
27 passed, 27 warnings in 11.58s
|
||||
Reference in New Issue
Block a user