Files
mtusi2026lab4-fork/evidence/local-checks.txt
T

33 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
2026-11-12. Windows, Python 3.13.5, Docker Desktop с Linux-контейнерами.
PUBLIC_PORT=18084, BASE_URL=http://127.0.0.1:18084
> python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
> python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
> python tests/smoke.py --base-url http://127.0.0.1:18084
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
> python tests/resilience.py --mode persistence --action-script scripts/restart.cmd
Hook: docker compose restart db cache s3 api-a api-b lb.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
> python tests/resilience.py --mode failover --action-script scripts/stop-one.cmd
{"observed_instances_before": 2, "successful_writes": 103, "failed_attempts": 4, "first_recovery_seconds": 1.593}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
> python student-tests/check_attachments.py
PASS: size, pixels, malformed image, MIME, filename and cross-chat access
PASS: original bytes read through api-a after api-b stopped
PASS: anonymous direct access to S3 object returned 403
PASS: 10 concurrent uploads of 787252 bytes; cgroup memory baseline={'api-a': 64753664, 'api-b': 58634240}, sampled_peak={'api-a': 78761984, 'api-b': 68505600}
PASS: readiness returned 503 during S3 outage, original survived restart
> docker compose exec -T api-a python src/cleanup_attachments.py
Removed unfinished uploads: 0
Размеры памяти в байтах. Это наблюдаемый пик выборки cgroup, включая
память процесса и файловый кэш. Ограничение на контейнер API — 640 MiB.