fix(agent): classify gitea sustained load pressure
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m10s
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-01 08:50:01 +08:00
parent 0207ccde25
commit c095a5db4f
7 changed files with 117 additions and 5 deletions

View File

@@ -1515,6 +1515,21 @@ def _build_host_sustained_load_controlled_automation_readback() -> dict[str, Any
"destructive_prune",
],
},
{
"class_id": "gitea_queue_or_hook_backlog",
"alertnames": ["HostLoadAverageSustainedHigh"],
"classifier": "host-sustained-load-controller.py:blocked_gitea_queue_or_hook_backlog_requires_playbook",
"controlled_action": "run sanitized evidence collector, then use Gitea queue/hook backlog playbook in check-mode",
"controlled_apply_allowed": False,
"post_apply_verifier": "host-sustained-load-evidence.py readback plus Gitea queue/load verifier",
"rollback": "source-specific rollback required before apply; no generic runner restore",
"forbidden_actions": [
"gitea_container_restart_without_playbook",
"legacy_runner_restore",
"generic_runner_label_restore",
"warn_only_pressure_gate",
],
},
{
"class_id": "unknown_sustained_load",
"alertnames": ["HostLoadAverageSustainedHigh"],