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:
co-authored by
Claude Opus 5.5
parent
b568fcf9c9
commit
b9d28d190e
+8
-1
@@ -3,6 +3,12 @@ set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
COMPOSE=${COMPOSE:-docker compose}
|
||||
service=${BROKER_SERVICE:-broker}
|
||||
dlq() {
|
||||
$COMPOSE exec -T "$service" sh -c 'RABBITMQADMIN_USERNAME=messenger-ops \
|
||||
RABBITMQADMIN_PASSWORD="$(cat /run/secrets/rabbitmq_ops_password)" \
|
||||
exec rabbitmqadmin --non-interactive -V messenger get messages \
|
||||
-q attachments.process.dlq -c "$1" -a ack_requeue_true' sh "${1:-10}"
|
||||
}
|
||||
queues() {
|
||||
$COMPOSE exec -T "$service" rabbitmqctl -q list_queues -p messenger \
|
||||
name type messages_ready messages_unacknowledged consumers
|
||||
@@ -10,5 +16,6 @@ queues() {
|
||||
case "${1:-}" in
|
||||
restart) $COMPOSE restart -t 20 "$service" && $COMPOSE up -d --no-deps --no-recreate --wait --wait-timeout 90 "$service" ;;
|
||||
queues) queues ;;
|
||||
*) echo "usage: $0 restart|queues" >&2; exit 2 ;;
|
||||
dlq) dlq "${2:-10}" ;;
|
||||
*) echo "usage: $0 restart|queues|dlq [count]" >&2; exit 2 ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user