ЛР 5 — БВТ2304 — Черников — на 4

This commit is contained in:
2026-11-11 23:56:28 +03:00
parent 276dbdad8a
commit 0b399073d6
77 changed files with 6838 additions and 27 deletions
+16
View File
@@ -1,5 +1,21 @@
# Доказательства
Фактическая проверка lab5 на4 выполнена11.11.2026 в локальном Docker Desktop.
- `offline.txt` — структура skeleton, refs и Python syntax, PASS.
- `unit.txt` — 13 тестов декодера и worker ack/retry, PASS.
- `smoke.txt` — публичный сценарий lab5, PASS.
- `tests.txt` — 98 собственных HTTP-тестов, PASS.
- `lab5-checks.txt` — все10 сценариев grade3/4 (durability, outbox, broker outage, redelivery, crash, lease, retry/replay, permanent failure, staging).
- `persistence.txt`, `failover.txt` — публичные проверки restart/failover с реальными хуками.
- `postgres-pause.txt` — сохранённая регрессия клиентского таймаута PostgreSQL из lab4.
- `cleanup.txt` — dry-run orphan/failed staging cleanup на новой схеме lab5, без удаления данных.
- `stack.json` — фактические процессы, времена старта, версии, лимиты, volumes и порты; переменные окружения/секреты не сохраняются.
Повторить стандартные проверки: `python -X utf8 scripts/verify.py`.
Полный прогон с управляемыми отказами: `python -X utf8 scripts/verify.py --faults`.
Отказы нельзя запускать параллельно друг с другом. Скрипты восстанавливают сервисы и сохраняют volumes. Методика и ограничения — в REPORT.md.
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
+3
View File
@@ -0,0 +1,3 @@
{"scanned": 77, "fresh": 77, "referenced": 0, "orphan": 0, "deleted": 0, "apply": false, "seconds": 0.093}
Container mtusi-lab5-cleanup-run-f64711ee55d4 Creating
Container mtusi-lab5-cleanup-run-f64711ee55d4 Created
+3
View File
@@ -0,0 +1,3 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.␍
{"observed_instances_before": 2, "successful_writes": 119, "failed_attempts": 0, "first_recovery_seconds": 4.5}␍
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.␍
+23
View File
@@ -0,0 +1,23 @@
START stack 2026-11-11T20:32:07.954371+00:00␍
PASS stack: separate durable broker/worker/dispatcher, private internal ports, bounded worker memory␍
START durability 2026-11-11T20:32:08.262127+00:00␍
PASS durability: worker down -> 202+linked message+409 -> API/broker restart with volumes -> same job ready; job_id=1d457f73-a915-41c9-913c-5a0014df0511␍
START outbox 2026-11-11T20:32:38.208630+00:00␍
PASS outbox: COMMIT persisted while dispatcher stopped -> kill API before publish -> restart -> same job ready; job_id=6b472c6b-52ec-432f-8472-b27fb56598c1␍
START broker_outage 2026-11-11T20:33:07.567493+00:00␍
PASS broker outage: API remains ready, upload 202 and messages commit, durable outbox later reaches ready; job_id=a363aa46-6f18-45cb-9fe2-109f83086db7␍
START redelivery 2026-11-11T20:33:25.177987+00:00␍
PASS redelivery: same ready job acked without mutation, same 3 variants/checksums; job_id=f951285c-bd7a-4763-b3c5-3a6b649d9a22␍
START crash 2026-11-11T20:33:34.557181+00:00␍
PASS crash after 4 S3 writes before DB result/ack: same job recovered; no duplicate variants; job_id=ea420ed9-8c7c-47e7-9d58-a5ccc923b782 attempts=2 window={"final": true, "staging": true, "staging_deleted": false, "status": "processing", "variant_objects": 3}␍
START lease 2026-11-11T20:34:42.684279+00:00␍
PASS expired lease: killed stalled processing worker -> automatic recovery, same job; job_id=766e3884-a0df-426c-94c5-f1ba947b6e2a old_lease_until=2026-11-11T20:35:39.564619+00:00 attempts=2␍
PASS fencing: old lease cannot finish or fail after recovered ready commit␍
START retries 2026-11-11T20:35:52.377383+00:00␍
PASS transient errors retry with durable backoff/jitter; job_id=cb2a9208-6580-4003-a015-93873c7191bc audit=[{"action": "retry", "actor": "f7611f3a576d-fb830a49-0", "created_at": "2026-11-11T20:36:05.032253+00:00", "details": {"attempt": 1, "available_at": "2026-11-11T20:36:05.607447Z", "delay_seconds": 0.5774477733124553, "run_attempts": 1}, "reason": "injected_transient"}, {"action": "retry", "actor": "f7611f3a576d-fb830a49-0", "created_at": "2026-11-11T20:36:05.777829+00:00", "details": {"attempt": 2, "available_at": "2026-11-11T20:36:06.849152Z", "delay_seconds": 1.0739815038117153, "run_attempts": 2}, "reason": "injected_transient"}]␍
PASS retry exhaustion -> failed+409+retained staging -> explicit audited replay -> ready -> ready replay no-op; job_id=6a9cc04b-cc23-4e90-9788-f185773a53be max_attempts=5 error_code=retry_exhausted replay={"attachment_id": "0640b252-52f0-42d6-af9d-6a9bc1743b64", "attempt": 6, "error_code": null, "job_id": "6a9cc04b-cc23-4e90-9788-f185773a53be", "run_attempts": 1, "status": "ready"}␍
START permanent 2026-11-11T20:37:01.785708+00:00␍
PASS permanent failure: failed after one attempt; content/message rejected with409; job_id=c4d6f975-751a-4208-9e49-e9e34c15f9d2 error_code=invalid_image␍
START staging 2026-11-11T20:37:19.184496+00:00␍
PASS staging cleanup: queued protected; staging deleted only after ready commit; final original retained; attachment_id=6425f731-feab-466c-bfa1-31596c1cacb3␍
PASS selected lab5 grade 3/4 checks; no grade 5 track claimed␍
+1
View File
@@ -0,0 +1 @@
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.␍
+2
View File
@@ -0,0 +1,2 @@
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.␍
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.␍
+10
View File
@@ -0,0 +1,10 @@
{"cycle": 1, "api": 1, "status": 503, "requests": 12, "seconds": [3.019, 3.079, 3.075, 3.073, 3.066, 3.064, 3.064, 3.065, 3.01, 3.009, 3.011, 3.012], "live_seconds": 0.012}␍
{"cycle": 1, "api": 2, "status": 503, "requests": 12, "seconds": [3.026, 3.009, 3.013, 3.007, 3.01, 3.011, 3.013, 3.012, 3.012, 3.014, 3.012, 3.014], "live_seconds": 0.005}␍
{"cycle": 1, "recovered_seconds": 0.677, "existing_session_and_write": "PASS"}␍
{"cycle": 2, "api": 1, "status": 503, "requests": 12, "seconds": [3.09, 3.089, 3.087, 3.088, 3.069, 3.065, 3.009, 3.007, 3.007, 3.008, 3.007, 3.007], "live_seconds": 0.005}␍
{"cycle": 2, "api": 2, "status": 503, "requests": 12, "seconds": [3.017, 3.015, 3.007, 3.005, 3.006, 3.008, 3.009, 3.006, 3.007, 3.008, 3.007, 3.007], "live_seconds": 0.006}␍
{"cycle": 2, "recovered_seconds": 0.897, "existing_session_and_write": "PASS"}␍
{"phase": "query", "timeout_seconds": 3.002, "connection_closed": true, "pool_max_size": 1, "recovered_seconds": 0.002}␍
{"phase": "commit", "timeout_seconds": 3.001, "connection_closed": true, "pool_max_size": 1, "recovered_seconds": 0.002}␍
{"phase": "rollback", "timeout_seconds": 3.002, "connection_closed": true, "pool_max_size": 1, "recovered_seconds": 0.002}␍
PASS: paused PostgreSQL returns bounded direct 503; query/commit/rollback discard connections; same pools recover.␍
+1
View File
@@ -0,0 +1 @@
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.␍
+182
View File
@@ -0,0 +1,182 @@
{
"captured_at": "2026-11-11T20:48:41.179173+00:00",
"containers": [
{
"name": "mtusi-lab5-api-1",
"image": "mtusi-messenger:lab5",
"status": "running",
"started_at": "2026-11-11T20:46:17.2642711Z",
"health": "healthy",
"memory_limit_bytes": 536870912,
"cpu_limit_nanos": 500000000,
"volumes": [],
"published_ports": {
"8080/tcp": null
}
},
{
"name": "mtusi-lab5-api-2",
"image": "mtusi-messenger:lab5",
"status": "running",
"started_at": "2026-11-11T20:45:47.113222398Z",
"health": "healthy",
"memory_limit_bytes": 536870912,
"cpu_limit_nanos": 500000000,
"volumes": [],
"published_ports": {
"8080/tcp": null
}
},
{
"name": "mtusi-lab5-broker-1",
"image": "valkey/valkey:9.0.6-trixie@sha256:63346cb24a61221e76bdf41acce99b3968a9fa83d8122144deab45394b27b4f2",
"status": "running",
"started_at": "2026-11-11T20:45:26.310735977Z",
"health": "healthy",
"memory_limit_bytes": 268435456,
"cpu_limit_nanos": 500000000,
"volumes": [
{
"name": "mtusi-lab5_brokerdata",
"destination": "/data"
}
],
"published_ports": {
"6379/tcp": null
}
},
{
"name": "mtusi-lab5-bucket-1",
"image": "mtusi-messenger:lab5",
"status": "exited",
"started_at": "2026-11-11T20:47:01.904404105Z",
"health": "unhealthy",
"memory_limit_bytes": 0,
"cpu_limit_nanos": 0,
"volumes": [],
"published_ports": {}
},
{
"name": "mtusi-lab5-dispatcher-1",
"image": "mtusi-messenger:lab5",
"status": "running",
"started_at": "2026-11-11T20:45:46.648528264Z",
"health": null,
"memory_limit_bytes": 268435456,
"cpu_limit_nanos": 500000000,
"volumes": [],
"published_ports": {
"8080/tcp": null
}
},
{
"name": "mtusi-lab5-lb-1",
"image": "haproxy:3.4.5-trixie@sha256:76928c0d6b39bdd5f1c15d519cf48c47a6aa18c1dc552f7af1c146d2aa003c14",
"status": "running",
"started_at": "2026-11-11T20:45:50.374957227Z",
"health": null,
"memory_limit_bytes": 134217728,
"cpu_limit_nanos": 500000000,
"volumes": [],
"published_ports": {
"8080/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "8080"
}
],
"8404/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "8404"
}
]
}
},
{
"name": "mtusi-lab5-migrate-1",
"image": "mtusi-messenger:lab5",
"status": "exited",
"started_at": "2026-11-11T20:46:13.806559806Z",
"health": "unhealthy",
"memory_limit_bytes": 134217728,
"cpu_limit_nanos": 500000000,
"volumes": [],
"published_ports": {}
},
{
"name": "mtusi-lab5-postgres-1",
"image": "postgres:18.6-trixie@sha256:74935e72241653ca55e0414067e6d8763aceb8a810eb51b452253ec3dcfc4336",
"status": "running",
"started_at": "2026-11-11T20:45:26.382080938Z",
"health": "healthy",
"memory_limit_bytes": 536870912,
"cpu_limit_nanos": 1000000000,
"volumes": [
{
"name": "mtusi-lab5_pgdata",
"destination": "/var/lib/postgresql"
}
],
"published_ports": {
"5432/tcp": null
}
},
{
"name": "mtusi-lab5-s3-1",
"image": "chrislusf/seaweedfs:3.85@sha256:49312939c00c01e5ee6afbd7d728b18027821d3764c35a797a72acd4fdf3296a",
"status": "running",
"started_at": "2026-11-11T20:45:29.272738761Z",
"health": null,
"memory_limit_bytes": 536870912,
"cpu_limit_nanos": 1000000000,
"volumes": [
{
"name": "mtusi-lab5_s3data",
"destination": "/data"
}
],
"published_ports": {
"18080/tcp": null,
"18888/tcp": null,
"19333/tcp": null,
"7333/tcp": null,
"8080/tcp": null,
"8333/tcp": null,
"8888/tcp": null,
"9333/tcp": null
}
},
{
"name": "mtusi-lab5-valkey-1",
"image": "valkey/valkey:9.0.6-trixie@sha256:63346cb24a61221e76bdf41acce99b3968a9fa83d8122144deab45394b27b4f2",
"status": "running",
"started_at": "2026-11-11T20:45:26.514802669Z",
"health": "healthy",
"memory_limit_bytes": 268435456,
"cpu_limit_nanos": 500000000,
"volumes": [
{
"name": "mtusi-lab5_valkeydata",
"destination": "/data"
}
],
"published_ports": {
"6379/tcp": null
}
},
{
"name": "mtusi-lab5-worker-1",
"image": "mtusi-messenger:lab5",
"status": "running",
"started_at": "2026-11-11T20:45:46.903676916Z",
"health": null,
"memory_limit_bytes": 1073741824,
"cpu_limit_nanos": 1000000000,
"volumes": [],
"published_ports": {
"8080/tcp": null
}
}
]
}
+1
View File
@@ -0,0 +1 @@
Saved evidence/stack.json (process start times, versions, limits, volumes and ports)␍
+103
View File
@@ -0,0 +1,103 @@
test_authentication_is_checked_before_body_and_resource (test_access.AuthenticationOrderTest.test_authentication_is_checked_before_body_and_resource) ... ok␍
test_registration_does_not_need_a_token (test_access.AuthenticationOrderTest.test_registration_does_not_need_a_token) ... ok␍
test_chat_list_contains_only_own_chats (test_access.ForeignChatTest.test_chat_list_contains_only_own_chats) ... ok␍
test_every_member_can_read_and_write (test_access.ForeignChatTest.test_every_member_can_read_and_write) ... ok␍
test_foreign_chat_looks_like_missing_chat (test_access.ForeignChatTest.test_foreign_chat_looks_like_missing_chat) ... ok␍
test_invalid_chat_id_is_400 (test_access.ForeignChatTest.test_invalid_chat_id_is_400) ... ok␍
test_outsider_cannot_get_chat (test_access.ForeignChatTest.test_outsider_cannot_get_chat) ... ok␍
test_outsider_cannot_read_history (test_access.ForeignChatTest.test_outsider_cannot_read_history) ... ok␍
test_outsider_cannot_write (test_access.ForeignChatTest.test_outsider_cannot_write) ... ok␍
test_unknown_route_is_404 (test_access.ForeignChatTest.test_unknown_route_is_404) ... ok␍
test_x_user_id_does_not_open_a_foreign_chat (test_access.ForeignChatTest.test_x_user_id_does_not_open_a_foreign_chat) ... ok␍
test_attachment_only_and_idempotency (test_attachments.AttachmentsTest.test_attachment_only_and_idempotency) ... ok␍
test_byte_limit_before_body (test_attachments.AttachmentsTest.test_byte_limit_before_body) ... ok␍
test_corrupt_and_wrong_mime (test_attachments.AttachmentsTest.test_corrupt_and_wrong_mime) ... ok␍
test_exif_orientation_applies_to_variants_and_original_stays_identical (test_attachments.AttachmentsTest.test_exif_orientation_applies_to_variants_and_original_stays_identical) ... ok␍
test_filename (test_attachments.AttachmentsTest.test_filename) ... ok␍
test_foreign_chat_upload (test_attachments.AttachmentsTest.test_foreign_chat_upload) ... ok␍
test_jpeg_original (test_attachments.AttachmentsTest.test_jpeg_original) ... ok␍
test_large_optimized_image_is_bounded (test_attachments.AttachmentsTest.test_large_optimized_image_is_bounded) ... ok␍
test_original_and_metadata_and_acl (test_attachments.AttachmentsTest.test_original_and_metadata_and_acl) ... ok␍
test_pixel_limit_before_decode (test_attachments.AttachmentsTest.test_pixel_limit_before_decode) ... ok␍
test_small_transparent_image_does_not_upscale_thumbnail_or_optimized (test_attachments.AttachmentsTest.test_small_transparent_image_does_not_upscale_thumbnail_or_optimized) ... ok␍
test_unknown_foreign_and_duplicate_ids (test_attachments.AttachmentsTest.test_unknown_foreign_and_duplicate_ids) ... ok␍
test_errors_also_carry_instance_id (test_balancing.BalancingTest.test_errors_also_carry_instance_id) ... ok␍
test_message_written_on_one_replica_is_read_on_another (test_balancing.BalancingTest.test_message_written_on_one_replica_is_read_on_another) ... ok␍
test_one_session_is_served_by_several_replicas (test_balancing.BalancingTest.test_one_session_is_served_by_several_replicas) ... ok␍
test_100_messages_from_10_clients (test_concurrency.ConcurrencyTest.test_100_messages_from_10_clients) ... ok␍
test_chats_created_in_parallel_are_all_listed (test_concurrency.ConcurrencyTest.test_chats_created_in_parallel_are_all_listed) ... ok␍
test_same_username_registered_in_parallel_wins_once (test_concurrency.ConcurrencyTest.test_same_username_registered_in_parallel_wins_once) ... ok␍
test_failed_validation_is_not_remembered (test_idempotency.IdempotencyTest.test_failed_validation_is_not_remembered) ... ok␍
test_invalid_keys_are_400 (test_idempotency.IdempotencyTest.test_invalid_keys_are_400) ... ok␍
test_json_formatting_does_not_matter (test_idempotency.IdempotencyTest.test_json_formatting_does_not_matter) ... ok␍
test_key_format_limits_are_accepted (test_idempotency.IdempotencyTest.test_key_format_limits_are_accepted) ... ok␍
test_key_scope_is_user_and_chat (test_idempotency.IdempotencyTest.test_key_scope_is_user_and_chat) ... ok␍
test_missing_key_is_400 (test_idempotency.IdempotencyTest.test_missing_key_is_400) ... ok␍
test_parallel_requests_with_one_key_create_one_message (test_idempotency.IdempotencyTest.test_parallel_requests_with_one_key_create_one_message) ... ok␍
test_replay_checks_the_session_again (test_idempotency.IdempotencyTest.test_replay_checks_the_session_again) ... ok␍
test_replay_returns_the_same_message (test_idempotency.IdempotencyTest.test_replay_returns_the_same_message) ... ok␍
test_same_key_with_another_body_is_409 (test_idempotency.IdempotencyTest.test_same_key_with_another_body_is_409) ... ok␍
test_chats_are_paged_in_creation_order (test_pagination.ChatListPaginationTest.test_chats_are_paged_in_creation_order) ... ok␍
test_cursor_of_another_user_is_400 (test_pagination.ChatListPaginationTest.test_cursor_of_another_user_is_400) ... ok␍
test_default_limit_is_50 (test_pagination.DefaultLimitTest.test_default_limit_is_50) ... ok␍
test_empty_history (test_pagination.GrowingHistoryTest.test_empty_history) ... ok␍
test_messages_sent_during_walk_are_not_lost (test_pagination.GrowingHistoryTest.test_messages_sent_during_walk_are_not_lost) ... ok␍
test_cursor_from_another_chat_is_400 (test_pagination.MessagePaginationTest.test_cursor_from_another_chat_is_400) ... ok␍
test_default_and_maximum_limit (test_pagination.MessagePaginationTest.test_default_and_maximum_limit) ... ok␍
test_invalid_cursor_is_400 (test_pagination.MessagePaginationTest.test_invalid_cursor_is_400) ... ok␍
test_invalid_limit_is_400 (test_pagination.MessagePaginationTest.test_invalid_limit_is_400) ... ok␍
test_last_full_page_has_no_cursor (test_pagination.MessagePaginationTest.test_last_full_page_has_no_cursor) ... ok␍
test_limit_can_change_between_pages (test_pagination.MessagePaginationTest.test_limit_can_change_between_pages) ... ok␍
test_one_message_per_page (test_pagination.MessagePaginationTest.test_one_message_per_page) ... ok␍
test_walk_over_several_pages (test_pagination.MessagePaginationTest.test_walk_over_several_pages) ... ok␍
test_basic_is_rejected_on_business_endpoints (test_sessions.BearerTest.test_basic_is_rejected_on_business_endpoints) ... ok␍
test_protected_endpoints_need_a_token (test_sessions.BearerTest.test_protected_endpoints_need_a_token) ... ok␍
test_scheme_name_is_case_insensitive (test_sessions.BearerTest.test_scheme_name_is_case_insensitive) ... ok␍
test_token_selects_the_user (test_sessions.BearerTest.test_token_selects_the_user) ... ok␍
test_unknown_or_malformed_token (test_sessions.BearerTest.test_unknown_or_malformed_token) ... ok␍
test_x_user_id_is_ignored (test_sessions.BearerTest.test_x_user_id_is_ignored) ... ok␍
test_credentials_in_json_body_are_not_accepted (test_sessions.LoginTest.test_credentials_in_json_body_are_not_accepted) ... ok␍
test_each_login_gives_a_new_token (test_sessions.LoginTest.test_each_login_gives_a_new_token) ... ok␍
test_malformed_basic_header (test_sessions.LoginTest.test_malformed_basic_header) ... ok␍
test_password_with_colons_and_unicode (test_sessions.LoginTest.test_password_with_colons_and_unicode) ... ok␍
test_registration_never_returns_password (test_sessions.LoginTest.test_registration_never_returns_password) ... ok␍
test_successful_login (test_sessions.LoginTest.test_successful_login) ... ok␍
test_unknown_user_gets_the_same_answer (test_sessions.LoginTest.test_unknown_user_gets_the_same_answer) ... ok␍
test_wrong_password (test_sessions.LoginTest.test_wrong_password) ... ok␍
test_login_again_after_logout (test_sessions.LogoutTest.test_login_again_after_logout) ... ok␍
test_logout_revokes_only_the_current_token (test_sessions.LogoutTest.test_logout_revokes_only_the_current_token) ... ok␍
test_bad_member_ids (test_validation.ChatValidationTest.test_bad_member_ids) ... ok␍
test_bad_titles (test_validation.ChatValidationTest.test_bad_titles) ... ok␍
test_caller_must_be_a_member (test_validation.ChatValidationTest.test_caller_must_be_a_member) ... ok␍
test_duplicate_members (test_validation.ChatValidationTest.test_duplicate_members) ... ok␍
test_unknown_member_rolls_back_the_whole_chat (test_validation.ChatValidationTest.test_unknown_member_rolls_back_the_whole_chat) ... ok␍
test_valid_chat_keeps_member_order (test_validation.ChatValidationTest.test_valid_chat_keeps_member_order) ... ok␍
test_extra_fields (test_validation.InvalidJsonTest.test_extra_fields) ... ok␍
test_invalid_utf8 (test_validation.InvalidJsonTest.test_invalid_utf8) ... ok␍
test_json_that_is_not_an_object (test_validation.InvalidJsonTest.test_json_that_is_not_an_object) ... ok␍
test_lone_surrogate_is_rejected_not_crashed (test_validation.InvalidJsonTest.test_lone_surrogate_is_rejected_not_crashed) ... ok␍
test_malformed_json_on_message (test_validation.InvalidJsonTest.test_malformed_json_on_message) ... ok␍
test_malformed_json_on_register (test_validation.InvalidJsonTest.test_malformed_json_on_register) ... ok␍
test_nul_character_is_rejected_not_crashed (test_validation.InvalidJsonTest.test_nul_character_is_rejected_not_crashed) ... ok␍
test_wrong_content_type (test_validation.InvalidJsonTest.test_wrong_content_type) ... ok␍
test_wrong_types (test_validation.InvalidJsonTest.test_wrong_types) ... ok␍
test_empty_message_is_400 (test_validation.MessageValidationTest.test_empty_message_is_400) ... ok␍
test_missing_or_wrong_text (test_validation.MessageValidationTest.test_missing_or_wrong_text) ... ok␍
test_nul_in_text_is_400 (test_validation.MessageValidationTest.test_nul_in_text_is_400) ... ok␍
test_oversized_body_is_413 (test_validation.MessageValidationTest.test_oversized_body_is_413) ... ok␍
test_sender_id_in_body_is_rejected (test_validation.MessageValidationTest.test_sender_id_in_body_is_rejected) ... ok␍
test_text_length_limit (test_validation.MessageValidationTest.test_text_length_limit) ... ok␍
test_unicode_text_is_kept (test_validation.MessageValidationTest.test_unicode_text_is_kept) ... ok␍
test_bad_display_names (test_validation.UserValidationTest.test_bad_display_names) ... ok␍
test_bad_passwords (test_validation.UserValidationTest.test_bad_passwords) ... ok␍
test_bad_usernames (test_validation.UserValidationTest.test_bad_usernames) ... ok␍
test_duplicate_username_is_409 (test_validation.UserValidationTest.test_duplicate_username_is_409) ... ok␍
test_missing_fields (test_validation.UserValidationTest.test_missing_fields) ... ok␍
test_password_length_limits_are_accepted (test_validation.UserValidationTest.test_password_length_limits_are_accepted) ... ok␍
test_unicode_display_name_is_kept (test_validation.UserValidationTest.test_unicode_display_name_is_kept) ... ok␍
test_username_length_limits_are_accepted (test_validation.UserValidationTest.test_username_length_limits_are_accepted) ... ok␍
␍
----------------------------------------------------------------------␍
Ran 98 tests in 38.587s␍
␍
OK␍
+23
View File
@@ -0,0 +1,23 @@
Container mtusi-lab5-worker-run-cfdd5f1b2acf Creating
Container mtusi-lab5-worker-run-cfdd5f1b2acf Created
test_all_variants_and_original_checksum (test_image_process.ImagePipelineTests.test_all_variants_and_original_checksum) ... ok
test_center_crop_uses_center_pixels (test_image_process.ImagePipelineTests.test_center_crop_uses_center_pixels) ... ok
test_decoder_subprocess_under_production_limits (test_image_process.ImagePipelineTests.test_decoder_subprocess_under_production_limits) ... ok
test_exif_orientation_applied_and_metadata_removed (test_image_process.ImagePipelineTests.test_exif_orientation_applied_and_metadata_removed) ... ok
test_floor_dimensions_and_extreme_aspect_ratio (test_image_process.ImagePipelineTests.test_floor_dimensions_and_extreme_aspect_ratio) ... ok
test_invalid_pixels_and_mime_rejected (test_image_process.ImagePipelineTests.test_invalid_pixels_and_mime_rejected) ... ok
test_small_alpha_is_flattened_white_without_upscale (test_image_process.ImagePipelineTests.test_small_alpha_is_flattened_white_without_upscale) ... ok
test_ack_follows_committed_result (test_image_process.WorkerDurabilityTests.test_ack_follows_committed_result) ... ok
test_active_redelivery_does_not_ack_and_ready_is_noop (test_image_process.WorkerDurabilityTests.test_active_redelivery_does_not_ack_and_ready_is_noop) ... ok
test_backoff_bounds_and_cap (test_image_process.WorkerDurabilityTests.test_backoff_bounds_and_cap) ... ok
test_lost_fence_is_left_pending (test_image_process.WorkerDurabilityTests.test_lost_fence_is_left_pending) ... ok
test_permanent_failure_has_no_automatic_processing_retry (test_image_process.WorkerDurabilityTests.test_permanent_failure_has_no_automatic_processing_retry) ... event=job_error job_id=019967da-2cfb-4b85-b14a-b1f8fad53f1e attempt=1 code=invalid_image permanent=True retry_delay=0.886 error_type=ProcessingError
ok
test_retry_ack_requires_durable_failure_record (test_image_process.WorkerDurabilityTests.test_retry_ack_requires_durable_failure_record) ... event=job_error job_id=8a03b517-904d-42c5-b874-3d514a22c796 attempt=1 code=dependency_unavailable permanent=False retry_delay=0.552 error_type=ProcessingError
event=job_error job_id=8a03b517-904d-42c5-b874-3d514a22c796 attempt=1 code=dependency_unavailable permanent=False retry_delay=0.877 error_type=ProcessingError
ok
----------------------------------------------------------------------
Ran 13 tests in 1.124s
OK