Files
mtusi2026lab6/evidence/tests/failure-checks.md
T
ricoromaandClaude Opus 5.5 6c6e6d5192 docs: capture lab 6 exclusion evidence, full checks and final report
Coverage-exclusion evidence on the lab 6 stand (db3340d), failure checks,
isolated and LB test runs, clean clone and secrets check; fill REPORT.md
from the skeleton template, drop PLAN.md (last version db3340d).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:35:25 +03:00

7.7 KiB
Raw Blame History

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

  • Команда: make failure_checks
  • Дата: 2026-11-15, 06:50:18–07:28:09 UTC; код выхода 0
  • Commit: db3340d (ветка feat/lab6-final), рабочее дерево без правок кода (во время прогона менялись только REPORT.md, AGENTS.md, QUESTIONS.md и файлы evidence/; образ стенд собрал в начале)
  • Стенд: проект mtusi-lab6-failures со своими PostgreSQL, Valkey, S3, RabbitMQ, уборщиком, relay, worker и пятью API (телеметрия у API, worker и relay выключена, сервисы телеметрии не запускаются); рабочий стенд mtusi-lab6 на время прогона работал рядом (в первые минуты — make service_test, make service_test_db и офлайн-проверки); стенд отказов и его volumes удалены в конце
  • Итог: 147 passed, 224 deselected, pytest 2242,88 с (37:22); журнал PostgreSQL стенда без признаков аварии (crash markers 0). «too many clients» 34 и «administrator command» 194 — следы самих проверок (заполнение слотов, остановки PostgreSQL). Набор тот же, что в лабе 5 (147 проверок): лаба 6 проверок отказов не добавляла — телеметрию проверяют быстрые тесты и команды драйвера
  • Параметры: уборщик — grace 20 с, интервал 1 с, плановая сверка выключена; worker — 4 попытки, пауза 4–16 с, срок 10 с, запас аренды 2 с, рендер 8 с / 3 с CPU, graceful 2 с; relay — опрос 0,2 с, повторная публикация через 5 с
  • Вывод сокращён: убраны лог сборки и шаги compose, адреса API временные, строки PASSED свёрнуты в список имён. Таблицы красных прогонов (временные регрессии) — в отчётах лаб 4 и 5 и в tasks.md их change: код этих веток в лабе 6 не менялся
[failure_checks] project=mtusi-lab6-failures (working stand: mtusi-lab6)
[failure_checks] build image
[failure_checks] start postgres, valkey, s3 and rabbitmq
[failure_checks] migrations
[failure_checks] s3 bootstrap
[failure_checks] start cleaner: grace 20 s, interval 1 s, reconcile interval 0 s (0 — off)
[failure_checks] start worker: attempts 4, retry 4–16 s, job timeout 10 s, lease margin 2 s, render 8 s / 3 s CPU, graceful 2 s
[failure_checks] start relay: poll 0.2 s, republish after 5 s
[failure_checks] start api containers
[failure_checks] ready: api=http://127.0.0.1:50598 tight=http://127.0.0.1:50603 uploads=http://127.0.0.1:50611 s3=http://127.0.0.1:50620 backlog=http://127.0.0.1:50627
[failure_checks] pytest -m fault
collecting ... collected 371 items / 224 deselected / 147 selected
=============== 147 passed, 224 deselected in 2242.88s (0:37:22) ===============
[failure_checks] postgres log: 572 lines, crash markers 0; "too many clients" 34, "administrator command" 194
[failure_checks] cleanup
[failure_checks] results: {'fault': 0, 'postgres': 0}

Прошедшие проверки по порядку

