Files
mtusi2026lab5/evidence/tests/failure-checks.md
T
ricoromaandClaude Opus 5.5 acc6584dd3 docs: record async-attachments evidence and report
Evidence taken on ff1a83b. The report covers level 3; levels 4 and 5 are
closed by the following changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 08:30:46 +03:00

10 KiB
Raw Blame History

Проверки отказов

  • Команда: make failure_checks
  • Дата: 2026-10-31, 04:03:17–04:25:08 UTC; код выхода 0
  • Commit: ff1a83b, рабочее дерево без правок кода (на момент прогона добавлены только файлы evidence/)
  • Стенд: проект mtusi-lab5-failures со своими PostgreSQL, Valkey, S3, RabbitMQ, уборщиком, worker и четырьмя API; рабочий стенд mtusi-lab5 не трогается; стенд и его volumes удалены в конце
  • Итог: 99 passed, 212 deselected, pytest 1288,38 с (21:28); вся команда 1311 с (21:51); журнал PostgreSQL стенда без признаков аварии (crash markers 0)
  • Параметры: уборщик — grace 20 с, интервал 1 с, плановая сверка выключена; worker — 4 попытки, пауза 5 с, срок 10 с, graceful 2 с
  • Вывод сокращён: убран лог сборки и шаги compose при подъёме и уборке, адреса API временные
[failure_checks] project=mtusi-lab5-failures (working stand: mtusi-lab5)
[failure_checks] start cleaner: grace 20 s, interval 1 s, reconcile interval 0 s (0 — off)
[failure_checks] start worker: attempts 4, retry delay 5 s, job timeout 10 s, graceful 2 s
[failure_checks] start api containers
[failure_checks] ready: api=http://127.0.0.1:62260 tight=http://127.0.0.1:62264 uploads=http://127.0.0.1:62269 s3=http://127.0.0.1:62273
[failure_checks] pytest -m fault
collecting ... collected 311 items / 212 deselected / 99 selected

