исправление

This commit is contained in:
2026-10-15 19:44:46 +03:00
parent 825f6fdbf5
commit f7f689c7c2
26 changed files with 482 additions and 399 deletions
+18 -18
View File
@@ -2,25 +2,25 @@ python student-tests/run_persistence.py
hook: scripts/restart.cmd
=== containers before
SERVICE CONTAINER STATE STARTED AT (UTC)
api 4e5560c6d072 running (healthy) 2026-10-14T21:07:35.489
api 7740e49a1d8c running (healthy) 2026-10-14T21:07:12.761
lb 91c0051bd4c8 running (healthy) 2026-10-14T20:46:51.195
migrate 523965b912bb exited 2026-10-14T20:46:48.669
postgres 5c16b9b684f2 running (healthy) 2026-10-14T21:05:32.785
valkey c74935587700 running (healthy) 2026-10-14T21:05:11.672
api 1c773748bc05 running (healthy) 2026-10-15T16:36:31.798
api aa3dac85e7ed running (healthy) 2026-10-15T16:36:08.417
lb f9c8bda9ea4c running (healthy) 2026-10-15T16:32:39.190
migrate 7420f3f1ddda exited 2026-10-15T16:32:47.434
postgres 5c16b9b684f2 running (healthy) 2026-10-15T16:35:06.670
valkey c74935587700 running (healthy) 2026-10-15T16:34:57.760
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.␍
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
=== containers after (test took 18.5 s: hook + waiting for readiness + data checks)
=== containers after (test took 19.6 s: hook + waiting for readiness + data checks)
SERVICE CONTAINER STATE STARTED AT (UTC)
api 4e5560c6d072 running (healthy) 2026-10-14T21:07:56.102
api 7740e49a1d8c running (healthy) 2026-10-14T21:07:56.434
lb 91c0051bd4c8 running (healthy) 2026-10-14T21:08:00.229
migrate 523965b912bb exited 2026-10-14T21:07:54.122
postgres 5c16b9b684f2 running (healthy) 2026-10-14T21:07:48.620
valkey c74935587700 running (healthy) 2026-10-14T21:07:48.474
api 7740e49a1d8c: same container, start time 21:07:12 -> 21:07:56
api 4e5560c6d072: same container, start time 21:07:35 -> 21:07:56
lb 91c0051bd4c8: same container, start time 20:46:51 -> 21:08:00
postgres 5c16b9b684f2: same container, start time 21:05:32 -> 21:07:48
valkey c74935587700: same container, start time 21:05:11 -> 21:07:48
api 1c773748bc05 running (healthy) 2026-10-15T16:36:52.431
api aa3dac85e7ed running (healthy) 2026-10-15T16:36:52.088
lb f9c8bda9ea4c running (healthy) 2026-10-15T16:36:56.814
migrate 7420f3f1ddda exited 2026-10-15T16:36:50.153
postgres 5c16b9b684f2 running (healthy) 2026-10-15T16:36:44.391
valkey c74935587700 running (healthy) 2026-10-15T16:36:44.221
api aa3dac85e7ed: same container, start time 16:36:08 -> 16:36:52
api 1c773748bc05: same container, start time 16:36:31 -> 16:36:52
lb f9c8bda9ea4c: same container, start time 16:32:39 -> 16:36:56
postgres 5c16b9b684f2: same container, start time 16:35:06 -> 16:36:44
valkey c74935587700: same container, start time 16:34:57 -> 16:36:44
PASS: api replicas, postgres, valkey and lb were restarted (same containers and volumes, new start time); data and the existing token survived