Record level 4 evidence and extend the report

Evidence from a freshly recreated stand at the current code: the four
detection cases with their declared maxima, failover-each for both
replicas under k6 at 100 rps (no errors, no balancer retries, the
stopped replica never served during its outage), the 20 round
same-key race, the limits and isolation check with a run against
deliberate violations, and two rolling updates under load: from the
level 3 image, where the old replicas without a drain window caused
54 redispatches and 2 response errors that the balancer retried, and
between two current builds with all counters at zero. Level 3 runs
are refreshed on the new code: smoke, stack view, both failovers with
the drain sequence in the replica log, hooks with the longer stop,
persistence, stack fault tests and own tests with the shutdown and
timeout chain output.

The report gains the shutdown order, the check period and worst
detection per failure with measurements, the timeout chain, rows 4.1
to 4.4, level 4 rows of the failure table, the k6 role, the new
variables and the updated limitations; AGENTS.md lists the commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Artyom
2026-10-28 20:07:51 +03:00
co-authored by Claude Opus 5.5
parent 6107c1aa34
commit a9aab2727f
46 changed files with 8314 additions and 161 deletions
+19 -8
View File
@@ -1,14 +1,19 @@
date: 2026-10-28T08:49:27Z commit: 0796e29
date: 2026-10-28T17:04:35Z commit: e00eb6c
$ make student-test # pytest без маркера stack, по файлам
============================= test session starts ==============================
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
rootdir: /Users/artemkostylev/projects/learning/HL/labs/mtusi2026lab3
configfile: pyproject.toml
testpaths: student-tests
collected 249 items / 10 deselected / 239 selected
plugins: asyncio-1.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collected 252 items / 10 deselected / 242 selected
student-tests/api/test_access.py ....... [ 2%]
student-tests/api/test_bounded_contexts.py .................. [ 10%]
student-tests/api/test_cache.py ..... [ 12%]
student-tests/api/test_concurrency.py ... [ 13%]
student-tests/api/test_consistency.py ........ [ 17%]
student-tests/api/test_consistency.py ........ [ 16%]
student-tests/api/test_drain.py .. [ 17%]
student-tests/api/test_events.py ....... [ 20%]
student-tests/api/test_idempotency.py ............... [ 26%]
student-tests/api/test_instance.py .... [ 28%]
@@ -17,13 +22,19 @@ student-tests/api/test_negative.py ..................................... [ 45%]
[ 45%]
student-tests/api/test_operability.py ............. [ 51%]
student-tests/api/test_pagination.py ................. [ 58%]
student-tests/api/test_pool.py .. [ 58%]
student-tests/api/test_pool.py .. [ 59%]
student-tests/api/test_sessions.py .................. [ 66%]
student-tests/api/test_timeout.py ...... [ 69%]
student-tests/api/test_wire_format.py .. [ 69%]
student-tests/unit/test_authentication.py ..................... [ 78%]
student-tests/unit/test_cursor.py ........... [ 83%]
student-tests/unit/test_domain.py ...................................... [ 99%]
.. [100%]
student-tests/unit/test_domain.py ...................................... [ 98%]
.. [ 99%]
student-tests/unit/test_timeouts.py . [100%]
===================== 242 passed, 10 deselected ======================
===================== 239 passed, 10 deselected in 17.41s ======================
$ .venv/bin/pytest -s -q student-tests/api/test_drain.py student-tests/unit/test_timeouts.py # SIGTERM-окно и цепочка таймаутов
.окно: ready/live (503, 200), порт закрыт через 1.69 с, выход 2.11 с
запрос, принятый до SIGTERM и дописанный после закрытия порта: HTTP/1.1 201 Created
.обнаружение 1.5 с (зависание 3.5 с), окно 2.0 с, остановка 5.0 с, хук 6.0 с, stop_grace_period 8.0 с; LB server 10.0 с > запрос 8.0 с > БД 3.0 с; readiness 0.8 с < check 1.0 с
.