Files
mtusi2026lab3/evidence/grade4-drain.txt
T

26 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
date: 2026-11-05T19:16:05.604041+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
$ make student-test 'PYTEST_ARGS=-v -s student-tests/api/test_drain.py student-tests/unit/test_timeouts.py'
.venv/bin/pytest -v -s student-tests/api/test_drain.py student-tests/unit/test_timeouts.py
============================= test session starts ==============================
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0 -- <repo>/.venv/bin/python
cachedir: .pytest_cache
rootdir: <repo>
configfile: pyproject.toml
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
collecting ... collected 3 items
student-tests/api/test_drain.py::test_draining_replica_is_not_ready_but_alive PASSED
student-tests/api/test_drain.py::test_sigterm_leaves_rotation_then_closes_and_cancels_stuck_requests окно: ready/live (503, 200), порт закрыт через 1.05 с, выход 2.44 с
запрос, принятый до SIGTERM и дописанный после закрытия порта: HTTP/1.1 201 Created
запрос, тело которого так и не пришло: HTTP/1.1 503 Service Unavailable
content-type application/json, тело {'error': {'code': 'unavailable', 'message': 'Сервис временно недоступен', 'request_id': '696dc801542f4169965fa2cd535d8d1a'}}
PASSED
student-tests/unit/test_timeouts.py::test_timeouts_shrink_inwards_and_shutdown_fits_the_stop_budget обнаружение 1.5 с (зависание 3.5 с), окно 2.0 с, дообработка 3.0 с, остановка 6.0 с, хук 7.0 с, stop_grace_period 8.0 с; LB server 10.0 с > запрос 8.0 с > БД 3.0 с; readiness 0.8 с < check 1.0 с
PASSED
============================== 3 passed in 3.97s ===============================
exit: 0 elapsed_seconds: 4.452