From 4886430b69a6ee3352a91b883f9c14426ce4bda9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=BE=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2=20Maximillian?= =?UTF-8?q?=20=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Wed, 7 Oct 2026 12:28:52 +0300 Subject: [PATCH] docs(evidence): save lab3 failover and persistence test output --- evidence/test-failover-second.log | 12 ++++++++++++ evidence/test-failover.log | 12 ++++++++++++ evidence/test-persistence.log | 11 +++++++++++ 3 files changed, 35 insertions(+) create mode 100644 evidence/test-failover-second.log create mode 100644 evidence/test-failover.log create mode 100644 evidence/test-persistence.log diff --git a/evidence/test-failover-second.log b/evidence/test-failover-second.log new file mode 100644 index 0000000..32e6111 --- /dev/null +++ b/evidence/test-failover-second.log @@ -0,0 +1,12 @@ +# Лабораторная 3 — тест отказа (failover), прогон 2 (целевая реплика отличается от прогона 1) +# Дата: 2026-10-07 +# Commit: a34c6e8 +# Хост: Windows 10, Docker Desktop (бэкенд WSL2) +# Команда: make test-failover ACTION_SCRIPT=scripts/stop-one.cmd +# Пороги: first_recovery_seconds <= 10; observed_instances_before >= 2 +# Цель: доказать, что остановить можно любую реплику, а не только первую + +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.cmd" --base-url "http://localhost:8080" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 92, "failed_attempts": 2, "first_recovery_seconds": 2.487} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/test-failover.log b/evidence/test-failover.log new file mode 100644 index 0000000..395b495 --- /dev/null +++ b/evidence/test-failover.log @@ -0,0 +1,12 @@ +# Лабораторная 3 — тест отказа (failover), прогон 1 +# Дата: 2026-10-07 +# Commit: a34c6e8 +# Хост: Windows 10, Docker Desktop (бэкенд WSL2) +# Команда: make test-failover ACTION_SCRIPT=scripts/stop-one.cmd +# Пороги: first_recovery_seconds <= 10; observed_instances_before >= 2 +# Примечание: лог восстановлен из вывода терминала (первый прогон не был сохранён через tee) + +python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.cmd" --base-url "http://localhost:8080" +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 76, "failed_attempts": 3, "first_recovery_seconds": 2.466} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/test-persistence.log b/evidence/test-persistence.log new file mode 100644 index 0000000..e6d7b6f --- /dev/null +++ b/evidence/test-persistence.log @@ -0,0 +1,11 @@ +# Лабораторная 3 — тест сохранности данных (persistence) +# Дата: 2026-10-07 +# Commit: a34c6e8 +# Хост: Windows 10, Docker Desktop (бэкенд WSL2) +# Команда: make test-persistence ACTION_SCRIPT=scripts/restart.cmd +# Action-скрипт: scripts/restart.cmd -> docker compose down && docker compose up -d +# Примечание: .cmd — локальная обёртка для Windows; на Linux используется scripts/restart.sh + +python3 tests/resilience.py --mode persistence --action-script "scripts/restart.cmd" --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.