Run the level 4 scenarios with one command

make level4 runs the level 3 and level 4 scenarios of the pipeline suite
and the invariants into evidence/level4.json. New scenarios: worker_limits
(a 40 Mpx render under a 0.5 s timeout and a 200 MiB address space fails
with processing_failed while the worker keeps running, then succeeds with
the default limits under the container limit), retry_backoff_jitter
(delays from the job journal stay within [d/2, d] and differ) and
failed_retention (failed staging is kept, removed after the retention,
then replay answers expired). The stalled holder must be fenced and the
republished copy must be a no-op. The faults override passes the stall,
render limits and retention through; the admin CLI is python -m
messenger.admin. make failed, make replay ID=... and make dlq are the
operator entry points; the lab 4 target becomes lab4-level4. CI runs
level4 instead of level3. The registry prints ISO timestamps.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Artyom
2026-10-29 03:19:28 +03:00
co-authored by Claude Opus 5.5
parent b568fcf9c9
commit b9d28d190e
8 changed files with 136 additions and 18 deletions
@@ -32,10 +32,10 @@
## 6. Стенд и обвязка
- [ ] 6.1 `compose.yaml`: переменные рендера, `WORKER_MEMORY` 1g; `.env.example`; `infra/compose.faults.yaml` — `FAULT_STALL_SECONDS`, пределы рендера и retention для сценариев
- [ ] 6.2 `scripts/broker.sh dlq`; цели Makefile `level4`, `replay ID=…`, `failed`, `dlq`, переименование `lab4-level4`
- [ ] 6.3 `scripts/pipeline_suite.py`: CLI `python -m messenger.admin`, сценарии `worker_limits`, `retry_backoff_jitter`, `failed_retention`, задержки в журнале
- [ ] 6.4 CI-job: `make level4` вместо `make level3`
- [x] 6.1 `compose.yaml`: переменные рендера, `WORKER_MEMORY` 1g; `.env.example`; `infra/compose.faults.yaml` — `FAULT_STALL_SECONDS`, пределы рендера и retention для сценариев
- [x] 6.2 `scripts/broker.sh dlq`; цели Makefile `level4`, `replay ID=…`, `failed`, `dlq`, переименование `lab4-level4`
- [x] 6.3 `scripts/pipeline_suite.py`: CLI `python -m messenger.admin`, сценарии `worker_limits`, `retry_backoff_jitter`, `failed_retention`, задержки в журнале
- [x] 6.4 CI-job: `make level4` вместо `make level3`
- [ ] 6.5 Проверка группы: `make up` из пересобранного образа, `make test`, `make suite-preflight`, `make level3`, `make level4`, `make test-persistence ACTION_SCRIPT=scripts/restart.sh`, `make test-failover ACTION_SCRIPT=scripts/stop-one.sh` и `make restore`
## 7. Отчёт