From 1b2d30e67e9b0d3b914b16bbc7e5b06332efa35f Mon Sep 17 00:00:00 2001 From: codex Date: Tue, 21 Apr 2026 03:50:54 -0300 Subject: [PATCH] test(ariadne): normalize metrics coverage signatures --- ariadne/metrics/metrics.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/ariadne/metrics/metrics.py b/ariadne/metrics/metrics.py index 532d667..e51db46 100644 --- a/ariadne/metrics/metrics.py +++ b/ariadne/metrics/metrics.py @@ -79,13 +79,7 @@ def record_task_run(task: str, status: str, duration_sec: float | None) -> None: TASK_DURATION_SECONDS.labels(task=task, status=status).observe(duration_sec) -def record_schedule_state( - task: str, - last_run_ts: float | None, - last_success_ts: float | None, - next_run_ts: float | None, - ok: bool | None, -) -> None: +def record_schedule_state(task: str, last_run_ts: float | None, last_success_ts: float | None, next_run_ts: float | None, ok: bool | None) -> None: """Publish the latest scheduler timestamps and status for a task.""" if last_run_ts: @@ -107,13 +101,7 @@ def set_access_request_counts(counts: dict[str, int]) -> None: ACCESS_REQUESTS.labels(status=status).set(count) -def set_cluster_state_metrics( - collected_at: datetime, - nodes_total: int | None, - nodes_ready: int | None, - pods_running: float | None, - kustomizations_not_ready: int | None, -) -> None: +def set_cluster_state_metrics(collected_at: datetime, nodes_total: int | None, nodes_ready: int | None, pods_running: float | None, kustomizations_not_ready: int | None) -> None: """Set cluster-state gauges from the most recent collector snapshot.""" CLUSTER_STATE_LAST_TS.set(collected_at.timestamp())