This commit is contained in:
k00kzaAntonovaIra
2026-11-06 13:57:29 +03:00
parent ec540a1a72
commit 8d001712fe
194 changed files with 13448 additions and 203 deletions
+3
View File
@@ -0,0 +1,3 @@
$ docker compose --env-file .env config --quiet
exit_code=0; elapsed_seconds=0.328
+30
View File
@@ -0,0 +1,30 @@
$ docker version
Client:
Version: 26.1.4
API version: 1.45
Go version: go1.21.11
Git commit: 5650f9b
Built: Wed Jun 5 11:29:54 2024
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.31.1 (153621)
Engine:
Version: 26.1.4
API version: 1.45 (minimum version 1.24)
Go version: go1.21.11
Git commit: de5c9cf
Built: Wed Jun 5 11:29:22 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.33
GitCommit: d2d58213f83a351ca8f528a95fbd145f5654e957
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
exit_code=0; elapsed_seconds=0.109
+9
View File
@@ -0,0 +1,9 @@
{
"at_utc": "2026-11-05T21:25:22.372954+00:00",
"platform": "Windows-10-10.0.19045-SP0",
"python": "3.11.9",
"host_cpu_count": 16,
"cluster_checks": "included",
"synthetic_data_only": true,
"host_dependencies": "Python standard library + Docker Compose"
}
+30
View File
@@ -0,0 +1,30 @@
$ C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\.venv\Scripts\python.exe scripts/cluster_evidence.py --base-url http://127.0.0.1:8080 --output C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\evidence\lab4\cluster
PASS: evidence saved to evidence\lab4\cluster␍
Container mtusi-messenger-lab4-api-a-1 Created
Container mtusi-messenger-lab4-api-a-1 Starting
Container mtusi-messenger-lab4-api-a-1 Started
Container mtusi-messenger-lab4-api-b-1 Created
Container mtusi-messenger-lab4-api-b-1 Starting
Container mtusi-messenger-lab4-api-b-1 Started
Container mtusi-messenger-lab4-api-a-1 Running
Container mtusi-messenger-lab4-api-b-1 Created
Container mtusi-messenger-lab4-api-b-1 Starting
Container mtusi-messenger-lab4-api-b-1 Started
Container mtusi-messenger-lab4-api-a-1 Recreate
Container mtusi-messenger-lab4-api-a-1 Recreated
Container mtusi-messenger-lab4-api-a-1 Starting
Container mtusi-messenger-lab4-api-a-1 Started
Container mtusi-messenger-lab4-api-b-1 Recreate
Container mtusi-messenger-lab4-api-b-1 Recreated
Container mtusi-messenger-lab4-api-b-1 Starting
Container mtusi-messenger-lab4-api-b-1 Started
Container mtusi-messenger-lab4-api-a-1 Recreate
Container mtusi-messenger-lab4-api-a-1 Recreated
Container mtusi-messenger-lab4-api-a-1 Starting
Container mtusi-messenger-lab4-api-a-1 Started
Container mtusi-messenger-lab4-api-b-1 Recreate
Container mtusi-messenger-lab4-api-b-1 Recreated
Container mtusi-messenger-lab4-api-b-1 Starting
Container mtusi-messenger-lab4-api-b-1 Started
exit_code=0; elapsed_seconds=364.344
+4
View File
@@ -0,0 +1,4 @@
$ C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\.venv\Scripts\python.exe tests/smoke.py --base-url http://127.0.0.1:8080
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.␍
exit_code=0; elapsed_seconds=1.797
+10
View File
@@ -0,0 +1,10 @@
{
"attachment_id": "5d078480-4f83-447e-b36c-c7d566e03da3",
"upload_instance": "4fa6b582e5b94397b9dc92a8653573cd",
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"size_bytes": 111817,
"download_equal": true,
"attachment_only_message_visible": true,
"outsider_metadata_status": 404,
"outsider_content_status": 404
}
+10
View File
@@ -0,0 +1,10 @@
{
"upload_instance": "4fa6b582e5b94397b9dc92a8653573cd",
"stopped_service": "api-b",
"stopped_state": "exited",
"stopped_pid": 0,
"download_instance": "46dfed50fce84f5283007f574410c1f8",
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"download_equal": true,
"seconds_from_stop_start": 6.969
}
+48
View File
@@ -0,0 +1,48 @@
{
"before": [
{
"service": "api-a",
"container_id": "acb7370e1017564b1d069792638ee393604b2005c2eb236ade1201a2df01073d",
"pid": 96679,
"state": "running",
"started_at": "2026-11-05T21:31:23.369770863Z",
"status": 200,
"instance_id": "46dfed50fce84f5283007f574410c1f8"
},
{
"service": "api-b",
"container_id": "d0a10d56b0a4c20a44c899e177fb1b8ef209943b6f263aa35afa669ebe72c4d2",
"pid": 98295,
"state": "running",
"started_at": "2026-11-05T21:31:49.061422419Z",
"status": 200,
"instance_id": "f77b055741f14a63a061698f90d57e46"
}
],
"after": [
{
"service": "api-a",
"container_id": "72fd226c23b838293f4d7f0347a4541a13d0965cf37cc657e8f79fc8aedf0ae5",
"pid": 395,
"state": "running",
"started_at": "2026-11-05T21:32:21.171649446Z",
"status": 200,
"instance_id": "a7cafe615bac4e4fa5f098568c25444a"
},
{
"service": "api-b",
"container_id": "a9f95a6b71d1029cf15151be7638e7c65aa7e4a3d2ca9bd9bad25c5fc3a1c8dc",
"pid": 394,
"state": "running",
"started_at": "2026-11-05T21:32:21.167275356Z",
"status": 200,
"instance_id": "d5ef73b927474fdb980ddc3283a8cd43"
}
],
"existing_session_works": true,
"message_preserved": true,
"metadata_equal": true,
"download_equal": true,
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"restart_scope": "all default Compose services, force recreated; named volumes retained"
}
+73
View File
@@ -0,0 +1,73 @@
$ C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\.venv\Scripts\python.exe scripts/restart.py
Container mtusi-messenger-lab4-nginx-1 Stopping
Container mtusi-messenger-lab4-redis-1 Stopping
Container mtusi-messenger-lab4-cleanup-1 Stopping
Container mtusi-messenger-lab4-redis-1 Stopped
Container mtusi-messenger-lab4-nginx-1 Stopped
Container mtusi-messenger-lab4-api-b-1 Stopping
Container mtusi-messenger-lab4-api-a-1 Stopping
Container mtusi-messenger-lab4-api-b-1 Stopped
Container mtusi-messenger-lab4-api-a-1 Stopped
Container mtusi-messenger-lab4-cleanup-1 Stopped
Container mtusi-messenger-lab4-minio-init-1 Stopping
Container mtusi-messenger-lab4-migrate-1 Stopping
Container mtusi-messenger-lab4-minio-init-1 Stopped
Container mtusi-messenger-lab4-minio-1 Stopping
Container mtusi-messenger-lab4-migrate-1 Stopped
Container mtusi-messenger-lab4-db-1 Stopping
Container mtusi-messenger-lab4-minio-1 Stopped
Container mtusi-messenger-lab4-db-1 Stopped
Container mtusi-messenger-lab4-redis-1 Recreate
Container mtusi-messenger-lab4-minio-1 Recreate
Container mtusi-messenger-lab4-db-1 Recreate
Container mtusi-messenger-lab4-db-1 Recreated
Container mtusi-messenger-lab4-migrate-1 Recreate
Container mtusi-messenger-lab4-minio-1 Recreated
Container mtusi-messenger-lab4-minio-init-1 Recreate
Container mtusi-messenger-lab4-redis-1 Recreated
Container mtusi-messenger-lab4-minio-init-1 Recreated
Container mtusi-messenger-lab4-migrate-1 Recreated
Container mtusi-messenger-lab4-api-a-1 Recreate
Container mtusi-messenger-lab4-api-b-1 Recreate
Container mtusi-messenger-lab4-cleanup-1 Recreate
Container mtusi-messenger-lab4-api-b-1 Recreated
Container mtusi-messenger-lab4-cleanup-1 Recreated
Container mtusi-messenger-lab4-api-a-1 Recreated
Container mtusi-messenger-lab4-nginx-1 Recreate
Container mtusi-messenger-lab4-nginx-1 Recreated
Container mtusi-messenger-lab4-db-1 Starting
Container mtusi-messenger-lab4-minio-1 Starting
Container mtusi-messenger-lab4-redis-1 Starting
Container mtusi-messenger-lab4-minio-1 Started
Container mtusi-messenger-lab4-minio-1 Waiting
Container mtusi-messenger-lab4-db-1 Started
Container mtusi-messenger-lab4-db-1 Waiting
Container mtusi-messenger-lab4-redis-1 Started
Container mtusi-messenger-lab4-minio-1 Healthy
Container mtusi-messenger-lab4-minio-init-1 Starting
Container mtusi-messenger-lab4-db-1 Healthy
Container mtusi-messenger-lab4-migrate-1 Starting
Container mtusi-messenger-lab4-minio-init-1 Started
Container mtusi-messenger-lab4-migrate-1 Started
Container mtusi-messenger-lab4-migrate-1 Waiting
Container mtusi-messenger-lab4-minio-init-1 Waiting
Container mtusi-messenger-lab4-minio-init-1 Waiting
Container mtusi-messenger-lab4-migrate-1 Waiting
Container mtusi-messenger-lab4-minio-init-1 Waiting
Container mtusi-messenger-lab4-migrate-1 Waiting
Container mtusi-messenger-lab4-minio-init-1 Exited
Container mtusi-messenger-lab4-minio-init-1 Exited
Container mtusi-messenger-lab4-minio-init-1 Exited
Container mtusi-messenger-lab4-migrate-1 Exited
Container mtusi-messenger-lab4-api-a-1 Starting
Container mtusi-messenger-lab4-migrate-1 Exited
Container mtusi-messenger-lab4-cleanup-1 Starting
Container mtusi-messenger-lab4-migrate-1 Exited
Container mtusi-messenger-lab4-api-b-1 Starting
Container mtusi-messenger-lab4-cleanup-1 Started
Container mtusi-messenger-lab4-api-b-1 Started
Container mtusi-messenger-lab4-api-a-1 Started
Container mtusi-messenger-lab4-nginx-1 Starting
Container mtusi-messenger-lab4-nginx-1 Started
exit_code=0; elapsed_seconds=29.437
+67
View File
@@ -0,0 +1,67 @@
{
"direct_api_probes": {
"api-a": {
"live": {
"status": 200,
"instance_id": "a7cafe615bac4e4fa5f098568c25444a",
"request_id_present": true
},
"ready": {
"status": 503,
"instance_id": "a7cafe615bac4e4fa5f098568c25444a",
"request_id_present": true,
"error_code": "unavailable",
"request_id_matches": true
},
"upload": {
"status": 503,
"instance_id": "a7cafe615bac4e4fa5f098568c25444a",
"request_id_present": true,
"error_code": "unavailable",
"request_id_matches": true
},
"content": {
"status": 503,
"instance_id": "a7cafe615bac4e4fa5f098568c25444a",
"request_id_present": true,
"error_code": "unavailable",
"request_id_matches": true
}
},
"api-b": {
"live": {
"status": 200,
"instance_id": "d5ef73b927474fdb980ddc3283a8cd43",
"request_id_present": true
},
"ready": {
"status": 503,
"instance_id": "d5ef73b927474fdb980ddc3283a8cd43",
"request_id_present": true,
"error_code": "unavailable",
"request_id_matches": true
},
"upload": {
"status": 503,
"instance_id": "d5ef73b927474fdb980ddc3283a8cd43",
"request_id_present": true,
"error_code": "unavailable",
"request_id_matches": true
},
"content": {
"status": 503,
"instance_id": "d5ef73b927474fdb980ddc3283a8cd43",
"request_id_present": true,
"error_code": "unavailable",
"request_id_matches": true
}
}
},
"public_readiness": {
"status": 503,
"error_code": "unavailable",
"request_id_matches": true
},
"restored_download_equal": true,
"method": "probe each API directly inside its container because LB excludes unready backends"
}
+4
View File
@@ -0,0 +1,4 @@
$ docker compose --env-file .env run --rm --no-deps minio-init
PASS: private bucket and separate restricted API account configured
exit_code=0; elapsed_seconds=4.219
+4
View File
@@ -0,0 +1,4 @@
$ docker compose --env-file .env run --rm --no-deps minio-init
PASS: private bucket and separate restricted API account configured
exit_code=0; elapsed_seconds=4.406
+15
View File
@@ -0,0 +1,15 @@
{
"anonymous_get_status": 403,
"restricted_operations": {
"list_foreign_bucket": "AccessDenied",
"make_bucket": "AccessDenied",
"put_outside_prefix": "AccessDenied"
},
"visible_buckets": [
"attachments"
],
"visible_buckets_limited": true,
"root_credentials_absent_in_api": true,
"server_assigned_original_prefix": true,
"bootstrap_repeated_successfully": 2
}
+206
View File
@@ -0,0 +1,206 @@
{
"concurrency": 10,
"barrier_synchronized": true,
"requests": 10,
"successes": 10,
"failures": 0,
"fixture_bytes": 2099087,
"fixture_dimensions": [
1024,
683
],
"fixture_sha256": "f9c08c2477d17120713793c91f419cbea0de705de10c1123fdabc63d3733f00f",
"elapsed_seconds": 0.719,
"successful_uploads_per_second": 13.908,
"successful_mib_per_second": 27.842,
"instances": [
"a7cafe615bac4e4fa5f098568c25444a",
"d5ef73b927474fdb980ddc3283a8cd43"
],
"memory": [
{
"service": "api-a",
"sampling_interval_seconds": 0.2,
"baseline_cgroup_bytes": 93847552,
"sampled_cgroup_peak_bytes": 94785536,
"sampled_growth_bytes": 937984,
"sampled_api_pid1_rss_peak_bytes": 101380096,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"samples": [
{
"seconds": 0.0,
"cgroup_version": 1,
"memory_current_bytes": 93847552,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91144192
},
{
"seconds": 0.201,
"cgroup_version": 1,
"memory_current_bytes": 94670848,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91144192
},
{
"seconds": 0.402,
"cgroup_version": 1,
"memory_current_bytes": 81805312,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91144192
},
{
"seconds": 0.603,
"cgroup_version": 1,
"memory_current_bytes": 81674240,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91144192
},
{
"seconds": 0.804,
"cgroup_version": 1,
"memory_current_bytes": 81674240,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91144192
},
{
"seconds": 1.005,
"cgroup_version": 1,
"memory_current_bytes": 81805312,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91144192
},
{
"seconds": 1.206,
"cgroup_version": 1,
"memory_current_bytes": 83456000,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 92024832
},
{
"seconds": 1.408,
"cgroup_version": 1,
"memory_current_bytes": 94494720,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 99217408
},
{
"seconds": 1.609,
"cgroup_version": 1,
"memory_current_bytes": 94785536,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 99217408
},
{
"seconds": 1.8,
"cgroup_version": 1,
"memory_current_bytes": 92299264,
"container_lifetime_peak_bytes": 122769408,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 101380096
}
],
"limitations": "cgroup includes file cache and sampler overhead; 200 ms samples may miss short spikes; lifetime peak may predate this experiment"
},
{
"service": "api-b",
"sampling_interval_seconds": 0.2,
"baseline_cgroup_bytes": 81969152,
"sampled_cgroup_peak_bytes": 96743424,
"sampled_growth_bytes": 14774272,
"sampled_api_pid1_rss_peak_bytes": 101416960,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"samples": [
{
"seconds": 0.0,
"cgroup_version": 1,
"memory_current_bytes": 81969152,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91119616
},
{
"seconds": 0.201,
"cgroup_version": 1,
"memory_current_bytes": 81969152,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91119616
},
{
"seconds": 0.402,
"cgroup_version": 1,
"memory_current_bytes": 81862656,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 91119616
},
{
"seconds": 0.603,
"cgroup_version": 1,
"memory_current_bytes": 83652608,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 92098560
},
{
"seconds": 0.804,
"cgroup_version": 1,
"memory_current_bytes": 94892032,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 99246080
},
{
"seconds": 1.005,
"cgroup_version": 1,
"memory_current_bytes": 96743424,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 101416960
},
{
"seconds": 1.206,
"cgroup_version": 1,
"memory_current_bytes": 92405760,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 101416960
},
{
"seconds": 1.339,
"cgroup_version": 1,
"memory_current_bytes": 92397568,
"container_lifetime_peak_bytes": 99397632,
"limit_bytes": 536870912,
"api_pid1_rss_bytes": 101416960
}
],
"limitations": "cgroup includes file cache and sampler overhead; 200 ms samples may miss short spikes; lifetime peak may predate this experiment"
}
],
"latency_seconds": [
0.562,
0.672,
0.516,
0.625,
0.391,
0.391,
0.687,
0.562,
0.391,
0.719
],
"errors": [],
"all_downloads_equal": true
}
+4
View File
@@ -0,0 +1,4 @@
$ docker compose --env-file .env exec -T api-a python -m app.cleanup --dry-run
{"candidates": 0, "deleted": 0, "failed": 0, "dry_run": true}
exit_code=0; elapsed_seconds=5.844
+455
View File
@@ -0,0 +1,455 @@
$ docker compose --env-file .env --profile test run --rm --build tests
#0 building with "desktop-linux" instance using docker driver
#1 [minio internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.79kB done
#1 DONE 0.0s
#2 [minio internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 ...
#3 [minio internal] load metadata for docker.io/library/golang:1.24.8-bookworm
#3 DONE 0.9s
#2 [minio internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 DONE 0.9s
#4 [minio internal] load .dockerignore
#4 transferring context: 196B done
#4 DONE 0.0s
#5 [minio server 1/4] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#5 DONE 0.0s
#6 [minio go-build 1/1] FROM docker.io/library/golang:1.24.8-bookworm@sha256:4ed690d6649d63c312b99a6120025ec79ce3b542968a37da53d6236c7c61a848
#6 DONE 0.0s
#7 [minio internal] load build context
#7 transferring context: 420B 0.0s done
#7 DONE 0.0s
#8 [minio server 2/4] COPY --from=minio-build /out/minio /usr/local/bin/minio
#8 CACHED
#9 [minio server 3/4] COPY infra/minio/healthcheck.py /opt/minio/healthcheck.py
#9 CACHED
#10 [minio minio-build 1/1] RUN go install -p 2 -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-10-15T17:29:55Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-10-15T17-29-55Z" github.com/minio/minio@RELEASE.2025-10-15T17-29-55Z
#10 CACHED
#11 [minio server 4/4] RUN mkdir /data && chown 10001:10001 /data
#11 CACHED
#12 [minio] exporting to image
#12 exporting layers done
#12 writing image sha256:1a1494b9ad336bea42711376d400cb56f503ec86ad5a0c0442a3e86dea560afd done
#12 naming to docker.io/library/mtusi-minio:RELEASE.2025-10-15T17-29-55Z done
#12 DONE 0.0s
#13 [minio-init internal] load build definition from Dockerfile
#13 transferring dockerfile: 1.79kB 0.0s done
#13 DONE 0.0s
#2 [minio-init internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 DONE 1.2s
#3 [minio-init internal] load metadata for docker.io/library/golang:1.24.8-bookworm
#3 DONE 1.2s
#14 [minio-init internal] load .dockerignore
#14 transferring context: 196B done
#14 DONE 0.0s
#5 [minio-init bootstrap 1/3] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#5 DONE 0.0s
#6 [minio-init go-build 1/1] FROM docker.io/library/golang:1.24.8-bookworm@sha256:4ed690d6649d63c312b99a6120025ec79ce3b542968a37da53d6236c7c61a848
#6 DONE 0.0s
#15 [minio-init internal] load build context
#15 transferring context: 3.45kB done
#15 DONE 0.0s
#16 [minio-init bootstrap 2/3] COPY --from=mc-build /out/mc /usr/local/bin/mc
#16 CACHED
#17 [minio-init mc-build 1/1] RUN go install -p 2 -trimpath -ldflags="-s -w -X github.com/minio/mc/cmd.Version=2025-08-13T08:35:41Z -X github.com/minio/mc/cmd.ReleaseTag=RELEASE.2025-08-13T08-35-41Z" github.com/minio/mc@RELEASE.2025-08-13T08-35-41Z
#17 CACHED
#18 [minio-init bootstrap 3/3] COPY infra/minio/bootstrap.py /opt/minio/bootstrap.py
#18 CACHED
#19 [minio-init] exporting to image
#19 exporting layers done
#19 writing image sha256:bf240f90f68d7541e416ff322fc356abd7796a95e6cafe1673df1cbf363698a5 done
#19 naming to docker.io/library/mtusi-minio-mc:RELEASE.2025-08-13T08-35-41Z done
#19 DONE 0.0s
#0 building with "desktop-linux" instance using docker driver
#1 [tests internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.04kB done
#1 DONE 0.0s
#2 [tests internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 DONE 0.4s
#3 [tests internal] load .dockerignore
#3 transferring context: 196B done
#3 DONE 0.0s
#4 [tests base 1/6] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#4 DONE 0.0s
#5 [tests internal] load build context
#5 transferring context: 645.96kB 0.0s done
#5 DONE 0.1s
#6 [tests test 4/9] COPY student-tests ./student-tests
#6 CACHED
#7 [tests test 1/9] COPY requirements-test.txt ./
#7 CACHED
#8 [tests base 5/6] RUN pip install -r requirements.txt
#8 CACHED
#9 [tests test 3/9] COPY pytest.ini ./
#9 CACHED
#10 [tests test 5/9] COPY unit-tests ./unit-tests
#10 CACHED
#11 [tests test 7/9] COPY tests ./tests
#11 CACHED
#12 [tests base 3/6] WORKDIR /srv
#12 CACHED
#13 [tests test 2/9] RUN pip install -r requirements-test.txt
#13 CACHED
#14 [tests test 6/9] COPY scripts ./scripts
#14 CACHED
#15 [tests base 2/6] RUN groupadd --system --gid 10001 app && useradd --system --uid 10001 --gid app --no-create-home --shell /usr/sbin/nologin app
#15 CACHED
#16 [tests test 8/9] COPY lab.json ./
#16 CACHED
#17 [tests base 4/6] COPY requirements.txt ./
#17 CACHED
#18 [tests base 6/6] COPY app ./app
#18 CACHED
#19 [tests test 9/9] COPY contracts ./contracts
#19 CACHED
#20 [tests] exporting to image
#20 exporting layers done
#20 writing image sha256:b0bdbf812b02e11b2c808878a3602d455fe28ff3ae11fed5fdf3ba2364d33d90 done
#20 naming to docker.io/library/mtusi-messenger:lab4-test done
#20 DONE 0.0s
============================= test session starts ==============================
collecting ... collected 279 items
student-tests/test_attachment_failures.py::test_s3_failure_leaves_accounted_intent_and_cleanup_retries[False] PASSED [ 0%]
student-tests/test_attachment_failures.py::test_s3_failure_leaves_accounted_intent_and_cleanup_retries[True] PASSED [ 0%]
student-tests/test_attachment_failures.py::test_database_failure_after_put_is_compensated PASSED [ 1%]
student-tests/test_attachment_failures.py::test_ambiguous_successful_commit_never_deletes_ready_file PASSED [ 1%]
student-tests/test_attachment_failures.py::test_cleanup_never_removes_old_ready_attachment PASSED [ 1%]
student-tests/test_attachment_failures.py::test_interrupted_body_creates_neither_metadata_nor_object PASSED [ 2%]
student-tests/test_attachments.py::test_original_metadata_and_bytes_for_another_member[PNG-image/png-\u0441\u043d\u0438\u043c\u043e\u043a.png] PASSED [ 2%]
student-tests/test_attachments.py::test_original_metadata_and_bytes_for_another_member[JPEG-image/jpeg-photo.jpeg] PASSED [ 2%]
student-tests/test_attachments.py::test_filename_is_not_an_object_identifier PASSED [ 3%]
student-tests/test_attachments.py::test_outsider_cannot_upload_read_or_reference_an_attachment PASSED [ 3%]
student-tests/test_attachments.py::test_attachment_cannot_move_between_chats_even_for_same_member PASSED [ 3%]
student-tests/test_attachments.py::test_unknown_attachment_is_404_without_creating_message PASSED [ 4%]
student-tests/test_attachments.py::test_any_member_can_send_attachment_without_text[] PASSED [ 4%]
student-tests/test_attachments.py::test_any_member_can_send_attachment_without_text[ \t\n] PASSED [ 5%]
student-tests/test_attachments.py::test_replay_compares_attachments_and_preserves_order PASSED [ 5%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[None] PASSED [ 5%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[not-a-list] PASSED [ 6%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[values2] PASSED [ 6%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[values3] PASSED [ 6%]
student-tests/test_attachments.py::test_duplicate_and_excessive_attachment_ids_are_400 PASSED [ 7%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[] PASSED [ 7%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 7%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[../photo.png] PASSED [ 8%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[folder/photo.png] PASSED [ 8%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[folder\\photo.png] PASSED [ 8%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\x00.png] PASSED [ 9%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\r\n.png] PASSED [ 9%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\t.png] PASSED [ 10%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\x7f.png] PASSED [ 10%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\x85.png] PASSED [ 10%]
student-tests/test_attachments.py::test_missing_filename_is_400 PASSED [ 11%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[-image/png] PASSED [ 11%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[not an image-image/png] PASSED [ 11%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[GIF89a\x01\x00\x01\x00-image/png] PASSED [ 12%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[<svg xmlns='http://www.w3.org/2000/svg'/>-image/svg+xml] PASSED [ 12%]
student-tests/test_attachments.py::test_declared_mime_must_match_real_image[PNG-image/jpeg] PASSED [ 12%]
student-tests/test_attachments.py::test_declared_mime_must_match_real_image[JPEG-image/png] PASSED [ 13%]
student-tests/test_attachments.py::test_declared_mime_must_match_real_image[PNG-application/octet-stream] PASSED [ 13%]
student-tests/test_attachments.py::test_truncated_image_is_rejected[PNG-image/png] PASSED [ 13%]
student-tests/test_attachments.py::test_truncated_image_is_rejected[JPEG-image/jpeg] PASSED [ 14%]
student-tests/test_attachments.py::test_png_with_corrupted_pixel_stream_is_rejected PASSED [ 14%]
student-tests/test_attachments.py::test_byte_limit_with_content_length PASSED [ 15%]
student-tests/test_attachments.py::test_byte_limit_without_content_length PASSED [ 15%]
student-tests/test_attachments.py::test_image_exactly_at_byte_limit_is_accepted PASSED [ 15%]
student-tests/test_attachments.py::test_pixel_limit_is_checked_before_decoding PASSED [ 16%]
student-tests/test_attachments.py::test_missing_variant_is_404 PASSED [ 16%]
student-tests/test_auth.py::test_register_returns_user_without_secrets PASSED [ 16%]
student-tests/test_auth.py::test_register_password_rules[None] PASSED [ 17%]
student-tests/test_auth.py::test_register_password_rules[] PASSED [ 17%]
student-tests/test_auth.py::test_register_password_rules[short] PASSED [ 17%]
student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaa] PASSED [ 18%]
student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 18%]
student-tests/test_auth.py::test_register_password_rules[123456789012] PASSED [ 18%]
student-tests/test_auth.py::test_register_password_rules[\u043f\u0430\u0440\u043e\u043b\u044c] PASSED [ 19%]
student-tests/test_auth.py::test_register_password_border_lengths PASSED [ 19%]
student-tests/test_auth.py::test_login_success_shape PASSED [ 20%]
student-tests/test_auth.py::test_each_login_gives_new_token PASSED [ 20%]
student-tests/test_auth.py::test_wrong_password_and_unknown_user_look_the_same PASSED [ 20%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic] PASSED [ 21%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic !!!not-base64!!!] PASSED [ 21%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic bm9jb2xvbg==] PASSED [ 21%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic 0LjQvNGPOnBhc3N3b3JkLTEyMzQ1Ng==] PASSED [ 22%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic dXNlcjr//i1iYWQtdXRmOA==] PASSED [ 22%]
student-tests/test_auth.py::test_malformed_basic_is_401[Bearer abc] PASSED [ 22%]
student-tests/test_auth.py::test_malformed_basic_is_401[] PASSED [ 23%]
student-tests/test_auth.py::test_login_without_header_is_401 PASSED [ 23%]
student-tests/test_auth.py::test_password_with_colon_and_unicode_works PASSED [ 24%]
student-tests/test_auth.py::test_bearer_token_gives_access PASSED [ 24%]
student-tests/test_auth.py::test_business_endpoint_rejects_basic PASSED [ 24%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[] PASSED [ 25%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer] PASSED [ 25%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer short] PASSED [ 25%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 26%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Token abc] PASSED [ 26%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[bearer] PASSED [ 26%]
student-tests/test_auth.py::test_x_user_id_alone_gives_no_access PASSED [ 27%]
student-tests/test_auth.py::test_x_user_id_does_not_change_owner_of_session PASSED [ 27%]
student-tests/test_auth.py::test_logout_revokes_token_and_repeat_is_401 PASSED [ 27%]
student-tests/test_auth.py::test_logout_without_token_is_401 PASSED [ 28%]
student-tests/test_auth.py::test_logout_revokes_only_current_session PASSED [ 28%]
student-tests/test_auth.py::test_session_lives_longer_than_300_seconds PASSED [ 29%]
student-tests/test_cache.py::test_user_profile_is_served_from_cache_with_bounded_ttl PASSED [ 29%]
student-tests/test_cache.py::test_cache_never_stores_raw_tokens_or_passwords PASSED [ 29%]
student-tests/test_cache.py::test_logout_revokes_cached_session PASSED [ 30%]
student-tests/test_cache.py::test_late_cache_fill_cannot_resurrect_revoked_session PASSED [ 30%]
student-tests/test_cache.py::test_flushed_cache_loses_nothing PASSED [ 30%]
student-tests/test_cache.py::test_cache_does_not_extend_short_session PASSED [ 31%]
student-tests/test_cache.py::test_staleness_after_out_of_band_delete_is_bounded_by_cache_ttl PASSED [ 31%]
student-tests/test_cache.py::test_redis_down_requests_bypass_cache_and_stay_fast PASSED [ 31%]
student-tests/test_cache.py::test_redis_down_never_trusts_anonymous_or_unknown_tokens PASSED [ 32%]
student-tests/test_cache.py::test_revocation_lost_while_redis_down_is_flushed_on_recovery PASSED [ 32%]
student-tests/test_cache.py::test_without_cache_url_cache_is_off PASSED [ 32%]
student-tests/test_cache.py::test_lost_revocation_survives_api_restart[False] PASSED [ 33%]
student-tests/test_cache.py::test_lost_revocation_survives_api_restart[True] PASSED [ 33%]
student-tests/test_cache.py::test_cached_session_deleted_in_database_is_rejected_immediately PASSED [ 34%]
student-tests/test_concurrency.py::test_100_messages_from_10_clients_in_parallel PASSED [ 34%]
student-tests/test_concurrency.py::test_parallel_chat_creation_and_reading PASSED [ 34%]
student-tests/test_contract_basics.py::test_health_endpoints PASSED [ 35%]
student-tests/test_contract_basics.py::test_every_response_has_unique_request_id PASSED [ 35%]
student-tests/test_contract_basics.py::test_unknown_path_is_404_in_common_format PASSED [ 35%]
student-tests/test_contract_basics.py::test_trailing_slash_is_not_redirected PASSED [ 36%]
student-tests/test_contract_basics.py::test_wrong_method_is_405_in_common_format PASSED [ 36%]
student-tests/test_contract_basics.py::test_two_users_one_chat_two_messages PASSED [ 36%]
student-tests/test_contract_basics.py::test_chat_response_shape PASSED [ 37%]
student-tests/test_contract_basics.py::test_unexpected_exception_gives_500_without_details PASSED [ 37%]
student-tests/test_contract_basics.py::test_logs_have_requests_but_no_secrets PASSED [ 37%]
student-tests/test_database.py::test_password_is_stored_as_scrypt_hash_not_plaintext PASSED [ 38%]
student-tests/test_database.py::test_same_password_gives_different_hashes PASSED [ 38%]
student-tests/test_database.py::test_session_table_keeps_token_hash_not_token PASSED [ 39%]
student-tests/test_database.py::test_message_is_really_in_the_database PASSED [ 39%]
student-tests/test_database.py::test_migrations_can_run_again_without_duplicating_anything PASSED [ 39%]
student-tests/test_database.py::test_expected_tables_and_indexes_exist PASSED [ 40%]
student-tests/test_database.py::test_primary_and_foreign_keys_are_declared PASSED [ 40%]
student-tests/test_database.py::test_database_itself_rejects_bad_rows PASSED [ 40%]
student-tests/test_database.py::test_chat_creation_is_atomic PASSED [ 41%]
student-tests/test_database.py::test_successful_chat_has_all_members_in_database PASSED [ 41%]
student-tests/test_db_failure.py::test_database_down_gives_503_and_never_trusts_anyone PASSED [ 41%]
student-tests/test_db_failure.py::test_database_down_with_cache_up_still_needs_database_for_data PASSED [ 42%]
student-tests/test_duplicate_username.py::test_second_registration_with_same_username_is_409 PASSED [ 42%]
student-tests/test_duplicate_username.py::test_duplicate_does_not_replace_original_user PASSED [ 43%]
student-tests/test_duplicate_username.py::test_username_is_case_sensitive_lowercase_only PASSED [ 43%]
student-tests/test_duplicate_username.py::test_parallel_registration_of_same_username_creates_exactly_one PASSED [ 43%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[] PASSED [ 44%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] PASSED [ 44%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] PASSED [ 44%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\n] PASSED [ 45%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\t \n] PASSED [ 45%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\xa0] PASSED [ 45%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\u2003] PASSED [ 46%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body0] PASSED [ 46%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body1] PASSED [ 46%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body2] PASSED [ 47%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body3] PASSED [ 47%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body4] PASSED [ 48%]
student-tests/test_empty_message.py::test_text_length_is_counted_in_characters PASSED [ 48%]
student-tests/test_empty_message.py::test_nul_character_is_400_not_500 PASSED [ 48%]
student-tests/test_empty_message.py::test_unicode_survives_the_database PASSED [ 49%]
student-tests/test_empty_message.py::test_message_has_correct_fields PASSED [ 49%]
student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[0] PASSED [ 49%]
student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[9000] PASSED [ 50%]
student-tests/test_foreign_chat.py::test_outsider_cannot_read_chat PASSED [ 50%]
student-tests/test_foreign_chat.py::test_outsider_cannot_read_history PASSED [ 50%]
student-tests/test_foreign_chat.py::test_outsider_cannot_write PASSED [ 51%]
student-tests/test_foreign_chat.py::test_outsider_gets_404_even_with_bad_body PASSED [ 51%]
student-tests/test_foreign_chat.py::test_unknown_chat_looks_the_same_as_foreign PASSED [ 51%]
student-tests/test_foreign_chat.py::test_chat_list_shows_only_own_chats PASSED [ 52%]
student-tests/test_foreign_chat.py::test_bad_chat_id_is_400 PASSED [ 52%]
student-tests/test_foreign_chat.py::test_no_token_is_401_everywhere PASSED [ 53%]
student-tests/test_foreign_chat.py::test_401_comes_before_404 PASSED [ 53%]
student-tests/test_foreign_chat.py::test_member_can_read_and_write PASSED [ 53%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[None] PASSED [ 54%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[] PASSED [ 54%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a b] PASSED [ 54%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a?b] PASSED [ 55%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 55%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a,b] PASSED [ 55%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a/b] PASSED [ 56%]
student-tests/test_idempotency.py::test_duplicate_headers_are_invalid PASSED [ 56%]
student-tests/test_idempotency.py::test_replay_and_conflict_preserve_original_result PASSED [ 56%]
student-tests/test_idempotency.py::test_parallel_same_key_across_two_applications PASSED [ 57%]
student-tests/test_idempotency.py::test_key_scope_includes_user_and_chat PASSED [ 57%]
student-tests/test_idempotency.py::test_expired_result_allows_new_message PASSED [ 58%]
student-tests/test_idempotency.py::test_failure_between_message_and_result_rolls_back PASSED [ 58%]
student-tests/test_idempotency.py::test_committed_but_lost_response_is_safe_to_retry PASSED [ 58%]
student-tests/test_idempotency.py::test_replay_rechecks_session_and_chat_access PASSED [ 59%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{] PASSED [ 59%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[not json at all] PASSED [ 59%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[] PASSED [ 60%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": "abc",}] PASSED [ 60%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[\xff\xfe\x00] PASSED [ 60%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": NaN}] PASSED [ 61%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[["username"]] PASSED [ 61%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json["text"] PASSED [ 62%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[null] PASSED [ 62%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes0] PASSED [ 62%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes1] PASSED [ 63%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes2] PASSED [ 63%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes3] PASSED [ 63%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes4] PASSED [ 64%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes5] PASSED [ 64%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes6] PASSED [ 64%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes7] PASSED [ 65%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes8] PASSED [ 65%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes9] PASSED [ 65%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes10] PASSED [ 66%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes11] PASSED [ 66%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes12] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes13] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes14] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes15] PASSED [ 68%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes16] PASSED [ 68%]
student-tests/test_invalid_json.py::test_border_values_are_accepted PASSED [ 68%]
student-tests/test_invalid_json.py::test_lone_surrogate_is_400_not_500 PASSED [ 69%]
student-tests/test_invalid_json.py::test_wrong_or_missing_content_type_is_415 PASSED [ 69%]
student-tests/test_invalid_json.py::test_huge_body_is_413 PASSED [ 69%]
student-tests/test_invalid_json.py::test_broken_json_in_message_and_chat PASSED [ 70%]
student-tests/test_invalid_json.py::test_sender_id_in_message_is_rejected PASSED [ 70%]
student-tests/test_invalid_json.py::test_chat_body_validation PASSED [ 70%]
student-tests/test_pagination.py::test_walk_25_messages_by_7 PASSED [ 71%]
student-tests/test_pagination.py::test_exact_multiple_has_no_empty_extra_page PASSED [ 71%]
student-tests/test_pagination.py::test_limit_one_walks_everything PASSED [ 72%]
student-tests/test_pagination.py::test_default_limit_is_50_and_max_is_100 PASSED [ 72%]
student-tests/test_pagination.py::test_empty_history PASSED [ 72%]
student-tests/test_pagination.py::test_limit_can_change_between_pages PASSED [ 73%]
student-tests/test_pagination.py::test_messages_sent_during_walk_appear_at_the_end PASSED [ 73%]
student-tests/test_pagination.py::test_created_at_is_increasing_and_utc PASSED [ 73%]
student-tests/test_pagination.py::test_bad_limit_values PASSED [ 74%]
student-tests/test_pagination.py::test_garbage_cursor_is_400 PASSED [ 74%]
student-tests/test_pagination.py::test_cursor_from_another_chat_is_400 PASSED [ 74%]
student-tests/test_pagination.py::test_chat_list_pagination PASSED [ 75%]
student-tests/test_pagination.py::test_chat_list_cursor_cannot_be_used_for_messages PASSED [ 75%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages--1] PASSED [ 75%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1000000000000000000000000000000] PASSED [ 76%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-253402300800000000] PASSED [ 76%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-True] PASSED [ 77%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1.5] PASSED [ 77%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1] PASSED [ 77%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-None] PASSED [ 78%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats--1] PASSED [ 78%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1000000000000000000000000000000] PASSED [ 78%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-253402300800000000] PASSED [ 79%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-True] PASSED [ 79%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1.5] PASSED [ 79%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1] PASSED [ 80%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-None] PASSED [ 80%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[messages-0] PASSED [ 81%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[messages-253402300799999999] PASSED [ 81%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[chats-0] PASSED [ 81%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[chats-253402300799999999] PASSED [ 82%]
student-tests/test_session_expiry.py::test_session_expires_after_ttl PASSED [ 82%]
student-tests/test_session_expiry.py::test_expired_sessions_are_cleaned_on_next_login PASSED [ 82%]
student-tests/test_session_expiry.py::test_short_ttl_from_environment_variable PASSED [ 83%]
student-tests/test_transactions.py::test_failure_after_chat_insert_rolls_back_whole_operation PASSED [ 83%]
student-tests/test_transactions.py::test_pool_is_bounded_by_settings PASSED [ 83%]
student-tests/test_transactions.py::test_exhausted_pool_gives_fast_503 PASSED [ 84%]
unit-tests/test_attachment_intent.py::test_removed_intent_prevents_put_when_uploader_resumes PASSED [ 84%]
unit-tests/test_message_transaction.py::test_conflicting_replay_rolls_back_without_commit PASSED [ 84%]
unit-tests/test_message_transaction.py::test_result_insert_failure_never_commits_message PASSED [ 85%]
unit-tests/test_message_transaction.py::test_replay_returns_original_message_and_releases_transaction PASSED [ 85%]
unit-tests/test_message_transaction.py::test_failed_commit_rolls_back_and_propagates_error PASSED [ 86%]
unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/users/me-GET] PASSED [ 86%]
unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/chats/00000000-0000-0000-0000-000000000002/messages-POST] PASSED [ 86%]
unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/auth/sessions/current-DELETE] PASSED [ 87%]
unit-tests/test_mr_regressions.py::test_valid_cache_hit_checks_session_without_loading_user PASSED [ 87%]
unit-tests/test_mr_regressions.py::test_database_failure_on_positive_cache_hit_is_503 PASSED [ 87%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages--1] PASSED [ 88%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-253402300800000000] PASSED [ 88%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1000000000000000000000000000000] PASSED [ 88%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-True] PASSED [ 89%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1.5] PASSED [ 89%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1] PASSED [ 89%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-None] PASSED [ 90%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats--1] PASSED [ 90%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-253402300800000000] PASSED [ 91%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1000000000000000000000000000000] PASSED [ 91%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-True] PASSED [ 91%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1.5] PASSED [ 92%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1] PASSED [ 92%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-None] PASSED [ 92%]
unit-tests/test_mr_regressions.py::test_timestamp_boundaries_roundtrip[0] PASSED [ 93%]
unit-tests/test_mr_regressions.py::test_timestamp_boundaries_roundtrip[253402300799999999] PASSED [ 93%]
unit-tests/test_mr_regressions.py::test_message_key_validation[None] PASSED [ 93%]
unit-tests/test_mr_regressions.py::test_message_key_validation[] PASSED [ 94%]
unit-tests/test_mr_regressions.py::test_message_key_validation[bad key] PASSED [ 94%]
unit-tests/test_mr_regressions.py::test_message_key_validation[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 94%]
unit-tests/test_mr_regressions.py::test_message_key_validation[a?b] PASSED [ 95%]
unit-tests/test_mr_regressions.py::test_message_key_validation[a,b] PASSED [ 95%]
unit-tests/test_mr_regressions.py::test_message_normalization_and_conflict PASSED [ 96%]
unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/health/live] PASSED [ 96%]
unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/missing] PASSED [ 96%]
unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/api/v1/users/me] PASSED [ 97%]
unit-tests/test_mr_regressions.py::test_instance_alias_changes_between_applications PASSED [ 97%]
unit-tests/test_mr_regressions.py::test_sigterm_drops_readiness_and_requests_graceful_exit PASSED [ 97%]
unit-tests/test_operator_scripts.py::BalancedReplicasTests::test_old_process_alias_does_not_replace_current_replica PASSED [ 98%]
unit-tests/test_operator_scripts.py::BalancedReplicasTests::test_one_ready_replica_never_counts_as_balanced PASSED [ 98%]
unit-tests/test_operator_scripts.py::BalancedReplicasTests::test_waits_until_both_replicas_answer_through_lb PASSED [ 98%]
unit-tests/test_operator_scripts.py::HookCommandTests::test_missing_shell_reports_failure PASSED [ 99%]
unit-tests/test_operator_scripts.py::HookCommandTests::test_python_hook_uses_current_interpreter_and_preserves_spaces PASSED [ 99%]
unit-tests/test_operator_scripts.py::HookCommandTests::test_shell_is_resolved_from_path PASSED [100%]
=============================== warnings summary ===============================
../usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1
/usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
from starlette.testclient import TestClient as TestClient # noqa
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 279 passed, 1 warning in 64.67s (0:01:04) ===================
2026/11/06 00:33:29 http2: server: error reading preface from client //./pipe/dockerDesktopLinuxEngine: file has already been closed
Container mtusi-messenger-lab4-minio-1 Running
Container mtusi-messenger-lab4-redis-1 Running
Container mtusi-messenger-lab4-db-1 Running
Container mtusi-messenger-lab4-minio-init-1 Created
Container mtusi-messenger-lab4-minio-1 Waiting
Container mtusi-messenger-lab4-minio-1 Healthy
Container mtusi-messenger-lab4-minio-init-1 Starting
Container mtusi-messenger-lab4-minio-init-1 Started
2026/11/06 00:33:31 http2: server: error reading preface from client //./pipe/dockerDesktopLinuxEngine: file has already been closed
exit_code=0; elapsed_seconds=75.391
+20
View File
@@ -0,0 +1,20 @@
[
{
"service": "api-a",
"container_id": "72fd226c23b838293f4d7f0347a4541a13d0965cf37cc657e8f79fc8aedf0ae5",
"pid": 395,
"state": "running",
"started_at": "2026-11-05T21:32:21.171649446Z",
"status": 200,
"instance_id": "a7cafe615bac4e4fa5f098568c25444a"
},
{
"service": "api-b",
"container_id": "a9f95a6b71d1029cf15151be7638e7c65aa7e4a3d2ca9bd9bad25c5fc3a1c8dc",
"pid": 394,
"state": "running",
"started_at": "2026-11-05T21:32:21.167275356Z",
"status": 200,
"instance_id": "d5ef73b927474fdb980ddc3283a8cd43"
}
]
@@ -0,0 +1,8 @@
{
"at_utc": "2026-11-05T21:25:23.526473+00:00",
"platform": "Windows-10-10.0.19045-SP0",
"cpu_count": 16,
"python": "3.11.9",
"duration": 20,
"workload": "2 closed-loop clients, POST+GET; uncertain POST retried with same key/body"
}
+30
View File
@@ -0,0 +1,30 @@
$ docker version
Client:
Version: 26.1.4
API version: 1.45
Go version: go1.21.11
Git commit: 5650f9b
Built: Wed Jun 5 11:29:54 2024
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.31.1 (153621)
Engine:
Version: 26.1.4
API version: 1.45 (minimum version 1.24)
Go version: go1.21.11
Git commit: de5c9cf
Built: Wed Jun 5 11:29:22 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.33
GitCommit: d2d58213f83a351ca8f528a95fbd145f5654e957
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
exit_code=0; elapsed_seconds=0.187
@@ -0,0 +1,3 @@
$ docker compose --env-file .env config --quiet
exit_code=0; elapsed_seconds=0.781
@@ -0,0 +1,10 @@
$ docker inspect --format {{.Name}} cpus={{.HostConfig.NanoCpus}} memory={{.HostConfig.Memory}} ports={{json .HostConfig.PortBindings}} 40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980 48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3 a689d4a722eee940c4f72fb8577beda47d8b25c70682fdacc4dd4a27cd88d8a1 f46211fa086cd11d2cfcc06e1c5fcfb8dda13b13f6add127b979cc681d2288ec 006abc78338bfd1dc7f03665a28df182737e1c2f78eacf91fc192d7237b73e49 aa24ebc2760f115b96d8ec51f43de68747582264d5097c52e8f63782b2873d44 b17bf3ec3fad7c070567da5524504f33b9ac532e415fbe73191e01b590242d28
/mtusi-messenger-lab4-api-a-1 cpus=500000000 memory=536870912 ports={}
/mtusi-messenger-lab4-api-b-1 cpus=500000000 memory=536870912 ports={}
/mtusi-messenger-lab4-cleanup-1 cpus=250000000 memory=268435456 ports={}
/mtusi-messenger-lab4-db-1 cpus=1000000000 memory=536870912 ports={}
/mtusi-messenger-lab4-minio-1 cpus=1000000000 memory=536870912 ports={}
/mtusi-messenger-lab4-nginx-1 cpus=250000000 memory=100663296 ports={"8080/tcp":[{"HostIp":"127.0.0.1","HostPort":"8080"}]}
/mtusi-messenger-lab4-redis-1 cpus=250000000 memory=134217728 ports={}
exit_code=0; elapsed_seconds=0.109
+10
View File
@@ -0,0 +1,10 @@
$ docker compose --env-file .env ps -q
40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980
48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3
a689d4a722eee940c4f72fb8577beda47d8b25c70682fdacc4dd4a27cd88d8a1
f46211fa086cd11d2cfcc06e1c5fcfb8dda13b13f6add127b979cc681d2288ec
006abc78338bfd1dc7f03665a28df182737e1c2f78eacf91fc192d7237b73e49
aa24ebc2760f115b96d8ec51f43de68747582264d5097c52e8f63782b2873d44
b17bf3ec3fad7c070567da5524504f33b9ac532e415fbe73191e01b590242d28
exit_code=0; elapsed_seconds=0.344
+20
View File
@@ -0,0 +1,20 @@
[
{
"service": "api-a",
"container_id": "40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980",
"pid": 45133,
"state": "running",
"started_at": "2026-11-05T21:13:49.80510938Z",
"status": 200,
"instance_id": "5812f0fc0c844d75a665c9b8d2e4c677"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 5437,
"state": "running",
"started_at": "2026-11-05T20:59:54.223635268Z",
"status": 200,
"instance_id": "a310ac89621f4572b8f224776811f125"
}
]
+4
View File
@@ -0,0 +1,4 @@
$ C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\.venv\Scripts\python.exe tests/smoke.py --base-url http://127.0.0.1:8080
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
exit_code=0; elapsed_seconds=2.141
@@ -0,0 +1,10 @@
{
"parallel_requests": 12,
"unique_message_ids": 1,
"history_rows": 1,
"instances": [
"5812f0fc0c844d75a665c9b8d2e4c677",
"a310ac89621f4572b8f224776811f125"
],
"conflict_status": 409
}
@@ -0,0 +1,108 @@
{
"mode": "stop",
"service": "api-a",
"target_instance": "5812f0fc0c844d75a665c9b8d2e4c677",
"observed_with_one_session": [
"5812f0fc0c844d75a665c9b8d2e4c677",
"a310ac89621f4572b8f224776811f125"
],
"before": [
{
"service": "api-a",
"container_id": "40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980",
"pid": 45133,
"state": "running",
"started_at": "2026-11-05T21:13:49.80510938Z",
"status": 200,
"instance_id": "5812f0fc0c844d75a665c9b8d2e4c677"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 5437,
"state": "running",
"started_at": "2026-11-05T20:59:54.223635268Z",
"status": 200,
"instance_id": "a310ac89621f4572b8f224776811f125"
}
],
"after_action": [
{
"service": "api-a",
"container_id": "40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980",
"pid": 0,
"state": "exited",
"started_at": "2026-11-05T21:13:49.80510938Z"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 5437,
"state": "running",
"started_at": "2026-11-05T20:59:54.223635268Z",
"status": 200,
"instance_id": "a310ac89621f4572b8f224776811f125"
}
],
"action": "{\"stopped_service\": \"api-a\", \"instance_id\": \"5812f0fc0c844d75a665c9b8d2e4c677\"}\n",
"action_seconds": 7.687,
"concurrency": 2,
"total": {
"elapsed_seconds": 21.156,
"attempts": 618,
"successes": 618,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 29.212,
"successful_latency_ms": {
"p50": 47.0,
"p95": 172.0,
"p99": 188.0
}
},
"during_and_after_action": {
"elapsed_seconds": 20.156,
"attempts": 584,
"successes": 584,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 28.974,
"successful_latency_ms": {
"p50": 47.0,
"p95": 172.0,
"p99": 203.0
}
},
"confirmed_responses": 310,
"history_messages": 310,
"duplicates": 0,
"existing_session_works": true,
"first_write_after_action_seconds": 7.844,
"write": {
"elapsed_seconds": 21.156,
"attempts": 309,
"successes": 309,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 14.606,
"successful_latency_ms": {
"p50": 62.0,
"p95": 172.0,
"p99": 266.0
}
},
"first_read_after_action_seconds": 7.75,
"read": {
"elapsed_seconds": 21.156,
"attempts": 309,
"successes": 309,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 14.606,
"successful_latency_ms": {
"p50": 31.0,
"p95": 109.0,
"p99": 188.0
}
}
}
@@ -0,0 +1,108 @@
{
"mode": "stop",
"service": "api-b",
"target_instance": "a310ac89621f4572b8f224776811f125",
"observed_with_one_session": [
"3cbae4a060234d11bd62c55983052436",
"a310ac89621f4572b8f224776811f125"
],
"before": [
{
"service": "api-a",
"container_id": "40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980",
"pid": 79938,
"state": "running",
"started_at": "2026-11-05T21:26:13.450006912Z",
"status": 200,
"instance_id": "3cbae4a060234d11bd62c55983052436"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 5437,
"state": "running",
"started_at": "2026-11-05T20:59:54.223635268Z",
"status": 200,
"instance_id": "a310ac89621f4572b8f224776811f125"
}
],
"after_action": [
{
"service": "api-a",
"container_id": "40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980",
"pid": 79938,
"state": "running",
"started_at": "2026-11-05T21:26:13.450006912Z",
"status": 200,
"instance_id": "3cbae4a060234d11bd62c55983052436"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 0,
"state": "exited",
"started_at": "2026-11-05T20:59:54.223635268Z"
}
],
"action": "{\"stopped_service\": \"api-b\", \"instance_id\": \"a310ac89621f4572b8f224776811f125\"}\n",
"action_seconds": 8.062,
"concurrency": 2,
"total": {
"elapsed_seconds": 21.14,
"attempts": 572,
"successes": 572,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 27.058,
"successful_latency_ms": {
"p50": 47.0,
"p95": 172.0,
"p99": 296.0
}
},
"during_and_after_action": {
"elapsed_seconds": 20.14,
"attempts": 537,
"successes": 537,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 26.663,
"successful_latency_ms": {
"p50": 47.0,
"p95": 187.0,
"p99": 296.0
}
},
"confirmed_responses": 287,
"history_messages": 287,
"duplicates": 0,
"existing_session_works": true,
"first_write_after_action_seconds": 8.422,
"write": {
"elapsed_seconds": 21.14,
"attempts": 286,
"successes": 286,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 13.529,
"successful_latency_ms": {
"p50": 47.0,
"p95": 188.0,
"p99": 313.0
}
},
"first_read_after_action_seconds": 8.531,
"read": {
"elapsed_seconds": 21.14,
"attempts": 286,
"successes": 286,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 13.529,
"successful_latency_ms": {
"p50": 31.0,
"p95": 125.0,
"p99": 203.0
}
}
}
@@ -0,0 +1,6 @@
$ C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\.venv\Scripts\python.exe tests/resilience.py --mode failover --action-script scripts/stop_one.py --base-url http://127.0.0.1:8080
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 92, "failed_attempts": 0, "first_recovery_seconds": 6.672}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
exit_code=0; elapsed_seconds=16.500
+114
View File
@@ -0,0 +1,114 @@
{
"mode": "replace",
"service": "api-a",
"target_instance": "3cbae4a060234d11bd62c55983052436",
"observed_with_one_session": [
"3cbae4a060234d11bd62c55983052436",
"577f6e21fa2b446e8cd18aa39fde8860"
],
"before": [
{
"service": "api-a",
"container_id": "40a18c8ca38b1936a7b5c72b207185a37d88ea1e2f6b8426484ac3dd42918980",
"pid": 79938,
"state": "running",
"started_at": "2026-11-05T21:26:13.450006912Z",
"status": 200,
"instance_id": "3cbae4a060234d11bd62c55983052436"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 83510,
"state": "running",
"started_at": "2026-11-05T21:27:24.402019502Z",
"status": 200,
"instance_id": "577f6e21fa2b446e8cd18aa39fde8860"
}
],
"after_action": [
{
"service": "api-a",
"container_id": "768ac85d5f339e30fc74b7e9901b541443d7c4fecb95e9a2a181229d2d8e32ed",
"pid": 85398,
"state": "running",
"started_at": "2026-11-05T21:27:58.904230152Z",
"status": 200,
"instance_id": "82bdf56c2b214ba8b334c0aabb146756"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 83510,
"state": "running",
"started_at": "2026-11-05T21:27:24.402019502Z",
"status": 200,
"instance_id": "577f6e21fa2b446e8cd18aa39fde8860"
}
],
"action": {
"service": "api-a",
"before": "3cbae4a060234d11bd62c55983052436",
"after": "82bdf56c2b214ba8b334c0aabb146756"
},
"action_seconds": 34.469,
"concurrency": 2,
"total": {
"elapsed_seconds": 42.062,
"attempts": 1100,
"successes": 1100,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 26.152,
"successful_latency_ms": {
"p50": 47.0,
"p95": 172.0,
"p99": 266.0
}
},
"during_and_after_action": {
"elapsed_seconds": 41.062,
"attempts": 1059,
"successes": 1059,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 25.79,
"successful_latency_ms": {
"p50": 47.0,
"p95": 172.0,
"p99": 266.0
}
},
"confirmed_responses": 551,
"history_messages": 551,
"duplicates": 0,
"existing_session_works": true,
"first_write_after_action_seconds": 34.641,
"write": {
"elapsed_seconds": 42.062,
"attempts": 550,
"successes": 550,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 13.076,
"successful_latency_ms": {
"p50": 63.0,
"p95": 188.0,
"p99": 281.0
}
},
"first_read_after_action_seconds": 34.547,
"read": {
"elapsed_seconds": 42.062,
"attempts": 550,
"successes": 550,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 13.076,
"successful_latency_ms": {
"p50": 31.0,
"p95": 141.0,
"p99": 188.0
}
}
}
+114
View File
@@ -0,0 +1,114 @@
{
"mode": "replace",
"service": "api-b",
"target_instance": "577f6e21fa2b446e8cd18aa39fde8860",
"observed_with_one_session": [
"577f6e21fa2b446e8cd18aa39fde8860",
"82bdf56c2b214ba8b334c0aabb146756"
],
"before": [
{
"service": "api-a",
"container_id": "768ac85d5f339e30fc74b7e9901b541443d7c4fecb95e9a2a181229d2d8e32ed",
"pid": 85398,
"state": "running",
"started_at": "2026-11-05T21:27:58.904230152Z",
"status": 200,
"instance_id": "82bdf56c2b214ba8b334c0aabb146756"
},
{
"service": "api-b",
"container_id": "48861518b3100b7bb01acebf81279b6997c6cceb512f1a666645e0e0b69f52e3",
"pid": 83510,
"state": "running",
"started_at": "2026-11-05T21:27:24.402019502Z",
"status": 200,
"instance_id": "577f6e21fa2b446e8cd18aa39fde8860"
}
],
"after_action": [
{
"service": "api-a",
"container_id": "768ac85d5f339e30fc74b7e9901b541443d7c4fecb95e9a2a181229d2d8e32ed",
"pid": 85398,
"state": "running",
"started_at": "2026-11-05T21:27:58.904230152Z",
"status": 200,
"instance_id": "82bdf56c2b214ba8b334c0aabb146756"
},
{
"service": "api-b",
"container_id": "28b2b2eea08ad0205cb3fc9208d2050767d38d34d22576398b97cdfeeee07257",
"pid": 87979,
"state": "running",
"started_at": "2026-11-05T21:28:47.633035368Z",
"status": 200,
"instance_id": "3e3954ec716d41f1a5a6ba9f19860797"
}
],
"action": {
"service": "api-b",
"before": "577f6e21fa2b446e8cd18aa39fde8860",
"after": "3e3954ec716d41f1a5a6ba9f19860797"
},
"action_seconds": 36.765,
"concurrency": 2,
"total": {
"elapsed_seconds": 44.984,
"attempts": 1036,
"successes": 1036,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 23.03,
"successful_latency_ms": {
"p50": 63.0,
"p95": 188.0,
"p99": 281.0
}
},
"during_and_after_action": {
"elapsed_seconds": 43.984,
"attempts": 1006,
"successes": 1006,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 22.872,
"successful_latency_ms": {
"p50": 63.0,
"p95": 188.0,
"p99": 281.0
}
},
"confirmed_responses": 519,
"history_messages": 519,
"duplicates": 0,
"existing_session_works": true,
"first_write_after_action_seconds": 36.859,
"write": {
"elapsed_seconds": 44.984,
"attempts": 518,
"successes": 518,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 11.515,
"successful_latency_ms": {
"p50": 78.0,
"p95": 265.0,
"p99": 297.0
}
},
"first_read_after_action_seconds": 36.875,
"read": {
"elapsed_seconds": 44.984,
"attempts": 518,
"successes": 518,
"errors": 0,
"error_ratio": 0.0,
"successful_rps": 11.515,
"successful_latency_ms": {
"p50": 47.0,
"p95": 110.0,
"p99": 203.0
}
}
}
+5
View File
@@ -0,0 +1,5 @@
$ C:\Users\ira\OneDrive\Desktop\work\vp\mtusi2026lab4-fork\.venv\Scripts\python.exe tests/resilience.py --mode persistence --action-script scripts/restart.py --base-url http://127.0.0.1:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit_code=0; elapsed_seconds=32.907
@@ -0,0 +1,20 @@
[
{
"service": "api-a",
"container_id": "720a4321a8f2be54547c2c9ef0cc566c0c632e7b0968295e8b1b02d339120d4c",
"pid": 90662,
"state": "running",
"started_at": "2026-11-05T21:29:38.996361992Z",
"status": 200,
"instance_id": "c04ec178adf04b37b77b8e5e0a2111ed"
},
{
"service": "api-b",
"container_id": "fc5965f79bed2c38499dbb7aad7f3116a6b83fa8a906eb92f772520233308190",
"pid": 90656,
"state": "running",
"started_at": "2026-11-05T21:29:38.991817395Z",
"status": 200,
"instance_id": "663168b0dbf54bda9fd588b8c699678d"
}
]
+76
View File
@@ -0,0 +1,76 @@
$ docker compose --env-file .env exec -T nginx nginx -T -c /opt/lb/nginx.conf
# configuration file /opt/lb/nginx.conf:
worker_processes 1;
pid /tmp/nginx.pid;
error_log /dev/stderr warn;
worker_shutdown_timeout 5s;
events { worker_connections 1024; }
http {
log_format upstream '$request_method $uri status=$status upstream=$upstream_addr upstream_status=$upstream_status time=$request_time';
access_log /dev/stdout upstream;
resolver 127.0.0.11 valid=1s ipv6=off;
resolver_timeout 1s;
include /tmp/backends.conf;
server {
listen 8080;
server_tokens off;
# The API enforces the exact 10 MiB file limit while streaming.
client_max_body_size 11m;
client_header_timeout 5s;
client_body_timeout 10s;
keepalive_timeout 2s;
error_page 413 = @payload_too_large;
error_page 502 504 = @unavailable;
location @unavailable {
default_type application/json;
add_header X-Request-Id $request_id always;
return 503 '{"error":{"code":"unavailable","message":"Service temporarily unavailable","request_id":"$request_id"}}';
}
location @payload_too_large {
default_type application/json;
add_header X-Request-Id $request_id always;
return 413 '{"error":{"code":"payload_too_large","message":"Request body too large","request_id":"$request_id"}}';
}
location ~ ^/api/v1/chats/[^/]+/attachments$ {
proxy_pass http://api_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 1s;
proxy_read_timeout 75s;
proxy_send_timeout 75s;
proxy_request_buffering off;
proxy_buffering off;
# A binary POST has no idempotency key and must not be replayed.
proxy_next_upstream off;
}
location / {
proxy_pass http://api_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 1s;
proxy_read_timeout 8s;
proxy_send_timeout 8s;
proxy_request_buffering off;
proxy_buffering off;
proxy_next_upstream error timeout http_502 http_503 http_504;
proxy_next_upstream_tries 2;
proxy_next_upstream_timeout 9s;
}
}
}
# configuration file /tmp/backends.conf:
upstream api_backend {
zone api_backend 64k;
server api-a:8080 resolve max_fails=1 fail_timeout=2s;
server api-b:8080 resolve max_fails=1 fail_timeout=2s;
}
nginx: the configuration file /opt/lb/nginx.conf syntax is ok
nginx: configuration file /opt/lb/nginx.conf test is successful
exit_code=0; elapsed_seconds=0.469
+456
View File
@@ -0,0 +1,456 @@
$ docker compose --env-file .env --profile test run --rm --build tests
#0 building with "desktop-linux" instance using docker driver
#1 [minio internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.79kB 0.0s done
#1 DONE 0.0s
#2 [minio internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 DONE 1.2s
#3 [minio internal] load metadata for docker.io/library/golang:1.24.8-bookworm
#3 DONE 1.3s
#4 [minio internal] load .dockerignore
#4 transferring context: 196B done
#4 DONE 0.0s
#5 [minio go-build 1/1] FROM docker.io/library/golang:1.24.8-bookworm@sha256:4ed690d6649d63c312b99a6120025ec79ce3b542968a37da53d6236c7c61a848
#5 DONE 0.0s
#6 [minio server 1/4] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#6 DONE 0.0s
#7 [minio internal] load build context
#7 transferring context: 420B 0.0s done
#7 DONE 0.0s
#8 [minio minio-build 1/1] RUN go install -p 2 -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-10-15T17:29:55Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-10-15T17-29-55Z" github.com/minio/minio@RELEASE.2025-10-15T17-29-55Z
#8 CACHED
#9 [minio server 2/4] COPY --from=minio-build /out/minio /usr/local/bin/minio
#9 CACHED
#10 [minio server 3/4] COPY infra/minio/healthcheck.py /opt/minio/healthcheck.py
#10 CACHED
#11 [minio server 4/4] RUN mkdir /data && chown 10001:10001 /data
#11 CACHED
#12 [minio] exporting to image
#12 exporting layers done
#12 writing image sha256:1a1494b9ad336bea42711376d400cb56f503ec86ad5a0c0442a3e86dea560afd done
#12 naming to docker.io/library/mtusi-minio:RELEASE.2025-10-15T17-29-55Z done
#12 DONE 0.0s
#13 [minio-init internal] load build definition from Dockerfile
#13 transferring dockerfile: 1.79kB done
#13 DONE 0.0s
#3 [minio-init internal] load metadata for docker.io/library/golang:1.24.8-bookworm
#3 ...
#2 [minio-init internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 DONE 1.5s
#3 [minio-init internal] load metadata for docker.io/library/golang:1.24.8-bookworm
#3 DONE 1.7s
#14 [minio-init internal] load .dockerignore
#14 transferring context: 196B done
#14 DONE 0.0s
#5 [minio-init go-build 1/1] FROM docker.io/library/golang:1.24.8-bookworm@sha256:4ed690d6649d63c312b99a6120025ec79ce3b542968a37da53d6236c7c61a848
#5 DONE 0.0s
#6 [minio-init bootstrap 1/3] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#6 DONE 0.0s
#15 [minio-init internal] load build context
#15 transferring context: 3.45kB done
#15 DONE 0.0s
#16 [minio-init mc-build 1/1] RUN go install -p 2 -trimpath -ldflags="-s -w -X github.com/minio/mc/cmd.Version=2025-08-13T08:35:41Z -X github.com/minio/mc/cmd.ReleaseTag=RELEASE.2025-08-13T08-35-41Z" github.com/minio/mc@RELEASE.2025-08-13T08-35-41Z
#16 CACHED
#17 [minio-init bootstrap 2/3] COPY --from=mc-build /out/mc /usr/local/bin/mc
#17 CACHED
#18 [minio-init bootstrap 3/3] COPY infra/minio/bootstrap.py /opt/minio/bootstrap.py
#18 CACHED
#19 [minio-init] exporting to image
#19 exporting layers done
#19 writing image sha256:bf240f90f68d7541e416ff322fc356abd7796a95e6cafe1673df1cbf363698a5 done
#19 naming to docker.io/library/mtusi-minio-mc:RELEASE.2025-08-13T08-35-41Z done
#19 DONE 0.0s
#0 building with "desktop-linux" instance using docker driver
#1 [tests internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.04kB done
#1 DONE 0.0s
#2 [tests internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm
#2 DONE 0.3s
#3 [tests internal] load .dockerignore
#3 transferring context: 196B done
#3 DONE 0.0s
#4 [tests base 1/6] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
#4 DONE 0.0s
#5 [tests internal] load build context
#5 transferring context: 645.96kB 0.1s done
#5 DONE 0.1s
#6 [tests base 5/6] RUN pip install -r requirements.txt
#6 CACHED
#7 [tests test 2/9] RUN pip install -r requirements-test.txt
#7 CACHED
#8 [tests base 6/6] COPY app ./app
#8 CACHED
#9 [tests test 3/9] COPY pytest.ini ./
#9 CACHED
#10 [tests test 4/9] COPY student-tests ./student-tests
#10 CACHED
#11 [tests base 3/6] WORKDIR /srv
#11 CACHED
#12 [tests base 4/6] COPY requirements.txt ./
#12 CACHED
#13 [tests base 2/6] RUN groupadd --system --gid 10001 app && useradd --system --uid 10001 --gid app --no-create-home --shell /usr/sbin/nologin app
#13 CACHED
#14 [tests test 1/9] COPY requirements-test.txt ./
#14 CACHED
#15 [tests test 5/9] COPY unit-tests ./unit-tests
#15 CACHED
#16 [tests test 6/9] COPY scripts ./scripts
#16 DONE 0.0s
#17 [tests test 7/9] COPY tests ./tests
#17 DONE 0.1s
#18 [tests test 8/9] COPY lab.json ./
#18 DONE 0.1s
#19 [tests test 9/9] COPY contracts ./contracts
#19 DONE 0.0s
#20 [tests] exporting to image
#20 exporting layers
#20 exporting layers 0.1s done
#20 writing image sha256:b0bdbf812b02e11b2c808878a3602d455fe28ff3ae11fed5fdf3ba2364d33d90 done
#20 naming to docker.io/library/mtusi-messenger:lab4-test done
#20 DONE 0.1s
============================= test session starts ==============================
collecting ... collected 279 items
student-tests/test_attachment_failures.py::test_s3_failure_leaves_accounted_intent_and_cleanup_retries[False] PASSED [ 0%]
student-tests/test_attachment_failures.py::test_s3_failure_leaves_accounted_intent_and_cleanup_retries[True] PASSED [ 0%]
student-tests/test_attachment_failures.py::test_database_failure_after_put_is_compensated PASSED [ 1%]
student-tests/test_attachment_failures.py::test_ambiguous_successful_commit_never_deletes_ready_file PASSED [ 1%]
student-tests/test_attachment_failures.py::test_cleanup_never_removes_old_ready_attachment PASSED [ 1%]
student-tests/test_attachment_failures.py::test_interrupted_body_creates_neither_metadata_nor_object PASSED [ 2%]
student-tests/test_attachments.py::test_original_metadata_and_bytes_for_another_member[PNG-image/png-\u0441\u043d\u0438\u043c\u043e\u043a.png] PASSED [ 2%]
student-tests/test_attachments.py::test_original_metadata_and_bytes_for_another_member[JPEG-image/jpeg-photo.jpeg] PASSED [ 2%]
student-tests/test_attachments.py::test_filename_is_not_an_object_identifier PASSED [ 3%]
student-tests/test_attachments.py::test_outsider_cannot_upload_read_or_reference_an_attachment PASSED [ 3%]
student-tests/test_attachments.py::test_attachment_cannot_move_between_chats_even_for_same_member PASSED [ 3%]
student-tests/test_attachments.py::test_unknown_attachment_is_404_without_creating_message PASSED [ 4%]
student-tests/test_attachments.py::test_any_member_can_send_attachment_without_text[] PASSED [ 4%]
student-tests/test_attachments.py::test_any_member_can_send_attachment_without_text[ \t\n] PASSED [ 5%]
student-tests/test_attachments.py::test_replay_compares_attachments_and_preserves_order PASSED [ 5%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[None] PASSED [ 5%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[not-a-list] PASSED [ 6%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[values2] PASSED [ 6%]
student-tests/test_attachments.py::test_attachment_list_has_strict_types[values3] PASSED [ 6%]
student-tests/test_attachments.py::test_duplicate_and_excessive_attachment_ids_are_400 PASSED [ 7%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[] PASSED [ 7%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 7%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[../photo.png] PASSED [ 8%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[folder/photo.png] PASSED [ 8%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[folder\\photo.png] PASSED [ 8%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\x00.png] PASSED [ 9%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\r\n.png] PASSED [ 9%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\t.png] PASSED [ 10%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\x7f.png] PASSED [ 10%]
student-tests/test_attachments.py::test_dangerous_or_invalid_filename_is_400[bad\x85.png] PASSED [ 10%]
student-tests/test_attachments.py::test_missing_filename_is_400 PASSED [ 11%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[-image/png] PASSED [ 11%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[not an image-image/png] PASSED [ 11%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[GIF89a\x01\x00\x01\x00-image/png] PASSED [ 12%]
student-tests/test_attachments.py::test_invalid_image_is_415_not_500[<svg xmlns='http://www.w3.org/2000/svg'/>-image/svg+xml] PASSED [ 12%]
student-tests/test_attachments.py::test_declared_mime_must_match_real_image[PNG-image/jpeg] PASSED [ 12%]
student-tests/test_attachments.py::test_declared_mime_must_match_real_image[JPEG-image/png] PASSED [ 13%]
student-tests/test_attachments.py::test_declared_mime_must_match_real_image[PNG-application/octet-stream] PASSED [ 13%]
student-tests/test_attachments.py::test_truncated_image_is_rejected[PNG-image/png] PASSED [ 13%]
student-tests/test_attachments.py::test_truncated_image_is_rejected[JPEG-image/jpeg] PASSED [ 14%]
student-tests/test_attachments.py::test_png_with_corrupted_pixel_stream_is_rejected PASSED [ 14%]
student-tests/test_attachments.py::test_byte_limit_with_content_length PASSED [ 15%]
student-tests/test_attachments.py::test_byte_limit_without_content_length PASSED [ 15%]
student-tests/test_attachments.py::test_image_exactly_at_byte_limit_is_accepted PASSED [ 15%]
student-tests/test_attachments.py::test_pixel_limit_is_checked_before_decoding PASSED [ 16%]
student-tests/test_attachments.py::test_missing_variant_is_404 PASSED [ 16%]
student-tests/test_auth.py::test_register_returns_user_without_secrets PASSED [ 16%]
student-tests/test_auth.py::test_register_password_rules[None] PASSED [ 17%]
student-tests/test_auth.py::test_register_password_rules[] PASSED [ 17%]
student-tests/test_auth.py::test_register_password_rules[short] PASSED [ 17%]
student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaa] PASSED [ 18%]
student-tests/test_auth.py::test_register_password_rules[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] PASSED [ 18%]
student-tests/test_auth.py::test_register_password_rules[123456789012] PASSED [ 18%]
student-tests/test_auth.py::test_register_password_rules[\u043f\u0430\u0440\u043e\u043b\u044c] PASSED [ 19%]
student-tests/test_auth.py::test_register_password_border_lengths PASSED [ 19%]
student-tests/test_auth.py::test_login_success_shape PASSED [ 20%]
student-tests/test_auth.py::test_each_login_gives_new_token PASSED [ 20%]
student-tests/test_auth.py::test_wrong_password_and_unknown_user_look_the_same PASSED [ 20%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic] PASSED [ 21%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic !!!not-base64!!!] PASSED [ 21%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic bm9jb2xvbg==] PASSED [ 21%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic 0LjQvNGPOnBhc3N3b3JkLTEyMzQ1Ng==] PASSED [ 22%]
student-tests/test_auth.py::test_malformed_basic_is_401[Basic dXNlcjr//i1iYWQtdXRmOA==] PASSED [ 22%]
student-tests/test_auth.py::test_malformed_basic_is_401[Bearer abc] PASSED [ 22%]
student-tests/test_auth.py::test_malformed_basic_is_401[] PASSED [ 23%]
student-tests/test_auth.py::test_login_without_header_is_401 PASSED [ 23%]
student-tests/test_auth.py::test_password_with_colon_and_unicode_works PASSED [ 24%]
student-tests/test_auth.py::test_bearer_token_gives_access PASSED [ 24%]
student-tests/test_auth.py::test_business_endpoint_rejects_basic PASSED [ 24%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[] PASSED [ 25%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer] PASSED [ 25%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer short] PASSED [ 25%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 26%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[Token abc] PASSED [ 26%]
student-tests/test_auth.py::test_bad_or_unknown_bearer_is_401[bearer] PASSED [ 26%]
student-tests/test_auth.py::test_x_user_id_alone_gives_no_access PASSED [ 27%]
student-tests/test_auth.py::test_x_user_id_does_not_change_owner_of_session PASSED [ 27%]
student-tests/test_auth.py::test_logout_revokes_token_and_repeat_is_401 PASSED [ 27%]
student-tests/test_auth.py::test_logout_without_token_is_401 PASSED [ 28%]
student-tests/test_auth.py::test_logout_revokes_only_current_session PASSED [ 28%]
student-tests/test_auth.py::test_session_lives_longer_than_300_seconds PASSED [ 29%]
student-tests/test_cache.py::test_user_profile_is_served_from_cache_with_bounded_ttl PASSED [ 29%]
student-tests/test_cache.py::test_cache_never_stores_raw_tokens_or_passwords PASSED [ 29%]
student-tests/test_cache.py::test_logout_revokes_cached_session PASSED [ 30%]
student-tests/test_cache.py::test_late_cache_fill_cannot_resurrect_revoked_session PASSED [ 30%]
student-tests/test_cache.py::test_flushed_cache_loses_nothing PASSED [ 30%]
student-tests/test_cache.py::test_cache_does_not_extend_short_session PASSED [ 31%]
student-tests/test_cache.py::test_staleness_after_out_of_band_delete_is_bounded_by_cache_ttl PASSED [ 31%]
student-tests/test_cache.py::test_redis_down_requests_bypass_cache_and_stay_fast PASSED [ 31%]
student-tests/test_cache.py::test_redis_down_never_trusts_anonymous_or_unknown_tokens PASSED [ 32%]
student-tests/test_cache.py::test_revocation_lost_while_redis_down_is_flushed_on_recovery PASSED [ 32%]
student-tests/test_cache.py::test_without_cache_url_cache_is_off PASSED [ 32%]
student-tests/test_cache.py::test_lost_revocation_survives_api_restart[False] PASSED [ 33%]
student-tests/test_cache.py::test_lost_revocation_survives_api_restart[True] PASSED [ 33%]
student-tests/test_cache.py::test_cached_session_deleted_in_database_is_rejected_immediately PASSED [ 34%]
student-tests/test_concurrency.py::test_100_messages_from_10_clients_in_parallel PASSED [ 34%]
student-tests/test_concurrency.py::test_parallel_chat_creation_and_reading PASSED [ 34%]
student-tests/test_contract_basics.py::test_health_endpoints PASSED [ 35%]
student-tests/test_contract_basics.py::test_every_response_has_unique_request_id PASSED [ 35%]
student-tests/test_contract_basics.py::test_unknown_path_is_404_in_common_format PASSED [ 35%]
student-tests/test_contract_basics.py::test_trailing_slash_is_not_redirected PASSED [ 36%]
student-tests/test_contract_basics.py::test_wrong_method_is_405_in_common_format PASSED [ 36%]
student-tests/test_contract_basics.py::test_two_users_one_chat_two_messages PASSED [ 36%]
student-tests/test_contract_basics.py::test_chat_response_shape PASSED [ 37%]
student-tests/test_contract_basics.py::test_unexpected_exception_gives_500_without_details PASSED [ 37%]
student-tests/test_contract_basics.py::test_logs_have_requests_but_no_secrets PASSED [ 37%]
student-tests/test_database.py::test_password_is_stored_as_scrypt_hash_not_plaintext PASSED [ 38%]
student-tests/test_database.py::test_same_password_gives_different_hashes PASSED [ 38%]
student-tests/test_database.py::test_session_table_keeps_token_hash_not_token PASSED [ 39%]
student-tests/test_database.py::test_message_is_really_in_the_database PASSED [ 39%]
student-tests/test_database.py::test_migrations_can_run_again_without_duplicating_anything PASSED [ 39%]
student-tests/test_database.py::test_expected_tables_and_indexes_exist PASSED [ 40%]
student-tests/test_database.py::test_primary_and_foreign_keys_are_declared PASSED [ 40%]
student-tests/test_database.py::test_database_itself_rejects_bad_rows PASSED [ 40%]
student-tests/test_database.py::test_chat_creation_is_atomic PASSED [ 41%]
student-tests/test_database.py::test_successful_chat_has_all_members_in_database PASSED [ 41%]
student-tests/test_db_failure.py::test_database_down_gives_503_and_never_trusts_anyone PASSED [ 41%]
student-tests/test_db_failure.py::test_database_down_with_cache_up_still_needs_database_for_data PASSED [ 42%]
student-tests/test_duplicate_username.py::test_second_registration_with_same_username_is_409 PASSED [ 42%]
student-tests/test_duplicate_username.py::test_duplicate_does_not_replace_original_user PASSED [ 43%]
student-tests/test_duplicate_username.py::test_username_is_case_sensitive_lowercase_only PASSED [ 43%]
student-tests/test_duplicate_username.py::test_parallel_registration_of_same_username_creates_exactly_one PASSED [ 43%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[] PASSED [ 44%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] PASSED [ 44%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[ ] PASSED [ 44%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\n] PASSED [ 45%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\t \n] PASSED [ 45%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\xa0] PASSED [ 45%]
student-tests/test_empty_message.py::test_blank_text_is_rejected[\u2003] PASSED [ 46%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body0] PASSED [ 46%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body1] PASSED [ 46%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body2] PASSED [ 47%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body3] PASSED [ 47%]
student-tests/test_empty_message.py::test_missing_or_wrong_type_text_is_rejected[body4] PASSED [ 48%]
student-tests/test_empty_message.py::test_text_length_is_counted_in_characters PASSED [ 48%]
student-tests/test_empty_message.py::test_nul_character_is_400_not_500 PASSED [ 48%]
student-tests/test_empty_message.py::test_unicode_survives_the_database PASSED [ 49%]
student-tests/test_empty_message.py::test_message_has_correct_fields PASSED [ 49%]
student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[0] PASSED [ 49%]
student-tests/test_explain.py::test_history_page_uses_index_without_full_scan[9000] PASSED [ 50%]
student-tests/test_foreign_chat.py::test_outsider_cannot_read_chat PASSED [ 50%]
student-tests/test_foreign_chat.py::test_outsider_cannot_read_history PASSED [ 50%]
student-tests/test_foreign_chat.py::test_outsider_cannot_write PASSED [ 51%]
student-tests/test_foreign_chat.py::test_outsider_gets_404_even_with_bad_body PASSED [ 51%]
student-tests/test_foreign_chat.py::test_unknown_chat_looks_the_same_as_foreign PASSED [ 51%]
student-tests/test_foreign_chat.py::test_chat_list_shows_only_own_chats PASSED [ 52%]
student-tests/test_foreign_chat.py::test_bad_chat_id_is_400 PASSED [ 52%]
student-tests/test_foreign_chat.py::test_no_token_is_401_everywhere PASSED [ 53%]
student-tests/test_foreign_chat.py::test_401_comes_before_404 PASSED [ 53%]
student-tests/test_foreign_chat.py::test_member_can_read_and_write PASSED [ 53%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[None] PASSED [ 54%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[] PASSED [ 54%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a b] PASSED [ 54%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a?b] PASSED [ 55%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 55%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a,b] PASSED [ 55%]
student-tests/test_idempotency.py::test_key_is_required_and_validated[a/b] PASSED [ 56%]
student-tests/test_idempotency.py::test_duplicate_headers_are_invalid PASSED [ 56%]
student-tests/test_idempotency.py::test_replay_and_conflict_preserve_original_result PASSED [ 56%]
student-tests/test_idempotency.py::test_parallel_same_key_across_two_applications PASSED [ 57%]
student-tests/test_idempotency.py::test_key_scope_includes_user_and_chat PASSED [ 57%]
student-tests/test_idempotency.py::test_expired_result_allows_new_message PASSED [ 58%]
student-tests/test_idempotency.py::test_failure_between_message_and_result_rolls_back PASSED [ 58%]
student-tests/test_idempotency.py::test_committed_but_lost_response_is_safe_to_retry PASSED [ 58%]
student-tests/test_idempotency.py::test_replay_rechecks_session_and_chat_access PASSED [ 59%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{] PASSED [ 59%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[not json at all] PASSED [ 59%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[] PASSED [ 60%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": "abc",}] PASSED [ 60%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[\xff\xfe\x00] PASSED [ 60%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[{"username": NaN}] PASSED [ 61%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[["username"]] PASSED [ 61%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json["text"] PASSED [ 62%]
student-tests/test_invalid_json.py::test_registration_rejects_broken_json[null] PASSED [ 62%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes0] PASSED [ 62%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes1] PASSED [ 63%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes2] PASSED [ 63%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes3] PASSED [ 63%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes4] PASSED [ 64%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes5] PASSED [ 64%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes6] PASSED [ 64%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes7] PASSED [ 65%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes8] PASSED [ 65%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes9] PASSED [ 65%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes10] PASSED [ 66%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes11] PASSED [ 66%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes12] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes13] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes14] PASSED [ 67%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes15] PASSED [ 68%]
student-tests/test_invalid_json.py::test_registration_rejects_bad_fields[changes16] PASSED [ 68%]
student-tests/test_invalid_json.py::test_border_values_are_accepted PASSED [ 68%]
student-tests/test_invalid_json.py::test_lone_surrogate_is_400_not_500 PASSED [ 69%]
student-tests/test_invalid_json.py::test_wrong_or_missing_content_type_is_415 PASSED [ 69%]
student-tests/test_invalid_json.py::test_huge_body_is_413 PASSED [ 69%]
student-tests/test_invalid_json.py::test_broken_json_in_message_and_chat PASSED [ 70%]
student-tests/test_invalid_json.py::test_sender_id_in_message_is_rejected PASSED [ 70%]
student-tests/test_invalid_json.py::test_chat_body_validation PASSED [ 70%]
student-tests/test_pagination.py::test_walk_25_messages_by_7 PASSED [ 71%]
student-tests/test_pagination.py::test_exact_multiple_has_no_empty_extra_page PASSED [ 71%]
student-tests/test_pagination.py::test_limit_one_walks_everything PASSED [ 72%]
student-tests/test_pagination.py::test_default_limit_is_50_and_max_is_100 PASSED [ 72%]
student-tests/test_pagination.py::test_empty_history PASSED [ 72%]
student-tests/test_pagination.py::test_limit_can_change_between_pages PASSED [ 73%]
student-tests/test_pagination.py::test_messages_sent_during_walk_appear_at_the_end PASSED [ 73%]
student-tests/test_pagination.py::test_created_at_is_increasing_and_utc PASSED [ 73%]
student-tests/test_pagination.py::test_bad_limit_values PASSED [ 74%]
student-tests/test_pagination.py::test_garbage_cursor_is_400 PASSED [ 74%]
student-tests/test_pagination.py::test_cursor_from_another_chat_is_400 PASSED [ 74%]
student-tests/test_pagination.py::test_chat_list_pagination PASSED [ 75%]
student-tests/test_pagination.py::test_chat_list_cursor_cannot_be_used_for_messages PASSED [ 75%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages--1] PASSED [ 75%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1000000000000000000000000000000] PASSED [ 76%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-253402300800000000] PASSED [ 76%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-True] PASSED [ 77%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1.5] PASSED [ 77%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-1] PASSED [ 77%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[messages-None] PASSED [ 78%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats--1] PASSED [ 78%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1000000000000000000000000000000] PASSED [ 78%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-253402300800000000] PASSED [ 79%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-True] PASSED [ 79%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1.5] PASSED [ 79%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-1] PASSED [ 80%]
student-tests/test_pagination.py::test_invalid_cursor_timestamp_is_400[chats-None] PASSED [ 80%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[messages-0] PASSED [ 81%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[messages-253402300799999999] PASSED [ 81%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[chats-0] PASSED [ 81%]
student-tests/test_pagination.py::test_cursor_timestamp_boundaries_are_valid[chats-253402300799999999] PASSED [ 82%]
student-tests/test_session_expiry.py::test_session_expires_after_ttl PASSED [ 82%]
student-tests/test_session_expiry.py::test_expired_sessions_are_cleaned_on_next_login PASSED [ 82%]
student-tests/test_session_expiry.py::test_short_ttl_from_environment_variable PASSED [ 83%]
student-tests/test_transactions.py::test_failure_after_chat_insert_rolls_back_whole_operation PASSED [ 83%]
student-tests/test_transactions.py::test_pool_is_bounded_by_settings PASSED [ 83%]
student-tests/test_transactions.py::test_exhausted_pool_gives_fast_503 PASSED [ 84%]
unit-tests/test_attachment_intent.py::test_removed_intent_prevents_put_when_uploader_resumes PASSED [ 84%]
unit-tests/test_message_transaction.py::test_conflicting_replay_rolls_back_without_commit PASSED [ 84%]
unit-tests/test_message_transaction.py::test_result_insert_failure_never_commits_message PASSED [ 85%]
unit-tests/test_message_transaction.py::test_replay_returns_original_message_and_releases_transaction PASSED [ 85%]
unit-tests/test_message_transaction.py::test_failed_commit_rolls_back_and_propagates_error PASSED [ 86%]
unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/users/me-GET] PASSED [ 86%]
unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/chats/00000000-0000-0000-0000-000000000002/messages-POST] PASSED [ 86%]
unit-tests/test_mr_regressions.py::test_stale_positive_cache_never_authorizes_revoked_token[/api/v1/auth/sessions/current-DELETE] PASSED [ 87%]
unit-tests/test_mr_regressions.py::test_valid_cache_hit_checks_session_without_loading_user PASSED [ 87%]
unit-tests/test_mr_regressions.py::test_database_failure_on_positive_cache_hit_is_503 PASSED [ 87%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages--1] PASSED [ 88%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-253402300800000000] PASSED [ 88%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1000000000000000000000000000000] PASSED [ 88%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-True] PASSED [ 89%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1.5] PASSED [ 89%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-1] PASSED [ 89%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[messages-None] PASSED [ 90%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats--1] PASSED [ 90%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-253402300800000000] PASSED [ 91%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1000000000000000000000000000000] PASSED [ 91%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-True] PASSED [ 91%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1.5] PASSED [ 92%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-1] PASSED [ 92%]
unit-tests/test_mr_regressions.py::test_cursor_timestamp_is_rejected_through_http[chats-None] PASSED [ 92%]
unit-tests/test_mr_regressions.py::test_timestamp_boundaries_roundtrip[0] PASSED [ 93%]
unit-tests/test_mr_regressions.py::test_timestamp_boundaries_roundtrip[253402300799999999] PASSED [ 93%]
unit-tests/test_mr_regressions.py::test_message_key_validation[None] PASSED [ 93%]
unit-tests/test_mr_regressions.py::test_message_key_validation[] PASSED [ 94%]
unit-tests/test_mr_regressions.py::test_message_key_validation[bad key] PASSED [ 94%]
unit-tests/test_mr_regressions.py::test_message_key_validation[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] PASSED [ 94%]
unit-tests/test_mr_regressions.py::test_message_key_validation[a?b] PASSED [ 95%]
unit-tests/test_mr_regressions.py::test_message_key_validation[a,b] PASSED [ 95%]
unit-tests/test_mr_regressions.py::test_message_normalization_and_conflict PASSED [ 96%]
unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/health/live] PASSED [ 96%]
unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/missing] PASSED [ 96%]
unit-tests/test_mr_regressions.py::test_instance_header_matches_process_on_all_responses[/api/v1/users/me] PASSED [ 97%]
unit-tests/test_mr_regressions.py::test_instance_alias_changes_between_applications PASSED [ 97%]
unit-tests/test_mr_regressions.py::test_sigterm_drops_readiness_and_requests_graceful_exit PASSED [ 97%]
unit-tests/test_operator_scripts.py::BalancedReplicasTests::test_old_process_alias_does_not_replace_current_replica PASSED [ 98%]
unit-tests/test_operator_scripts.py::BalancedReplicasTests::test_one_ready_replica_never_counts_as_balanced PASSED [ 98%]
unit-tests/test_operator_scripts.py::BalancedReplicasTests::test_waits_until_both_replicas_answer_through_lb PASSED [ 98%]
unit-tests/test_operator_scripts.py::HookCommandTests::test_missing_shell_reports_failure PASSED [ 99%]
unit-tests/test_operator_scripts.py::HookCommandTests::test_python_hook_uses_current_interpreter_and_preserves_spaces PASSED [ 99%]
unit-tests/test_operator_scripts.py::HookCommandTests::test_shell_is_resolved_from_path PASSED [100%]
=============================== warnings summary ===============================
../usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1
/usr/local/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
from starlette.testclient import TestClient as TestClient # noqa
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 279 passed, 1 warning in 72.13s (0:01:12) ===================
2026/11/06 00:29:56 http2: server: error reading preface from client //./pipe/dockerDesktopLinuxEngine: file has already been closed
2026/11/06 00:29:59 http2: server: error reading preface from client //./pipe/dockerDesktopLinuxEngine: file has already been closed
Container mtusi-messenger-lab4-redis-1 Running
Container mtusi-messenger-lab4-db-1 Running
Container mtusi-messenger-lab4-minio-1 Running
Container mtusi-messenger-lab4-minio-init-1 Created
Container mtusi-messenger-lab4-minio-1 Waiting
Container mtusi-messenger-lab4-minio-1 Healthy
Container mtusi-messenger-lab4-minio-init-1 Starting
Container mtusi-messenger-lab4-minio-init-1 Started
exit_code=0; elapsed_seconds=83.828
+4
View File
@@ -0,0 +1,4 @@
{
"status": "PASS",
"at_utc": "2026-11-05T21:31:20.195562+00:00"
}
+6
View File
@@ -0,0 +1,6 @@
{
"status": "PASS",
"at_utc": "2026-11-05T21:34:46.310736+00:00",
"cluster_checks": "PASS",
"student_tests": "PASS"
}