BASE_URL="http://localhost:8080" RUN_PIPELINE_FAILURE_TESTS=1 poetry run pytest student-tests/test_pipeline_failures.py -v -s
/Users/enterxx/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
============================= test session starts ==============================
platform darwin -- Python 3.12.12, pytest-9.1.1, pluggy-1.6.0 -- /Users/enterxx/Desktop/university/4course/mtusi2026lab5/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/enterxx/Desktop/university/4course/mtusi2026lab5
configfile: pyproject.toml
plugins: anyio-4.15.1
collecting ... collected 7 items

student-tests/test_pipeline_failures.py::test_commit_publish_gap_worker_down_and_broker_volume HANDOFF: COMMIT -> API restart -> publish -> broker restart with volume -> ready 01a1c1ec-7b94-7c97-ab8d-d0d2e893d496
PASSED
student-tests/test_pipeline_failures.py::test_crash_before_ack_does_not_duplicate_effect[after-objects] CRASH/REDELIVERY: after-objects attempt 2 variants=3 01a1c1ec-ed54-7446-a47d-8851fc400e66
PASSED
student-tests/test_pipeline_failures.py::test_crash_before_ack_does_not_duplicate_effect[after-result] CRASH/REDELIVERY: after-result attempt 1 variants=3 01a1c1ee-89fb-779e-be9e-81a3544a205e
PASSED
student-tests/test_pipeline_failures.py::test_retry_exhaustion_and_safe_operator_replay RETRY: attempts=5, backoff seconds [6.043809, 4.38054, 5.512209, 9.174088] failed -> audited replay -> ready; ready replay no-op
PASSED
student-tests/test_pipeline_failures.py::test_publisher_crash_after_confirm_recovers_outbox CONFIRM GAP: confirmed publish -> crash -> outbox lease -> duplicate no-op 01a1c1ef-69aa-75e1-b54c-d1bf3316d9bf
PASSED
student-tests/test_pipeline_failures.py::test_staging_cleanup_retention_and_replay_guard CLEANUP: ready staging removed; expired failed retired; active queued preserved; expired replay rejected
PASSED
student-tests/test_pipeline_failures.py::test_worker_process_has_effective_memory_limit Linux RLIMIT_AS=128MiB: decoder refused 40Mpx without killing worker
PASSED

======================== 7 passed in 237.35s (0:03:57) =========================
