Commit Graph

7 Commits

Author SHA1 Message Date
rcourtman
2d380af658 test(monitoring): await the accepted startup notification
A blocked webhook can dead-letter both the persisted notification and the
delivery-health alert it raises. Counting exactly one dead-letter entry
makes the bootstrap-policy test depend on polling timing.

Wait for the seeded notification's identity and expected delivery outcome.
Keep the installation-policy denial and actual provider receipt assertions.
2026-11-02 08:33:58 +00:00
pulse-triage[bot]
f6c32ed5ad Checkpoint buffered firing groups across graceful restarts
Keep accepted warnings as delayed queue batches when stopping, preserving the first grouping deadline and later quiet-hours hold without immediate sends. Serialize the buffer handoff with resolution and operator policy, and retain ordinary destination snapshots, cancellation, retries and delivery receipts. Exercise actual warning production, SIGTERM process restart, manager reload and matching recovery through scoped loopback receivers.

Fixes #3671

Change-source: pulse-maintainer
2026-11-01 03:07:09 +00:00
rcourtman
5d11f80d7d fix(notifications): preserve queued work through restart
Keep delivery permission and SQLite available until queue workers,
admitted writes and direct fallback sends finish. Leave unclaimed rows
pending so restart and reload retain delivery work and firing receipts.

Restore shared webhook policy before persistent work is activated, including
tenant queues. Reject unreadable policy before queue creation and preserve
deployment URL locks when restoring saved installation settings.

Cover admission, concurrent stops, operator pause, channel disable,
direct fallback, restart recovery and bootstrap policy with persistent tests.
Keep API coverage of later policy replacement and revocation.
2026-11-01 01:43:21 +00:00
pulse-triage[bot]
8f42497b8f Keep delayed alert recovery scoped to its resolved occurrence
Capture the resolved alert before asynchronous callbacks and carry its start/end identity through monitor recovery. Cancel only that occurrence in grouping, cooldown and persistent firing rows, retaining newer incidents, operational links, destination receipts and failed attempts. Keep the explicit identifier-wide cancellation API and legacy callback IDs. Add snapshot, restart and connected queue-to-HTTP regression controls.

Change-source: pulse-maintainer
2026-10-03 01:16:42 +01:00
pulse-triage[bot]
5213b794b2 Revalidate queued alert delivery against current quiet hours
Keep continuous and late replay held without spending a provider attempt. Split mixed batches atomically so eligible alerts retain admitted destinations, occurrence links and retry budgets, and bind saved monitor policy before activating persisted work. Add local receipt, cancellation, rollback, reconstruction and race regression coverage with the owning contracts and verification routes.

Change-source: pulse-maintainer
2026-10-01 23:05:07 +01:00
pulse-triage[bot]
f47472b817 test(notifications): cover receiver settings at monitor startup
Verify saved email and HTTP Apprise receiver configuration through the real constructor alongside routing intent, without transport calls or reapplying setters.

Change-source: pulse-maintainer
2026-09-08 10:42:33 +01:00
pulse-triage[bot]
2a43c51815 test(notifications): verify saved choices at monitor startup
Exercise the production monitor constructor twice from persisted routing, resolve, activation and webhook filtering choices without reapplying notification setters. Document that constructor restoration does not establish browser saving, process restart or destination delivery.

Change-source: pulse-maintainer
2026-09-08 10:28:43 +01:00