docs: write REPORT.md

This commit is contained in:
TAskMAster339
2026-10-19 00:20:43 +03:00
parent 95c2e78fe3
commit 84175cf1e2
68 changed files with 6629 additions and 38 deletions
+49
View File
@@ -0,0 +1,49 @@
# Незавершённый staging, replay, dry-run и lifecycle
[Отчёт](../../REPORT.md) · [Все критерии](README.md)
Статус: **PASS**. Запуск: `20261018T203755.405686Z`.
Тесты создают синтетические данные. Интеграционные Go-тесты используют отдельные схемы БД и собственные S3-ключи.
Проверенные сценарии: `TestDirectUploadCleanupSafetyAndReplay`, `TestDirectUploadCleanupDependencyFailureAndMalformedKey`, `TestDirectUploadAccessPermissionsAndLifecycle`.
## backend
```sh
make test-backend
```
Начало: 2026-10-18T20:38:40.802787+00:00; длительность: 148.987 с; exit code: 0.
Фрагмент; полный вывод: [backend.txt](runs/20261018T203755.405686Z/backend.txt).
````text
=== RUN TestDirectUploadCleanupSafetyAndReplay
--- PASS: TestDirectUploadCleanupSafetyAndReplay (0.87s)
=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey
--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.66s)
=== RUN TestDirectUploadAccessPermissionsAndLifecycle
--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (0.98s)
PASS
````
## cleanup-dry-run
```sh
make attachments-cleanup
```
Начало: 2026-10-18T20:41:08.490906+00:00; длительность: 1.327 с; exit code: 0.
````text
docker compose --project-name highload-lab4 --env-file .env -f compose.yml run --rm --no-deps upload-cleanup ./messenger attachments-cleanup --dry-run
Container highload-lab4-upload-cleanup-run-ee9c8bded59f Creating
Container highload-lab4-upload-cleanup-run-ee9c8bded59f Created
{"direct":{"candidates":1,"deleted":0,"eligible":1,"protected":0,"skipped":0,"failed":0,"dry_run":true},"originals":{"candidates":0,"deleted":0,"eligible":0,"protected":0,"skipped":0,"failed":0,"dry_run":true}}
````
## Реализация
- [src/backend/repositories/direct_cleanup.go](../../src/backend/repositories/direct_cleanup.go)
- [src/backend/repositories/s3_admin.go](../../src/backend/repositories/s3_admin.go)