Commit Graph

5 Commits

Author SHA1 Message Date
pulse-triage[bot]
57cb1a83bf fix(alerts): report clearing observation in metric recovery
Receiver-level PBS lifecycle checks reproduced resolved payloads retaining 50% firing usage after measurements fell to 9.765625% or zero. Clone and refresh the canonical metric snapshot before recording recovery so resolved callbacks and recent history carry the clearing value, message and observation time without changing incident identity.

Validated both PBS cases with three repeated integration runs and a race-enabled run, plus focused canonical metric, history, missing telemetry, resolved notification, receipt and queue restart tests. This is local synthetic receiver proof, not installed or off-host qualification.

Change-source: pulse-maintainer
2026-09-05 19:41:25 +01:00
pulse-triage[bot]
6ed8c05c6b test(pbs): cover malformed metrics through webhook recovery lifecycle
Client validation already rejects malformed measurements, but its negative CPU, zero capacity and wrong-type paths lacked real-poller webhook coverage. Assert they preserve the incident and do not fabricate recovery, while both low usage and measured zero resolve exactly once. This is synthetic local regression proof, not installed or off-host qualification.

Change-source: pulse-maintainer
2026-09-05 18:50:47 +01:00
pulse-triage[bot]
3d984b0226 fix(pbs): reject incomplete alerting measurements
Reproduced a false resolved webhook when HTTP-success status contained memory total but omitted used. Require present CPU and memory measurements before marking node metrics available, retaining genuine zero and unrelated-field compatibility. Extend client and real-poller webhook regression coverage and monitoring contract.

Change-source: pulse-maintainer
2026-09-05 18:04:21 +01:00
pulse-triage[bot]
31f1f1933a fix(pbs): reject absent node status instead of resolving alerts
A successful response containing null or omitted data decoded into zero-valued node metrics. Repeated polls could therefore clear an active memory incident without any usable recovery evidence. Decode the status through a pointer and reject absent data so existing unavailable-metric handling preserves the incident.

Reproduced the failure through the real poller and notification queue with a local webhook. Added absent-envelope client cases and extended lifecycle coverage to assert unavailable metrics, stable incident identity, and genuine recovery. Focused client and monitoring tests pass three repetitions under the race detector; this is not installed or off-host qualification.

Change-source: pulse-maintainer
2026-09-05 17:50:07 +01:00
pulse-triage[bot]
a815f8bb02 test(monitoring): verify PBS partial metrics through webhook delivery
Callback-only PBS lifecycle coverage cannot detect broken monitor wiring or notification queue delivery. Exercise the real poller and production callbacks through a local receiver, requiring a successful firing audit before recovery and retaining incident identity during node endpoint failures.

Change-source: pulse-maintainer
2026-09-05 17:35:27 +01:00