fix(ops): add gitea pressure check-mode playbook
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 51s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-07-02 12:51:05 +08:00
parent f41f77cfb7
commit 3f8d784698
9 changed files with 734 additions and 7 deletions

View File

@@ -450,6 +450,7 @@ def build_packet(
controlled_apply_command = ""
controller_script = script_dir / "host-sustained-load-controller.py"
evidence_script = script_dir / "host-sustained-load-evidence.py"
gitea_playbook_script = script_dir / "gitea-queue-hook-backlog-playbook.py"
remediation_script = script_dir / "host-runaway-process-remediation.py"
verifier_command = (
f"{controller_script} "
@@ -532,7 +533,7 @@ def build_packet(
else "warning"
)
dry_run_command = (
f"{evidence_script} "
f"{gitea_playbook_script} "
f"--host {host} --metrics-file {DEFAULT_METRICS_FILE} "
f"--docker-stats-file {DEFAULT_DOCKER_STATS_FILE} --json"
)
@@ -558,7 +559,7 @@ def build_packet(
classification = "blocked_gitea_queue_or_hook_backlog_requires_playbook"
severity = "critical" if load5_per_core > load5_per_core_threshold else "warning"
dry_run_command = (
f"{evidence_script} "
f"{gitea_playbook_script} "
f"--host {host} --metrics-file {DEFAULT_METRICS_FILE} "
f"--docker-stats-file {DEFAULT_DOCKER_STATS_FILE} --json"
)