docs: reshoot test_isolated and full failure_checks on 723b6c3
make test_isolated: 193 passed, 5 replica tests skipped; full make failure_checks: 49/49 in 552 s with the unfiltered output, paths anonymized; REPORT.md points to the reshoots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -346,9 +346,9 @@ propose — 1,18, до правки — 1,19), прежний путь `bytes`
|
||||
| Проверка | Итог |
|
||||
|---|---|
|
||||
| `make failure_checks FAULT_ARGS='-k idle_s3'` × 3 | 1 passed каждый, 16,5–17,0 с (на `4cfaab0` — 1 failed × 3) |
|
||||
| `make failure_checks` | 49 из 49 за 570 с, признаков аварии PostgreSQL нет |
|
||||
| `make failure_checks` | 49 из 49 за 570 с, признаков аварии PostgreSQL нет; пересъёмка на `723b6c3` (код — `b5983f0` плюс комментарий) с полным выводом — 49 из 49 за 552 с (`evidence/tests/failure-checks.md`, «Итог») |
|
||||
| `make student_test BASE_URL=http://localhost:8090` × 8 после замены | 198 passed каждый; «Object storage is unavailable» в журнале реплик за эти прогоны — 0 при 536 загрузках |
|
||||
| `make test_isolated` (22:38) | smoke PASS, 193 passed + 5 пропусков тестов реплик («one API process»), `results: {'test': 0, 'student_test': 0}`, префикс `test_messenger/` убран |
|
||||
| `make test_isolated` (22:38) | smoke PASS, 193 passed + 5 пропусков тестов реплик («one API process»), `results: {'test': 0, 'student_test': 0}`, префикс `test_messenger/` убран; пересъёмка на `723b6c3` — то же (`evidence/tests/test-isolated-s3-cleanup.md`, раздел 0) |
|
||||
| `make test BASE_URL=http://localhost:8090` | PASS: lab4 public API scenario |
|
||||
| `make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://localhost:8090` (22:40) | PASS: данные, прежняя сессия и оригинал вложения после рестарта LB, реплик, PostgreSQL, Valkey и S3; клиент без срока чтения aiohttp открыл новые соединения сам |
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# `make failure_checks`: проверки отказов с уборщиком, согласованностью БД и S3, местами загрузки, сверкой и простоем S3
|
||||
|
||||
- Дата: 2026-10-22, 22:16:47–22:26:43 UTC.
|
||||
- Commit: `b5983f0` (change `fix-upload-put-flake`: у клиента S3 нет срока
|
||||
чтения aiohttp, четвёртый API стенда отказов и
|
||||
`test_upload_after_idle_s3` — с `4cfaab0`). Рабочее дерево — `b5983f0`
|
||||
(во время прогона менялись только `REPORT.md`, `AGENTS.md` и
|
||||
`KNOWN_ISSUES.md`, в образ они не попадают), образ собран из него.
|
||||
- Дата: 2026-10-22, 23:17:58–23:27:37 UTC.
|
||||
- Commit: `723b6c3` (change `fix-upload-put-flake`: у клиента S3 нет срока
|
||||
чтения aiohttp — с `b5983f0`, четвёртый API стенда отказов и
|
||||
`test_upload_after_idle_s3` — с `4cfaab0`; от `b5983f0` код отличается
|
||||
только комментарием в `src/infra/s3/client.py`). Рабочее дерево чистое,
|
||||
образ собран из него.
|
||||
- Стенд отказов: проект `mtusi-lab4-failures` — свои PostgreSQL, Valkey
|
||||
и S3 (с bootstrap, пользователи `api` и `cleaner`, у уборщика список
|
||||
только с префиксом `messenger/attachments/`), порты хранилищ не
|
||||
@@ -17,55 +17,284 @@
|
||||
пул 1), «узкий по загрузкам» (`UPLOADS_ENV`: 1 место, 1 в очереди,
|
||||
ожидание 1 с, срок тела 3 с) и «с коротким сроком S3» (`S3_ENV`:
|
||||
`S3__TIMEOUT_SECONDS=1`). Рабочий стенд `mtusi-lab4` в это время
|
||||
запущен на образе `c1648d9` (реплики заменены на `b5983f0` позже, в
|
||||
22:27, `make rolling_update`; LB — на `127.0.0.1:8090`: 8080 хоста
|
||||
занят контейнером другого проекта).
|
||||
запущен на образе `723b6c3` (реплики `api-25`, `api-26` и уборщик —
|
||||
`make rolling_update APP_OUT_PORT=8090` и `docker compose up -d
|
||||
--no-deps cleaner` в 23:15; LB — на `127.0.0.1:8090`: 8080 хоста занят
|
||||
контейнером другого проекта).
|
||||
Docker Desktop 29.9.1, Apple M3 Pro.
|
||||
- Прежние снимки этого файла: commit `5b42bd2` — 29 из 29 за 190 с;
|
||||
`87c48b9` — 32 из 32 за 224 с; `5889ca2` — 32 из 32 за 228 с;
|
||||
`ce1ae2c` — 37 из 37 за 255 с; `9d2ee30` — 37 из 37 за 263 с;
|
||||
`c1648d9` — 45 из 45 за 462 с (+8 проверок сверки: ожидания grace
|
||||
стенда, 20 с, для объектов без строки и ~35 с нагрузки); `84f8c35` — 48
|
||||
из 48 за 524 с (+3 проверки по замечаниям verify). Сейчас — 49 из 49
|
||||
за 570 с: +1 проверка `test_upload_after_idle_s3` (раздел «Простой S3
|
||||
после скачиваний»), ~17 с, остальное — разброс хоста.
|
||||
из 48 за 524 с (+3 проверки по замечаниям verify); `b5983f0` — 49 из 49
|
||||
за 570 с (вывод был отфильтрован, без построчного списка тестов).
|
||||
Сейчас — 49 из 49 за 552 с: +1 проверка `test_upload_after_idle_s3`
|
||||
(раздел «Простой S3 после скачиваний») к `84f8c35`, ~17 с, остальное —
|
||||
разброс хоста.
|
||||
|
||||
## Итог: код 0, 49 из 49
|
||||
|
||||
Вывод отфильтрован при съёмке: `grep -E "failure_checks\]|passed|failed|PASSED|FAILED|ERROR"`
|
||||
без строк `student-tests/…::… PASSED` — построчный список тестов в этот
|
||||
снимок не попал (его порядок и состав — снимок `84f8c35` ниже плюс
|
||||
`test_upload_after_idle_s3` после `test_slow_body`). Строк `FAILED` и
|
||||
`ERROR` нет.
|
||||
Вывод полный, без фильтра. Обезличено только одно: путь к рабочему
|
||||
каталогу в строках `platform` и `rootdir` pytest заменён на `…`. Ещё
|
||||
убран управляющий символ терминала перед `s3-bootstrap-1 exited`.
|
||||
Секретов в выводе нет: bootstrap печатает только имена bucket и
|
||||
пользователей.
|
||||
|
||||
```
|
||||
$ date -u +%FT%TZ && time make failure_checks 2>&1 | grep -E "failure_checks\]|passed|failed|PASSED|FAILED|ERROR" | grep -v "^student-tests.*PASSED"
|
||||
2026-10-22T22:16:47Z
|
||||
$ date -u +%FT%TZ && make failure_checks; echo "exit=$?"; date -u +%FT%TZ
|
||||
2026-10-22T23:17:58Z
|
||||
env ready: .env, config.toml
|
||||
python3 student-tests/run_failures.py
|
||||
[failure_checks] project=mtusi-lab4-failures (working stand: mtusi-lab4)
|
||||
[failure_checks] build image
|
||||
Image mtusi-messenger:lab4 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 563B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 2.87kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/python:3.12.14-slim-trixie@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for ghcr.io/astral-sh/uv:0.12.17@sha256:10787c682e4184e4f290de1171fd4703dc63de99221f10fe1c99002ce7fa9acc
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 593B done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [internal] load build context
|
||||
#6 transferring context: 6.13kB done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 FROM ghcr.io/astral-sh/uv:0.12.17@sha256:10787c682e4184e4f290de1171fd4703dc63de99221f10fe1c99002ce7fa9acc
|
||||
#7 resolve ghcr.io/astral-sh/uv:0.12.17@sha256:10787c682e4184e4f290de1171fd4703dc63de99221f10fe1c99002ce7fa9acc done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [builder 1/5] FROM docker.io/library/python:3.12.14-slim-trixie@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f
|
||||
#8 resolve docker.io/library/python:3.12.14-slim-trixie@sha256:f77ac9e44ae96ef2c90b8053ea08c31f8be030f824196b0ae4db6d462c84e51f 0.0s done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [builder 5/5] RUN --mount=type=cache,target=/root/.cache/uv uv sync --locked --no-dev --no-install-project
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 4/5] COPY pyproject.toml uv.lock ./
|
||||
#10 CACHED
|
||||
|
||||
#11 [runtime 4/7] COPY --from=builder /app/.venv /app/.venv
|
||||
#11 CACHED
|
||||
|
||||
#12 [runtime 5/7] COPY src ./src
|
||||
#12 CACHED
|
||||
|
||||
#13 [runtime 2/7] RUN groupadd --system --gid 10001 app && useradd --system --uid 10001 --gid app --no-create-home --home-dir /nonexistent --shell /usr/sbin/nologin app
|
||||
#13 CACHED
|
||||
|
||||
#14 [builder 3/5] WORKDIR /app
|
||||
#14 CACHED
|
||||
|
||||
#15 [runtime 3/7] WORKDIR /app
|
||||
#15 CACHED
|
||||
|
||||
#16 [builder 2/5] COPY --from=ghcr.io/astral-sh/uv:0.12.17@sha256:10787c682e4184e4f290de1171fd4703dc63de99221f10fe1c99002ce7fa9acc /uv /bin/uv
|
||||
#16 CACHED
|
||||
|
||||
#17 [runtime 6/7] COPY alembic.ini ./
|
||||
#17 CACHED
|
||||
|
||||
#18 [runtime 7/7] COPY migrations ./migrations
|
||||
#18 CACHED
|
||||
|
||||
#19 exporting to image
|
||||
#19 exporting layers done
|
||||
#19 exporting manifest sha256:627e0709a95f0f1f9e24216d3b042e30465e42acc323fac52a36cd410487b26d done
|
||||
#19 exporting config sha256:590133eeebe64883351f078dee9d6ed7eee4a747e3d33ee0c1e9b349f4900be1 done
|
||||
#19 exporting attestation manifest sha256:fef012f7d572f550e85a096f310468b24db21b5d565d2f0855fc04067dda36a8 done
|
||||
#19 exporting manifest list sha256:1ce6e5b7d4705aaf692d7a39a1dd67e2b29d6edcc595726b4819caed8d989d4e done
|
||||
#19 naming to docker.io/library/mtusi-messenger:lab4 done
|
||||
#19 unpacking to docker.io/library/mtusi-messenger:lab4 done
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 resolving provenance for metadata file
|
||||
#20 DONE 0.0s
|
||||
Image mtusi-messenger:lab4 Built
|
||||
[failure_checks] start postgres, valkey and s3
|
||||
Network mtusi-lab4-failures_default Creating
|
||||
Volume mtusi-lab4-failures_s3_data Creating
|
||||
Volume mtusi-lab4-failures_s3_data Creating
|
||||
Network mtusi-lab4-failures_default Creating
|
||||
Volume mtusi-lab4-failures_postgres_data Creating
|
||||
Volume mtusi-lab4-failures_postgres_data Creating
|
||||
Volume mtusi-lab4-failures_s3_data Created
|
||||
Volume mtusi-lab4-failures_s3_data Created
|
||||
Volume mtusi-lab4-failures_postgres_data Created
|
||||
Volume mtusi-lab4-failures_postgres_data Created
|
||||
Network mtusi-lab4-failures_default Created
|
||||
Network mtusi-lab4-failures_default Created
|
||||
Container mtusi-lab4-failures-valkey-1 Creating
|
||||
Container mtusi-lab4-failures-s3-1 Creating
|
||||
Container mtusi-lab4-failures-postgres-1 Creating
|
||||
Container mtusi-lab4-failures-s3-1 Created
|
||||
Container mtusi-lab4-failures-valkey-1 Created
|
||||
Container mtusi-lab4-failures-postgres-1 Created
|
||||
Container mtusi-lab4-failures-s3-1 Starting
|
||||
Container mtusi-lab4-failures-valkey-1 Starting
|
||||
Container mtusi-lab4-failures-postgres-1 Starting
|
||||
Container mtusi-lab4-failures-s3-1 Started
|
||||
Container mtusi-lab4-failures-valkey-1 Started
|
||||
Container mtusi-lab4-failures-postgres-1 Started
|
||||
Container mtusi-lab4-failures-postgres-1 Waiting
|
||||
Container mtusi-lab4-failures-valkey-1 Waiting
|
||||
Container mtusi-lab4-failures-s3-1 Waiting
|
||||
Container mtusi-lab4-failures-valkey-1 Healthy
|
||||
Container mtusi-lab4-failures-postgres-1 Healthy
|
||||
Container mtusi-lab4-failures-s3-1 Healthy
|
||||
[failure_checks] migrations
|
||||
Container mtusi-lab4-failures-postgres-1 Running
|
||||
Container mtusi-lab4-failures-postgres-1 Waiting
|
||||
Container mtusi-lab4-failures-postgres-1 Healthy
|
||||
Container mtusi-lab4-failures-migrate-run-df05b43439f6 Creating
|
||||
Container mtusi-lab4-failures-migrate-run-df05b43439f6 Created
|
||||
{"event": "Running alembic", "instance_id": "9c7e96f81c3f", "module": "migrations", "host": "postgres", "port": 5432, "database": "messenger", "level": "info", "timestamp": "2026-10-22T23:18:07.604047Z", "lineno": 46, "func_name": "run_async_migrations", "filename": "env.py"}
|
||||
{"event": "Context impl PostgresqlImpl.", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.678354Z"}
|
||||
{"event": "Will assume transactional DDL.", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.678435Z"}
|
||||
{"event": "Running upgrade -> 16c279725564, added messenger tables", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.688689Z"}
|
||||
{"event": "Running upgrade 16c279725564 -> 42bc3b9be38f, added sessions and password hashes", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.697809Z"}
|
||||
{"event": "Running upgrade 42bc3b9be38f -> 7652184b7016, added idempotency keys", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.702067Z"}
|
||||
{"event": "Running upgrade 7652184b7016 -> e656d6bbe1a4, added message instance id", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.705023Z"}
|
||||
{"event": "Running upgrade e656d6bbe1a4 -> ef25d50b01a8, added attachments tables", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.706245Z"}
|
||||
{"event": "Running upgrade ef25d50b01a8 -> 739b8f04d5fb, added pending attachments index", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.714409Z"}
|
||||
{"event": "Running upgrade 739b8f04d5fb -> 5c3e1f0a9b7d, added attachments lost_at", "instance_id": "9c7e96f81c3f", "level": "info", "logger": "alembic.runtime.migration", "timestamp": "2026-10-22T23:18:07.718875Z"}
|
||||
{"event": "Finished alembic", "instance_id": "9c7e96f81c3f", "module": "migrations", "database": "messenger", "level": "info", "timestamp": "2026-10-22T23:18:07.723452Z", "lineno": 62, "func_name": "run_async_migrations", "filename": "env.py"}
|
||||
[failure_checks] s3 bootstrap
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Creating
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Created
|
||||
Attaching to s3-bootstrap-1
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Starting
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Started
|
||||
s3-bootstrap-1 | s3-bootstrap: bucket messenger created
|
||||
s3-bootstrap-1 | s3-bootstrap: user api created
|
||||
s3-bootstrap-1 | s3-bootstrap: user cleaner created
|
||||
s3-bootstrap-1 | s3-bootstrap: checks passed (api key put/get; cleaner key get/delete and list messenger/attachments/; api key list and bucket create, cleaner key put and list of the bucket, anonymous get and list denied)
|
||||
s3-bootstrap-1 exited with code 0
|
||||
Compose Stopping Aborting on container exit...
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Stopping
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Stopped
|
||||
[failure_checks] start cleaner: grace 20 s, interval 1 s, reconcile interval 0 s (0 — off)
|
||||
Container mtusi-lab4-failures-cleaner-1 Creating
|
||||
Container mtusi-lab4-failures-cleaner-1 Created
|
||||
Container mtusi-lab4-failures-cleaner-1 Starting
|
||||
Container mtusi-lab4-failures-cleaner-1 Started
|
||||
[failure_checks] start api containers
|
||||
[failure_checks] ready: api=http://127.0.0.1:64503 tight=http://127.0.0.1:64507 uploads=http://127.0.0.1:64516 s3=http://127.0.0.1:64520
|
||||
[failure_checks] ready: api=http://127.0.0.1:56529 tight=http://127.0.0.1:56538 uploads=http://127.0.0.1:56550 s3=http://127.0.0.1:56556
|
||||
[failure_checks] pytest -m fault
|
||||
================ 49 passed, 198 deselected in 569.82s (0:09:29) ================
|
||||
[failure_checks] postgres log: 457 lines, crash markers 0; "too many clients" 28, "administrator command" 148
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.12.12, pytest-9.1.1, pluggy-1.6.0 -- …/.venv/bin/python
|
||||
cachedir: .pytest_cache
|
||||
rootdir: …
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
plugins: anyio-4.15.1
|
||||
collecting ... collected 247 items / 198 deselected / 49 selected
|
||||
|
||||
student-tests/test_failures.py::test_expired_token PASSED [ 2%]
|
||||
student-tests/test_failures.py::test_use_does_not_extend_session PASSED [ 4%]
|
||||
student-tests/test_failures.py::test_token_while_database_stopped PASSED [ 6%]
|
||||
student-tests/test_failures.py::test_members_failure_rolls_back_chat PASSED [ 8%]
|
||||
student-tests/test_failures.py::test_database_stopped_and_back PASSED [ 10%]
|
||||
student-tests/test_failures.py::test_pool_exhausted PASSED [ 12%]
|
||||
student-tests/test_failures.py::test_connection_limit_reached PASSED [ 14%]
|
||||
student-tests/test_failures.py::test_pool_keeps_connections PASSED [ 16%]
|
||||
student-tests/test_failures.py::test_readiness_without_database PASSED [ 18%]
|
||||
student-tests/test_failures.py::test_readiness_without_cache PASSED [ 20%]
|
||||
student-tests/test_failures.py::test_readiness_without_object_storage[stop] PASSED [ 22%]
|
||||
student-tests/test_failures.py::test_readiness_without_object_storage[pause] PASSED [ 24%]
|
||||
student-tests/test_failures.py::test_flush_cache PASSED [ 26%]
|
||||
student-tests/test_failures.py::test_valkey_stopped PASSED [ 28%]
|
||||
student-tests/test_failures.py::test_valkey_paused PASSED [ 30%]
|
||||
student-tests/test_failures.py::test_valkey_back PASSED [ 32%]
|
||||
student-tests/test_failures.py::test_message_failure_keeps_key_free PASSED [ 34%]
|
||||
student-tests/test_failures.py::test_database_outage_keeps_key_free PASSED [ 36%]
|
||||
student-tests/test_failures.py::test_key_free_after_ttl PASSED [ 38%]
|
||||
student-tests/test_failures.py::test_upload_with_object_storage_stopped PASSED [ 40%]
|
||||
student-tests/test_failures.py::test_rejected_uploads_leave_nothing PASSED [ 42%]
|
||||
student-tests/test_failures.py::test_metadata_insert_failure PASSED [ 44%]
|
||||
student-tests/test_failures.py::test_interrupted_body PASSED [ 46%]
|
||||
student-tests/test_failures.py::test_ready_failure_compensated PASSED [ 48%]
|
||||
student-tests/test_failures.py::test_killed_between_put_and_ready PASSED [ 51%]
|
||||
student-tests/test_failures.py::test_ready_commit_outcome_unknown PASSED [ 53%]
|
||||
student-tests/test_failures.py::test_upload_outlives_grace PASSED [ 55%]
|
||||
student-tests/test_failures.py::test_cleaner_failure_after_object_delete PASSED [ 57%]
|
||||
student-tests/test_failures.py::test_cleaner_survives_outages PASSED [ 59%]
|
||||
student-tests/test_failures.py::test_object_storage_stopped PASSED [ 61%]
|
||||
student-tests/test_failures.py::test_environment_does_not_change_limits PASSED [ 63%]
|
||||
student-tests/test_failures.py::test_object_storage_paused PASSED [ 65%]
|
||||
student-tests/test_failures.py::test_upload_slots_busy PASSED [ 67%]
|
||||
student-tests/test_failures.py::test_rejections_before_queue PASSED [ 69%]
|
||||
student-tests/test_failures.py::test_upload_waits_for_slot PASSED [ 71%]
|
||||
student-tests/test_failures.py::test_slot_released_after_failures PASSED [ 73%]
|
||||
student-tests/test_failures.py::test_slow_body PASSED [ 75%]
|
||||
student-tests/test_failures.py::test_upload_after_idle_s3 PASSED [ 77%]
|
||||
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 [ 81%]
|
||||
student-tests/test_failures.py::test_reconcile_restored_original PASSED [ 83%]
|
||||
student-tests/test_failures.py::test_reconcile_change_limit PASSED [ 85%]
|
||||
student-tests/test_failures.py::test_reconcile_keeps_referenced_objects PASSED [ 87%]
|
||||
student-tests/test_failures.py::test_reconcile_limit_keeps_cleanup PASSED [ 89%]
|
||||
student-tests/test_failures.py::test_reconcile_foreign_key_untouched PASSED [ 91%]
|
||||
student-tests/test_failures.py::test_reconcile_object_storage_stopped PASSED [ 93%]
|
||||
student-tests/test_failures.py::test_reconcile_interrupted_by_database PASSED [ 95%]
|
||||
student-tests/test_failures.py::test_reconcile_under_load PASSED [ 97%]
|
||||
student-tests/test_failures.py::test_scheduled_reconcile PASSED [100%]
|
||||
|
||||
==================================== PASSES ====================================
|
||||
================ 49 passed, 198 deselected in 552.47s (0:09:12) ================
|
||||
[failure_checks] postgres log: 463 lines, crash markers 0; "too many clients" 35, "administrator command" 147
|
||||
[failure_checks] cleanup
|
||||
Container mtusi-lab4-failures-cleaner-1 Stopping
|
||||
Container mtusi-lab4-failures-valkey-1 Stopping
|
||||
Container mtusi-lab4-failures-valkey-1 Stopped
|
||||
Container mtusi-lab4-failures-valkey-1 Removing
|
||||
Container mtusi-lab4-failures-valkey-1 Removed
|
||||
Container mtusi-lab4-failures-cleaner-1 Stopped
|
||||
Container mtusi-lab4-failures-cleaner-1 Removing
|
||||
Container mtusi-lab4-failures-cleaner-1 Removed
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Stopping
|
||||
Container mtusi-lab4-failures-postgres-1 Stopping
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Stopped
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Removing
|
||||
Container mtusi-lab4-failures-s3-bootstrap-1 Removed
|
||||
Container mtusi-lab4-failures-s3-1 Stopping
|
||||
Container mtusi-lab4-failures-postgres-1 Stopping
|
||||
Container mtusi-lab4-failures-postgres-1 Stopped
|
||||
Container mtusi-lab4-failures-postgres-1 Removing
|
||||
Container mtusi-lab4-failures-postgres-1 Removed
|
||||
Container mtusi-lab4-failures-s3-1 Stopped
|
||||
Container mtusi-lab4-failures-s3-1 Removing
|
||||
Container mtusi-lab4-failures-s3-1 Removed
|
||||
Volume mtusi-lab4-failures_s3_data Removing
|
||||
Volume mtusi-lab4-failures_postgres_data Removing
|
||||
Network mtusi-lab4-failures_default Removing
|
||||
Volume mtusi-lab4-failures_s3_data Removed
|
||||
Volume mtusi-lab4-failures_postgres_data Removed
|
||||
Network mtusi-lab4-failures_default Removed
|
||||
[failure_checks] results: {'fault': 0, 'postgres': 0}
|
||||
make failure_checks 2>&1 64,25s user 27,06s system 15% cpu 9:55,69 total
|
||||
exit=0
|
||||
2026-10-22T23:27:37Z
|
||||
```
|
||||
|
||||
Код команды — 0 (`results` без ненулевых кодов; через конвейер `grep`
|
||||
код `make` не печатался). Вся команда — 9 мин 56 с. «too many clients» и «administrator command»
|
||||
— следы проверок «Предел соединений PostgreSQL исчерпан»
|
||||
(`fill-connections`) и остановок PostgreSQL, признаков аварийного
|
||||
перезапуска нет. Реплики рабочего стенда до прогона (22:13) и в начале
|
||||
замены после него (22:27) — те же `151df4af59c3` и `b5c48ae854d1`
|
||||
(`api-21`, `api-22`, старт 16:37–16:38), контейнеров и volumes проекта
|
||||
`mtusi-lab4-failures` после прогона нет, docker volumes — 155.
|
||||
Код команды — 0, вся команда — 9 мин 39 с (23:17:58–23:27:37). Образ
|
||||
собран из кэша: это тот же образ `723b6c3`, что и у реплик рабочего
|
||||
стенда. «too many clients» и «administrator command» — следы проверок
|
||||
«Предел соединений PostgreSQL исчерпан» (`fill-connections`) и
|
||||
остановок PostgreSQL, признаков аварийного перезапуска нет. Реплики
|
||||
рабочего стенда до и после прогона те же: `api-25` и `api-26`, старт в
|
||||
23:15. Контейнеров, volumes и сети проекта `mtusi-lab4-failures` после
|
||||
прогона нет, docker volumes — 155.
|
||||
|
||||
## Прежний снимок: `84f8c35`, 48 из 48
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
- Спек `student-tests`: «Прогон на временной базе» (уборка префикса
|
||||
`test_<db>/`, «Хвост прошлого прогона», «Сохранить базу для разбора»).
|
||||
Design change `s3-storage`, решение 9 и «Уточнения apply», п. 11.
|
||||
- Раздел 0 — пересъёмка после change `track2-reconciler` (зелёная).
|
||||
- Раздел 0 — пересъёмка после change `fix-upload-put-flake` (зелёная).
|
||||
Разделы 1–3 сняты на `f57635a` (change `s3-storage`): механизм уборки с
|
||||
тех пор не менялся (`student-tests/run_isolated.py`), а красное в них —
|
||||
ожидаемое до `attachments`, как сказано ниже. Прежние снимки раздела
|
||||
@@ -11,22 +11,29 @@
|
||||
deselected; `5b42bd2` — 192 passed, 5 skipped, 29 deselected, сверка
|
||||
212 / 33; `87c48b9` — 192 passed, 5 skipped, 32 deselected, сверка 215
|
||||
/ 36; `ce1ae2c` (change `upload-memory`) — 193 passed, 5 skipped, 37
|
||||
deselected, сверка 227 / 210 / 45 / 17.
|
||||
deselected, сверка 227 / 210 / 45 / 17; `c1648d9` (change
|
||||
`track2-reconciler`) — 193 passed, 5 skipped, 45 deselected, сверка
|
||||
240 / 223 / 58 / 17.
|
||||
|
||||
## 0. Пересъёмка: код 0 (change `track2-reconciler`)
|
||||
## 0. Пересъёмка: код 0 (change `fix-upload-put-flake`)
|
||||
|
||||
- Дата: 2026-10-22, 16:55:37–16:57:28 UTC.
|
||||
- Commit: `c1648d9`; рабочее дерево — только незакоммиченные файлы
|
||||
`evidence/`, образ собирается из дерева, код совпадает с commit.
|
||||
- Что изменилось: восемь новых проверок отказов сверки (`deselected` 45
|
||||
вместо 37) и 13 новых сценариев спеков, покрытых ими (сверка 240 / 223 /
|
||||
58 / 17); тестов вне `fault` столько же. Миграции временной базы — с
|
||||
ревизией `5c3e1f0a9b7d` (`lost_at`). Перед прогоном `start_s3` запускает
|
||||
bootstrap: политика уборщика со списком по префиксу (строка «cleaner key
|
||||
get/delete and list messenger/attachments/»). Объекты `test_messenger/`
|
||||
сверка рабочего стенда не видит: её список — только
|
||||
`messenger/attachments/`.
|
||||
- Стенд: рабочий `mtusi-lab4` (с уборщиком `cleaner`); временная база
|
||||
- Дата: 2026-10-22, 23:15:18–23:17:11 UTC.
|
||||
- Commit: `723b6c3`, рабочее дерево чистое (до записи этого файла). Код
|
||||
приложения отличается от `b5983f0` (правка `read_timeout=None`) только
|
||||
комментарием в `src/infra/s3/client.py`.
|
||||
- Что изменилось с `c1648d9`:
|
||||
- клиент S3 без срока чтения aiohttp;
|
||||
- новая проверка отказов `test_upload_after_idle_s3` и 4 сценария спеков,
|
||||
покрытые проверками отказов (`deselected` 49 вместо 45, сверка
|
||||
244 / 227 / 62 / 17);
|
||||
- тестов вне `fault` столько же — 193 и 5 пропусков.
|
||||
- Перед прогоном `start_s3` запускает bootstrap: политика уборщика со
|
||||
списком по префиксу (строка «cleaner key get/delete and list
|
||||
messenger/attachments/»). Объекты `test_messenger/` сверка рабочего
|
||||
стенда не видит: её список — только `messenger/attachments/`.
|
||||
- Стенд: рабочий `mtusi-lab4` (с уборщиком `cleaner`), реплики `api-25`,
|
||||
`api-26` и уборщик — на образе `723b6c3` (`make rolling_update
|
||||
APP_OUT_PORT=8090`, `docker compose up -d --no-deps cleaner`); временная база
|
||||
`test_messenger`, один контейнер API `mtusi-lab4-test-api` на
|
||||
`127.0.0.1:18088` без LB (`EXPECT_REPLICAS=1`), Valkey и S3 стенда
|
||||
общие. Контейнер запущен `docker compose run` сервиса `api`, поэтому
|
||||
@@ -51,13 +58,13 @@ $ make test_isolated
|
||||
[test_isolated] make test
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
[test_isolated] make student_test
|
||||
coverage: 240 scenarios in 13 specs, 223 tested (58 by make failure_checks), 17 excluded
|
||||
coverage: 244 scenarios in 13 specs, 227 tested (62 by make failure_checks), 17 excluded
|
||||
SKIPPED [1] student-tests/test_attachments.py:701: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_idempotency.py:372: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_load_balancing.py:18: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_load_balancing.py:34: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
SKIPPED [1] student-tests/test_race.py:169: one API process (EXPECT_REPLICAS=1): replica checks need the stand with the load balancer
|
||||
=========== 193 passed, 5 skipped, 45 deselected in 97.87s (0:01:37) ===========
|
||||
=========== 193 passed, 5 skipped, 49 deselected in 99.24s (0:01:39) ===========
|
||||
[test_isolated] cleanup
|
||||
[test_isolated] remove objects /buckets/messenger/test_messenger/
|
||||
[test_isolated] results: {'test': 0, 'student_test': 0}
|
||||
|
||||
Reference in New Issue
Block a user