student-tests/test_failures.py::test_expired_token PASSED                [  1%]
student-tests/test_failures.py::test_use_does_not_extend_session PASSED  [  2%]
student-tests/test_failures.py::test_token_while_database_stopped PASSED [  3%]
student-tests/test_failures.py::test_members_failure_rolls_back_chat PASSED [  4%]
student-tests/test_failures.py::test_database_stopped_and_back PASSED    [  5%]
student-tests/test_failures.py::test_pool_exhausted PASSED               [  6%]
student-tests/test_failures.py::test_connection_limit_reached PASSED     [  7%]
student-tests/test_failures.py::test_pool_keeps_connections PASSED       [  8%]
student-tests/test_failures.py::test_readiness_without_database PASSED   [  9%]
student-tests/test_failures.py::test_readiness_without_cache PASSED      [ 10%]
student-tests/test_failures.py::test_readiness_without_object_storage[stop] PASSED [ 11%]
student-tests/test_failures.py::test_readiness_without_object_storage[pause] PASSED [ 12%]
student-tests/test_failures.py::test_flush_cache PASSED                  [ 13%]
student-tests/test_failures.py::test_valkey_stopped PASSED               [ 14%]
student-tests/test_failures.py::test_valkey_paused PASSED                [ 15%]
student-tests/test_failures.py::test_valkey_back PASSED                  [ 16%]
student-tests/test_failures.py::test_message_failure_keeps_key_free PASSED [ 17%]
student-tests/test_failures.py::test_database_outage_keeps_key_free PASSED [ 18%]
student-tests/test_failures.py::test_key_free_after_ttl PASSED           [ 19%]
student-tests/test_failures.py::test_upload_with_object_storage_stopped PASSED [ 20%]
student-tests/test_failures.py::test_rejected_uploads_leave_nothing PASSED [ 21%]
student-tests/test_failures.py::test_metadata_insert_failure PASSED      [ 22%]
student-tests/test_failures.py::test_interrupted_body PASSED             [ 23%]
student-tests/test_failures.py::test_queued_failure_compensated PASSED   [ 24%]
student-tests/test_failures.py::test_killed_between_put_and_ready PASSED [ 25%]
student-tests/test_failures.py::test_queued_commit_outcome_unknown PASSED [ 26%]
student-tests/test_failures.py::test_upload_outlives_grace PASSED        [ 27%]
student-tests/test_failures.py::test_cleaner_failure_after_object_delete PASSED [ 28%]
student-tests/test_failures.py::test_cleaner_survives_outages PASSED     [ 29%]
student-tests/test_failures.py::test_object_storage_stopped PASSED       [ 30%]
student-tests/test_failures.py::test_environment_does_not_change_limits PASSED [ 31%]
student-tests/test_failures.py::test_object_storage_paused PASSED        [ 32%]
student-tests/test_failures.py::test_upload_slots_busy PASSED            [ 33%]
student-tests/test_failures.py::test_rejections_before_queue PASSED      [ 34%]
student-tests/test_failures.py::test_upload_waits_for_slot PASSED        [ 35%]
student-tests/test_failures.py::test_slot_released_after_failures PASSED [ 36%]
student-tests/test_failures.py::test_slow_body PASSED                    [ 37%]
student-tests/test_failures.py::test_upload_after_idle_s3 PASSED         [ 38%]
student-tests/test_failures.py::test_queued_while_worker_stopped PASSED  [ 39%]
student-tests/test_failures.py::test_processing_visible PASSED           [ 40%]
student-tests/test_failures.py::test_redelivery_of_ready_is_noop PASSED  [ 41%]
student-tests/test_failures.py::test_durable_state_at_202 PASSED         [ 42%]
student-tests/test_failures.py::test_transient_error_retried PASSED      [ 43%]
student-tests/test_failures.py::test_job_message_matches_schema PASSED   [ 44%]
student-tests/test_failures.py::test_queue_durable PASSED                [ 45%]
student-tests/test_failures.py::test_malformed_message_dropped PASSED    [ 46%]
student-tests/test_failures.py::test_unknown_job_acked PASSED            [ 47%]
student-tests/test_failures.py::test_worker_killed_during_processing PASSED [ 48%]
student-tests/test_failures.py::test_duplicate_during_processing PASSED  [ 49%]
student-tests/test_failures.py::test_original_published_unchanged PASSED [ 50%]
student-tests/test_failures.py::test_staging_corrupted PASSED            [ 51%]
student-tests/test_failures.py::test_staging_missing PASSED              [ 52%]
student-tests/test_failures.py::test_max_pixels_fit_worker_memory PASSED [ 53%]
student-tests/test_failures.py::test_ready_failure_retried PASSED        [ 54%]
student-tests/test_failures.py::test_queued_between_attempts PASSED      [ 55%]
student-tests/test_failures.py::test_attempts_exhausted PASSED           [ 56%]
student-tests/test_failures.py::test_database_outage_during_processing PASSED [ 57%]
student-tests/test_failures.py::test_undecodable_becomes_failed PASSED   [ 58%]
student-tests/test_failures.py::test_worker_down_api_serves PASSED       [ 59%]
student-tests/test_failures.py::test_concurrency_bounded PASSED          [ 60%]
student-tests/test_failures.py::test_api_killed_after_202 PASSED         [ 61%]
student-tests/test_failures.py::test_broker_restart_keeps_job PASSED     [ 62%]
student-tests/test_failures.py::test_broker_kill_keeps_confirmed PASSED  [ 63%]
student-tests/test_failures.py::test_defense_scenario PASSED             [ 64%]
student-tests/test_failures.py::test_upload_with_broker_stopped PASSED   [ 65%]
student-tests/test_failures.py::test_upload_with_broker_paused PASSED    [ 66%]
student-tests/test_failures.py::test_queue_deleted PASSED                [ 67%]
student-tests/test_failures.py::test_broker_recreated PASSED             [ 68%]
student-tests/test_failures.py::test_start_without_broker PASSED         [ 69%]
student-tests/test_failures.py::test_worker_survives_broker_restart PASSED [ 70%]
student-tests/test_failures.py::test_content_before_ready PASSED         [ 71%]
student-tests/test_failures.py::test_message_with_queued_attachment PASSED [ 72%]
student-tests/test_failures.py::test_attachment_failed_after_message PASSED [ 73%]
student-tests/test_failures.py::test_replay_after_attachment_failed PASSED [ 74%]
student-tests/test_failures.py::test_readiness_without_broker_and_worker[stop] PASSED [ 75%]
student-tests/test_failures.py::test_readiness_without_broker_and_worker[pause] PASSED [ 76%]
student-tests/test_failures.py::test_worker_stop_during_processing PASSED [ 77%]
student-tests/test_failures.py::test_cleaner_keeps_current_work PASSED   [ 78%]
student-tests/test_failures.py::test_reconcile_finds_and_fixes PASSED    [ 79%]
student-tests/test_failures.py::test_reconcile_keeps_fresh_used_and_unknown PASSED [ 80%]
student-tests/test_failures.py::test_reconcile_restored_original PASSED  [ 81%]
student-tests/test_failures.py::test_reconcile_change_limit PASSED       [ 82%]
student-tests/test_failures.py::test_reconcile_keeps_referenced_objects PASSED [ 83%]
student-tests/test_failures.py::test_reconcile_limit_keeps_cleanup PASSED [ 84%]
student-tests/test_failures.py::test_reconcile_foreign_key_untouched PASSED [ 85%]
student-tests/test_failures.py::test_reconcile_object_storage_stopped PASSED [ 86%]
student-tests/test_failures.py::test_reconcile_interrupted_by_database PASSED [ 87%]
student-tests/test_failures.py::test_reconcile_under_load PASSED         [ 88%]
student-tests/test_failures.py::test_scheduled_reconcile PASSED          [ 89%]
student-tests/test_failures.py::test_reconcile_head_strategy_same_findings PASSED [ 90%]
student-tests/test_failures.py::test_reconcile_deep_checksum PASSED      [ 91%]
student-tests/test_failures.py::test_reconcile_restore_needs_same_bytes PASSED [ 92%]
student-tests/test_failures.py::test_reconcile_rate_limit PASSED         [ 93%]
student-tests/test_failures.py::test_reconcile_limit_stops_rechecks PASSED [ 94%]
student-tests/test_failures.py::test_reconcile_row_with_other_id_key PASSED [ 95%]
student-tests/test_failures.py::test_reconcile_fresh_overwrite_untouched PASSED [ 96%]
student-tests/test_failures.py::test_reconcile_variant_objects PASSED    [ 97%]
student-tests/test_failures.py::test_reconcile_orphan_variant PASSED     [ 98%]
student-tests/test_failures.py::test_reconcile_keeps_current_work PASSED [100%]

=============== 99 passed, 212 deselected in 1288.38s (0:21:28) ================
[failure_checks] postgres log: 500 lines, crash markers 0; "too many clients" 22, "administrator command" 163
[failure_checks] cleanup
[failure_checks] results: {'fault': 0, 'postgres': 0}

«too many clients» и «administrator command» — ожидаемые записи: их вызывают test_connection_limit_reached (заполнение слотов) и остановки PostgreSQL в сценариях отказа.