forked from mtusi2026/mtusi2026lab5
57 lines
2.3 KiB
Markdown
57 lines
2.3 KiB
Markdown
# Lab5 grade 4 — результаты проверок
|
|
|
|
Дата: 2026-11-05
|
|
Автор: Чурилин Данила, БВТ2301
|
|
Ветка: `solution/bvt2301-churilin`
|
|
|
|
```text
|
|
make test-level4-resilience BASE_URL=http://127.0.0.1:8080
|
|
PASS: level-4 variants, outbox crash recovery, lease recovery, backoff/failed registry and safe replay verified.
|
|
|
|
make test-async-resilience BASE_URL=http://127.0.0.1:8080
|
|
PASS: durable recovery, idempotent redelivery and bounded final failure verified.
|
|
|
|
make test BASE_URL=http://127.0.0.1:8080
|
|
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
|
|
|
go test ./...
|
|
PASS
|
|
|
|
go vet ./...
|
|
PASS
|
|
|
|
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://127.0.0.1:8080
|
|
PASS: persistence preserved confirmed data and existing session.
|
|
|
|
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://127.0.0.1:8080
|
|
{"observed_instances_before": 2, "successful_writes": 142, "failed_attempts": 0, "first_recovery_seconds": 2.989}
|
|
PASS: failover preserved confirmed data and existing session.
|
|
|
|
make test-attachment-boundaries
|
|
PASS: exact byte/pixel boundaries, complete decode, and filename validation are correct.
|
|
|
|
make test-attachment-memory
|
|
{"api_instances_observed": 2, "concurrency": 12, "elapsed_seconds": 0.754, "payload_bytes": 6293028, "peak_memory_bytes_by_container": {"mtusi2026lab5-api-1": 33774632, "mtusi2026lab5-api-2": 36217815}, "successful_uploads": 12, "total_uploaded_bytes": 75516336}
|
|
PASS: concurrent attachment uploads remained within configured API memory limits.
|
|
|
|
make test-minio-policy
|
|
PASS: API has no MinIO root credentials; limited policy permits object IO only in the private bucket; anonymous GET is denied.
|
|
|
|
make test-storage-outage
|
|
{"original_bytes_verified": 111817, "readiness_503_seconds": 2.009, "upload_503_seconds": 5.02}
|
|
PASS: MinIO outage returns bounded JSON 503 and preserves existing originals.
|
|
|
|
rabbitmqctl list_queues name messages_ready messages_unacknowledged
|
|
attachment.process.v1 0 0
|
|
|
|
docker compose --env-file .env config --quiet
|
|
exit 0
|
|
```
|
|
|
|
Fault points:
|
|
|
|
- dispatcher: `/tmp/mtusi-fault-before-publish`, exit 87;
|
|
- worker: `/tmp/mtusi-fault-after-objects`, exit 86;
|
|
- тест: `tests/level4_resilience.py`;
|
|
- unit invariants: `internal/worker/processor_test.go`, `backoff_test.go`, `cleaner_test.go`.
|