v22.16.0 postgres (PostgreSQL) 15.18 (Debian 15.18-0+deb12u1) HAProxy version 3.0.11-1+deb13u4 2026/10/15 - https://haproxy.org/ rustfs 1.0.6 Docker Compose version v2.36.2 $ npm run build npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm. > mtusi-messenger-lab4@1.0.0 build > npm run generate && tsc -p tsconfig.json npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm. > mtusi-messenger-lab4@1.0.0 generate > tsoa routes $ docker-compose config --quiet $ make check python3 scripts/check_contract.py PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. The files belonging to this database system will be owned by user "agent". This user must also own the server process. The database cluster will be initialized with locale "C.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory /workspace/scratch/503693051415/runtime/state4/database ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Europe/Moscow creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok Success. You can now start the database server using: /workspace/scratch/503693051415/runtime/pg/usr/lib/postgresql/15/bin/pg_ctl -D /workspace/scratch/503693051415/runtime/state4/database -l logfile start waiting for server to start.... done server started PostgreSQL started pid=132 Applied 001_core.sql Applied 002_idempotency.sql Applied 003_attachments.sql Migrations up to date s3 started pid=157 Private S3 bucket is ready api-a started pid=204 on TCP 18081 api-b started pid=205 on TCP 18082 [NOTICE] (206) : config : [infra/haproxy.cfg:31] : 'server api/api-a' : could not resolve address 'api-a', disabling server. [NOTICE] (206) : config : [infra/haproxy.cfg:32] : 'server api/api-b' : could not resolve address 'api-b', disabling server. lb started pid=221 $ make test python3 tests/smoke.py --base-url "http://localhost:8080" PASS: lab4 public API scenario; infrastructure and grading evidence remain separate. $ python3 student-tests/idempotency.py PASS: 16 concurrent requests on 2 replicas yielded one message $ python3 student-tests/attachments.py PASS: JPEG, unsafe filenames, byte/pixel limits, malformed image, MIME mismatch and chat ACL $ make test-persistence ACTION_SCRIPT= python3 tests/resilience.py --mode persistence --action-script "/workspace/scratch/503693051415/runtime/replicated-local.sh" --base-url "http://localhost: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. lb stopped pid=221 api-a stopped pid=204 api-b stopped pid=205 s3 stopped pid=157 PostgreSQL stopping pid=132 waiting for server to shut down.... done server stopped waiting for server to start.... done server started PostgreSQL started pid=355 Migrations up to date s3 started pid=378 Private S3 bucket is ready api-a started pid=425 on TCP 18081 api-b started pid=426 on TCP 18082 [NOTICE] (427) : config : [infra/haproxy.cfg:31] : 'server api/api-a' : could not resolve address 'api-a', disabling server. [NOTICE] (427) : config : [infra/haproxy.cfg:32] : 'server api/api-b' : could not resolve address 'api-b', disabling server. lb started pid=442 $ make test-failover ACTION_SCRIPT= python3 tests/resilience.py --mode failover --action-script "/workspace/scratch/503693051415/runtime/stop-replica-local.sh" --base-url "http://localhost:8080" Executing explicit failover hook; hook output suppressed to avoid leaking secrets. {"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 6, "first_recovery_seconds": 0.332} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. api-b started pid=517 on TCP 18082 $ python3 student-tests/attachment_failover.py --action-script PASS: upload on api-a; same bytes downloaded through api-b after 0.189s api-b stopped pid=426 api-a stopped pid=425 s3 stopped pid=378 PASS: RustFS stopped; API liveness 200, readiness 503 s3 started pid=574 Private S3 bucket is ready PASS: anonymous S3 object GET returned 403 lb stopped pid=442 api-b stopped pid=517 s3 stopped pid=574 PostgreSQL stopping pid=355 waiting for server to shut down.... done server stopped