Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Quiesce exhausted convergence retries
pulse-triage[bot]afa66ec69b1f
diff --git a/scripts/release_control/reconcile_release_convergence.py b/scripts/release_control/reconcile_release_convergence.pyindex 2e06705cef..a7869a732b 100644--- a/scripts/release_control/reconcile_release_convergence.py+++ b/scripts/release_control/reconcile_release_convergence.py@@ -558,19 +558,6 @@ def reconcile(github: GitHub, run_id: int, max_attempts: int) -> None:)return- # A new control revision is itself a repair candidate. Bound churn for the- # exact revision without allowing failures from superseded controls to make- # current controls permanently unretriable.- attempts = sum(- positive_int(item.get("run_attempt"), "run attempt")- for item in matching_runs- if item.get("head_sha") == run.get("head_sha")- )- if attempts >= max_attempts:- raise ReconciliationError(- f"{title} still has convergence debt after {attempts} attempts"- )-with tempfile.TemporaryDirectory(prefix="release-convergence-") as raw:marker = github.download_marker(tag, Path(raw))owner_run_id = validate_marker(@@ -591,6 +578,21 @@ def reconcile(github: GitHub, run_id: int, max_attempts: int) -> None:if not isinstance(default_commit, str) or EXACT_SHA.fullmatch(default_commit) is None:raise ReconciliationError("default branch did not resolve to an exact commit")if run.get("head_sha") == default_commit:+ # Exhaustion is a terminal state of the retry policy, not a failure of+ # the reconciler itself. The failed convergence run remains the durable+ # debt signal; scheduled reconciliation must not recreate the same+ # operational failure forever.+ attempts = sum(+ positive_int(item.get("run_attempt"), "run attempt")+ for item in matching_runs+ if item.get("head_sha") == run.get("head_sha")+ )+ if attempts >= max_attempts:+ print(+ f"{title} remains failed after the {attempts}-attempt retry budget; "+ "no unchanged-control retry was dispatched."+ )+ returngithub.post(f"repos/{repository}/actions/runs/{run_id}/rerun")print(f"Re-ran current-control convergence {run_id} for committed {tag}.")returndiff --git a/scripts/release_control/reconcile_release_convergence_test.py b/scripts/release_control/reconcile_release_convergence_test.pyindex 7bf947df56..064de4685f 100644--- a/scripts/release_control/reconcile_release_convergence_test.py+++ b/scripts/release_control/reconcile_release_convergence_test.py@@ -2,6 +2,8 @@from __future__ import annotations+import contextlib+import ioimport unittestimport reconcile_release_convergence as subject@@ -455,13 +457,26 @@ class ReconciliationTests(unittest.TestCase):subject.reconcile(github, github.run_id, 5)self.assertEqual([], github.posts)- def test_attempt_budget_counts_distinct_runs_and_reruns(self):- github = FakeGitHub()+ def test_exhausted_current_controls_are_a_stable_noop(self):+ github = FakeGitHub(current_controls=True)github.runs[0]["run_attempt"] = 3github.runs.append(github.run(101, github.old_sha, attempt=2))- with self.assertRaisesRegex(subject.ReconciliationError, "after 5 attempts"):+ output = io.StringIO()+ with contextlib.redirect_stdout(output):subject.reconcile(github, 101, 5)self.assertEqual([], github.posts)+ self.assertIn(+ "remains failed after the 5-attempt retry budget", output.getvalue()+ )++ def test_repaired_controls_rearm_exhausted_stale_debt(self):+ github = FakeGitHub()+ github.runs[0]["run_attempt"] = 5+ subject.reconcile(github, github.run_id, 5)+ self.assertEqual(1, len(github.posts))+ endpoint, payload = github.posts[0]+ self.assertTrue(endpoint.endswith("release-convergence.yml/dispatches"))+ self.assertEqual("main", payload["ref"])def test_attempt_budget_resets_for_repaired_controls(self):github = FakeGitHub()