Implement ACTIVITY-WP-0021 production automation reliability
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 47s

Root-cause IssueSink 503 (dead Forgejo PAT on issue-core), add state-hub
task sink path B, log runs before emit, harden sync_schedules, deterministic
SBOM/triage reports, DB probe thrash fix, and prod automation-status helper.
This commit is contained in:
tegwick 2026-07-21 04:21:55 +02:00
parent 1209ff6973
commit 98e8aa83bd
15 changed files with 638 additions and 63 deletions

View file

@ -11,11 +11,18 @@ from activity_core.rules.models import TaskRef, TaskSpec
class DummyResponse:
def __init__(self, payload: dict[str, Any]) -> None:
def __init__(self, payload: dict[str, Any], status_code: int = 200) -> None:
self.payload = payload
self.status_code = status_code
self.text = ""
def raise_for_status(self) -> None:
return None
if self.status_code >= 400:
raise httpx.HTTPStatusError(
"error",
request=httpx.Request("POST", "http://issue-core.test/issues/"),
response=httpx.Response(self.status_code),
)
def json(self) -> dict[str, Any]:
return self.payload