test_expired_token test_use_does_not_extend_session test_token_while_database_stopped test_members_failure_rolls_back_chat
test_database_stopped_and_back test_pool_exhausted test_connection_limit_reached test_pool_keeps_connections
test_readiness_without_database test_readiness_without_cache test_readiness_without_object_storage[stop] test_readiness_without_object_storage[pause]
test_flush_cache test_valkey_stopped test_valkey_paused test_valkey_back
test_message_failure_keeps_key_free test_database_outage_keeps_key_free test_key_free_after_ttl test_upload_with_object_storage_stopped
test_rejected_uploads_leave_nothing test_metadata_insert_failure test_interrupted_body test_queued_failure_compensated
test_killed_between_put_and_ready test_queued_commit_outcome_unknown test_upload_outlives_grace test_cleaner_failure_after_object_delete
test_cleaner_survives_outages test_object_storage_stopped test_environment_does_not_change_limits test_object_storage_paused
test_upload_slots_busy test_rejections_before_queue test_upload_waits_for_slot test_slot_released_after_failures
test_slow_body test_upload_after_idle_s3 test_queued_while_worker_stopped test_processing_visible
test_redelivery_of_ready_is_noop test_durable_state_at_202 test_transient_error_retried test_job_message_matches_schema
test_queue_durable test_malformed_message_dropped test_unknown_job_acked test_worker_killed_during_processing
test_duplicate_during_processing test_original_published_unchanged test_staging_corrupted test_staging_missing
test_max_pixels_fit_worker_memory test_ready_failure_retried test_queued_between_attempts test_attempts_exhausted
test_database_outage_during_processing test_undecodable_becomes_failed test_worker_down_api_serves test_concurrency_bounded
test_api_killed_after_202 test_broker_restart_keeps_job test_broker_kill_keeps_confirmed test_defense_scenario
test_upload_with_broker_stopped test_upload_with_broker_paused test_queue_deleted test_broker_recreated
test_start_without_broker test_worker_survives_broker_restart test_content_before_ready test_message_with_queued_attachment
test_attachment_failed_after_message test_replay_after_attachment_failed test_readiness_without_broker_and_worker[stop] test_readiness_without_broker_and_worker[pause]
test_worker_stop_during_processing test_worker_stop_during_render test_cleaner_keeps_current_work test_reconcile_finds_and_fixes
test_reconcile_keeps_fresh_used_and_unknown test_reconcile_restored_original test_reconcile_change_limit test_reconcile_keeps_referenced_objects
test_reconcile_limit_keeps_cleanup test_reconcile_foreign_key_untouched test_reconcile_object_storage_stopped test_reconcile_interrupted_by_database
test_reconcile_under_load test_scheduled_reconcile test_reconcile_head_strategy_same_findings test_reconcile_deep_checksum
test_reconcile_restore_needs_same_bytes test_reconcile_rate_limit test_reconcile_limit_stops_rechecks test_reconcile_row_with_other_id_key
test_reconcile_fresh_overwrite_untouched test_reconcile_variant_objects test_reconcile_orphan_variant test_reconcile_keeps_current_work
test_relay_killed_before_publish test_relay_killed_after_confirm test_relay_survives_broker_outage test_relay_survives_database_outage
test_two_relays test_relay_respects_next_attempt test_lost_message_republished test_no_copies_while_queue_has_messages
test_published_backlog_limit test_broker_memory_alarm test_crash_after_objects_before_commit test_crash_after_commit_before_ack
test_retry_backoff_with_jitter test_retry_waits_outside_worker test_limit_pixels test_limit_oversized_staging
test_limit_cpu_scan_bomb test_limit_memory test_limit_render_timeout test_render_killed
test_hung_worker_lease_fencing test_hung_worker_thawed_after_ready test_long_attempt_keeps_lease test_last_attempt_lost
test_replay_registry_dry_run test_replay_returns_work test_replay_ready_refused test_replay_in_progress_refused
test_replay_without_source_refused test_replay_new_budget test_replay_by_code test_prefetch_bounded
test_missing_variant test_cancelled_upload_of_previous_version test_staging_removed_after_ready test_staging_retention
test_staging_keeps_current_work test_staging_cleanup_survives_outage test_staging_foreign_key_kept test_reconcile_orphan_staging
test_defense_faults test_backlog_limit test_backlog_ignores_finished test_backlog_counts_waiting_retry
test_backlog_without_broker test_backlog_overshoot_bounded test_backlog_off