docs: record pipeline-reliability evidence and report
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+25
-40
@@ -1,18 +1,25 @@
|
||||
# Процесс worker
|
||||
|
||||
- Команда: `python3 .claude/skills/run-mtusi-messenger/driver.py --port 8080 worker-process`
|
||||
- Дата: 2026-10-31, 03:58 UTC; код выхода 0
|
||||
- Commit: `ff1a83b`, рабочее дерево без правок кода (на момент прогона добавлены только файлы `evidence/`)
|
||||
- Дата: 2026-10-31, 13:25:24–13:26:05 UTC; код выхода 0
|
||||
- Commit: `e2a6427` (ветка `feat/pipeline-reliability`), рабочее дерево без правок кода (добавлены только файлы `evidence/`)
|
||||
- Стенд: проект compose `mtusi-lab5`, собран `make run_docker` из `HEAD`
|
||||
- Спеки: `container-run`, `container-image`, `graceful-shutdown`, `service-configuration`
|
||||
- Что показано: PID 1, нет healthcheck, лимиты 1 CPU / 1 ГБ; `_imaging` нет в процессах реплик API; неверные `WORKER__*` — код 2, запись называет поле без значения; значения по умолчанию и подмена окружением; остановка простаивающего и на старте; «Worker переживает рестарт хранилищ»
|
||||
- Что показано: PID 1, нет healthcheck, лимиты 1 CPU / 1 ГБ; `_imaging` нет ни в репликах API, ни в процессе 1 worker: декодер только в процессе обработки; неверные `WORKER__*` — код 2, запись называет поле без значения; значения по умолчанию и подмена окружением; остановка простаивающего и на старте; «Worker переживает рестарт хранилищ»
|
||||
- Вывод сокращён: однотипные строки таблицы «record names …», «names the field», «hides the value» и «early stop» свёрнуты, все совпали с ожидаемым
|
||||
|
||||
```text
|
||||
Started worker:
|
||||
concurrency: 2
|
||||
prefetch: 2
|
||||
max_attempts: 5
|
||||
job_timeout_seconds: 60
|
||||
retry_delay_seconds: 10
|
||||
lease_margin_seconds: 10
|
||||
retry_base_delay_seconds: 5
|
||||
retry_max_delay_seconds: 300
|
||||
render_timeout_seconds: 40
|
||||
render_cpu_limit_seconds: 15
|
||||
render_memory_limit_mib: 450
|
||||
graceful_shutdown_seconds: 8
|
||||
reconnect_seconds: 2
|
||||
broker_host: rabbitmq
|
||||
@@ -26,37 +33,25 @@ Started worker:
|
||||
database_name: messenger
|
||||
database_pool_size: 2
|
||||
WORKER__CONCURRENCY=0: exit 2, errors [{'loc': 'worker.concurrency', 'msg': 'Input should be greater than or equal to 1'}]
|
||||
WORKER__PREFETCH=0: exit 2, errors [{'loc': 'worker.prefetch', 'msg': 'Input should be greater than or equal to 1'}]
|
||||
WORKER__MAX_ATTEMPTS=abc: exit 2, errors [{'loc': 'worker.max_attempts', 'msg': 'Input should be a valid integer, unable to parse string as an integer'}]
|
||||
WORKER__GRACEFUL_SHUTDOWN_SECONDS=10: exit 2, errors [{'loc': 'worker.graceful_shutdown_seconds', 'msg': 'Input should be less than or equal to 9'}]
|
||||
WORKER__GRACEFUL_SHUTDOWN_SECONDS=9: exit 2, errors [{'loc': 'worker.graceful_shutdown_seconds', 'msg': 'Input should be less than or equal to 8'}]
|
||||
WORKER__RENDER_MEMORY_LIMIT_MIB=0: exit 2, errors [{'loc': 'worker.render_memory_limit_mib', 'msg': 'Input should be greater than or equal to 1'}]
|
||||
WORKER__RENDER_TIMEOUT_SECONDS=120: exit 2, errors [{'loc': 'worker.render_timeout_seconds', 'msg': 'Value error, must be less than job_timeout_seconds'}]
|
||||
docker compose stop worker: 0.2 s
|
||||
docker stop after 0.3 s: 0.05 s, exit 0, records ['Stopped worker before startup']
|
||||
docker stop after 0.2 s: 0.05 s, exit 0, records ['Stopped worker before startup']
|
||||
docker stop after 0.4 s: 0.05 s, exit 0, records ['Stopped worker before startup']
|
||||
docker stop after 0.3 s: 0.07 s, exit 0, records ['Stopped worker before startup']
|
||||
docker stop after 0.2 s: 0.06 s, exit 0, records ['Stopped worker before startup']
|
||||
docker stop after 0.4 s: 0.07 s, exit 0, records ['Stopped worker before startup']
|
||||
PID 1 of the worker expected python -m src.worker got python -m src.worker
|
||||
healthcheck expected NONE got NONE
|
||||
limit NanoCpus expected 1000000000 got 1000000000
|
||||
limit Memory expected 1073741824 got 1073741824
|
||||
_imaging in mtusi-lab5-api-1 expected no got no
|
||||
_imaging in mtusi-lab5-api-2 expected no got no
|
||||
API replicas checked expected yes got yes
|
||||
_imaging in mtusi-lab5-api-10 expected no got no
|
||||
_imaging in mtusi-lab5-api-9 expected no got no
|
||||
_imaging in PID 1 of the worker expected no got no
|
||||
Pillow in the image = uv.lock expected 13.0.0 got 13.0.0
|
||||
'Started worker' record expected yes got yes
|
||||
default concurrency expected 2.0 got 2.0
|
||||
default max_attempts expected 5.0 got 5.0
|
||||
default job_timeout_seconds expected 60.0 got 60.0
|
||||
default retry_delay_seconds expected 10.0 got 10.0
|
||||
default graceful_shutdown_seconds expected 8.0 got 8.0
|
||||
default reconnect_seconds expected 2.0 got 2.0
|
||||
WORKER__CONCURRENCY=0 exit code expected 2 got 2
|
||||
WORKER__CONCURRENCY names the field expected yes got yes
|
||||
WORKER__CONCURRENCY hides the value expected yes got yes
|
||||
WORKER__MAX_ATTEMPTS=abc exit code expected 2 got 2
|
||||
WORKER__MAX_ATTEMPTS names the field expected yes got yes
|
||||
WORKER__MAX_ATTEMPTS hides the value expected yes got yes
|
||||
WORKER__GRACEFUL_SHUTDOWN_SECONDS=10 exit code expected 2 got 2
|
||||
WORKER__GRACEFUL_SHUTDOWN_SECONDS names the field expected yes got yes
|
||||
WORKER__GRACEFUL_SHUTDOWN_SECONDS hides the value expected yes got yes
|
||||
env override container started expected 0 got 0
|
||||
'Started worker' record, every field named, defaults as above: expected = got
|
||||
six invalid WORKER__* : exit code 2, names the field, hides the value: expected = got
|
||||
env override concurrency expected 3 got 3
|
||||
env override reconnect_seconds expected 1.0 got 1.0
|
||||
stop idle: command exit code expected 0 got 0
|
||||
@@ -64,18 +59,8 @@ stop idle: container exit code expected 0 got 0
|
||||
stop idle: under 10 s expected yes got yes
|
||||
stop idle: last record expected Stopped worker got Stopped worker
|
||||
stop idle: record exit_code expected 0 got 0
|
||||
docker compose start worker expected 0 got 0
|
||||
early stop 0.3 s: docker stop expected 0 got 0
|
||||
early stop 0.3 s: exit code expected 0 got 0
|
||||
early stop 0.3 s: within 1 s expected yes got yes
|
||||
early stop 0.2 s: docker stop expected 0 got 0
|
||||
early stop 0.2 s: exit code expected 0 got 0
|
||||
early stop 0.2 s: within 1 s expected yes got yes
|
||||
early stop 0.4 s: docker stop expected 0 got 0
|
||||
early stop 0.4 s: exit code expected 0 got 0
|
||||
early stop 0.4 s: within 1 s expected yes got yes
|
||||
early stop 0.2, 0.3, 0.4 s: docker stop 0, exit code 0, within 1 s: expected = got
|
||||
'Stopped worker before startup' seen expected yes got yes
|
||||
worker running before restart expected yes got yes
|
||||
scripts/restart.sh expected 0 got 0
|
||||
LB ready after restart expected yes got yes
|
||||
worker StartedAt unchanged expected yes got yes
|
||||
@@ -83,5 +68,5 @@ worker RestartCount expected 0 got 0
|
||||
new upload after restart expected 202 got 202
|
||||
new upload becomes ready expected yes got yes
|
||||
PASS: the worker process matches the spec
|
||||
worker running at the end: yes
|
||||
worker and relay running at the end: yes
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user