Implement ACTIVITY-WP-0021 production automation reliability
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:
parent
1209ff6973
commit
98e8aa83bd
15 changed files with 638 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue