Files
mtusi2026lab2/evidence/criteria/05-session-persistence.md
T
TAskMAster339 b0fe7350c8
Skeleton contracts / contracts (pull_request) Canceled after 0s
feat: add 4 and 5 track 2
2026-10-01 20:46:42 +03:00

59 lines
2.4 KiB
Markdown

# Сохранность данных и Redis-сессии
Дата сбора: `2026-10-01T17:33:15.537043+00:00`.
Команды выполняются в корне репозитория, Linux/WSL. Контекст Compose: `COMPOSE_PROJECT_NAME=messenger-evidence-final-20261001-02`, `COMPOSE_FILE=compose.yaml:src/experiments/evidence/compose.override.yaml`. Параметры стенда и запуск: [07-compose-secrets.md](07-compose-secrets.md).
Файл: [scripts/restart.sh](../../scripts/restart.sh).
### Команда
```sh
docker compose --env-file .env exec -T redis redis-cli CONFIG GET appendonly appendfsync
```
### Фактический вывод
```text
appendfsync
everysec
appendonly
yes
```
Код завершения: `0`.
### Команда
```sh
make test-persistence BASE_URL=http://localhost:18080 ACTION_SCRIPT=scripts/restart.sh
```
### Фактический вывод
```text
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
```
Код завершения: `0`.
### Команда
```sh
docker compose --env-file .env ps
```
### Фактический вывод
```text
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
messenger-evidence-final-20261001-02-api-1 messenger-evidence-final-20261001-02-api "./messenger" api 2 minutes ago Up 7 seconds (healthy) 127.0.0.1:18080->8080/tcp
messenger-evidence-final-20261001-02-db-1 postgres:16.10-bookworm "docker-entrypoint.s…" db 2 minutes ago Up 12 seconds (healthy) 5432/tcp
messenger-evidence-final-20261001-02-frontend-1 messenger-evidence-final-20261001-02-frontend "docker-entrypoint.s…" frontend 2 minutes ago Up About a minute (healthy) 127.0.0.1:15173->5173/tcp
messenger-evidence-final-20261001-02-redis-1 redis:7.4.11-bookworm "docker-entrypoint.s…" redis 2 minutes ago Up 12 seconds (healthy) 6379/tcp
```
Код завершения: `0`.