forked from mtusi2026/mtusi2026lab5
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
@@ -2,6 +2,7 @@ import argparse
|
||||
import json
|
||||
import os
|
||||
from dataclasses import asdict
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
from uuid import UUID
|
||||
|
||||
@@ -41,5 +42,9 @@ async def run(container: AsyncContainer, argv: list[str]) -> dict[str, Any]:
|
||||
return {"result": result.value, "attachment_id": args.attachment_id, "operator": args.operator}
|
||||
|
||||
|
||||
def plain(value: object) -> str:
|
||||
return value.isoformat() if isinstance(value, datetime) else str(value)
|
||||
|
||||
|
||||
def rendered(report: dict[str, Any]) -> str:
|
||||
return json.dumps(report, default=str, ensure_ascii=False)
|
||||
return json.dumps(report, default=plain, ensure_ascii=False)
|
||||
|
||||
Reference in New Issue
Block a user