Skip to content

feat: flag unreachable Slack DM contacts, filter checks by group, quieter tlsedge log - #860

Merged
fclairamb merged 58 commits into
mainfrom
feat/todos-2026-11-12
Nov 12, 2026
Merged

fclairamb merged 58 commits into
mainfrom
feat/todos-2026-11-12

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Pod logs review (fclairamb/solidping-business#71): the tlsedge refusal of an unknown host is now logged at DEBUG instead of WARN.
  • Slack DM contacts that Slack rejects as unreachable (channel_not_found, user_not_found…) are flagged (migration 034, API deliveryFailedAt/deliveryFailureCode, badge in the account notifications page); repeat failures log at DEBUG, success or re-link clears the flag. The route stays enabled.
  • Checks list (fclairamb/solidping-business#72): filter on one check group (?group=<slug|none>, facet, click on a group name), combined with the other filters.

Closes fclairamb/solidping-business#71
Closes fclairamb/solidping-business#72

Operator action: the Postgres migration 034 runs at the next release (additive nullable columns).

Decided by autopilot

  • Spec 07, Q1: flag only and keep trying, do not disable the route (recommended answer).
  • Spec 07, Q2: no email notification (recommended answer).
  • Spec 08, Q1: group filter combines (AND) with the other filters (recommended answer).
  • Spec 08, Q2: single group only (recommended answer).

🤖 Generated with Claude Code

fclairamb and others added 30 commits November 11, 2026 23:18
…an unhandled rejection (fclairamb/solidping-business#65)

Saving a status page with a slug the server rejects (400 VALIDATION_ERROR,
e.g. a UUID-shaped slug) gave no feedback: StatusPageForm.handleSubmit
(web/dash0/src/components/shared/status-page-form.tsx) awaited onSubmit with
no catch, so the ApiError became an unhandled rejection. The form now catches
it, shows the `slug` field message under the field and toasts the error
(silent on a refused demo write, which client.ts already toasts). Covers both
the create and edit routes. status-page-form.test.tsx fails before the fix.

Closes fclairamb/solidping-business#65

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ow (fclairamb/solidping-business#64)

Switching the dashboard header to 7 days or 30 days changed the availability
tile and banner but the "Checks at a glance" strips kept showing the last 24
hourly cells: dashboard-page.tsx hard-coded UPTIME_HOURS = 24 and a 3600 s
bucket. The strips now use glanceStripWindow() (24h: 24 x 1 h, 7d: 28 x 6 h,
30d: 30 x 1 day, aligned like the server's cells), and the cell tooltips show
the date for wider cells. glance-strip-window.test.ts guards the geometry.

Closes fclairamb/solidping-business#64

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ping-business#68)

The Recent Results card on a check page could only be filtered by region, so
finding the one failed run among dozens of successes meant scrolling. A
"Failures" toggle next to the region chips now lists only failed runs, via the
results endpoint's existing `status=down` filter (down, timeout, error). The
choice lives in the URL (`resultStatus=down`) like the region, and an empty
filtered table says no run failed. useResults gained the `status` option;
hooks.results-status.test.tsx fails before the change.

Closes fclairamb/solidping-business#68

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…never carry (fclairamb/solidping-business#63)

An operator with a WhatsApp contact next to a working route got a WARN
"cannot be delivered over this contact type; skipping route" on every
watchdog alert, right next to its "delivered" line (opsnotify/deliver.go
dispatchRoute default branch). The skip is a fixed fact of the
configuration, so it now logs at DEBUG; a recipient whose routes are ALL of
that kind still gets the "undeliverable" WARN, which now names the skipped
contact types. TestDeliverSkippedRouteNextToADeliveredOneIsNotAWarning and
the tightened TestDeliverSkipsWhatsApp fail before the change.

Refs fclairamb/solidping-business#63

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sign-in

Specs for fclairamb/solidping-business#63 (lease expiry under slow database
round-trips stalling a remote region), #66 (demo sessions end after one hour)
and #67 (Telegram as a sign-in provider).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…urable margin

A remote region with slow database round-trips could outlive its check-job
lease (period + 30s): a peer re-claimed the job, the check ran twice and the
first worker's release failed with 'job may have been claimed by another
worker' (fclairamb/solidping-business#63).

- The lease is now max(scheduled_at, now) + max(period, check timeout) +
  margin, the clock read per row so a slow claim transaction does not eat it.
  The margin defaults to 30s and is set per deployment with
  SP_CHECKERS_LEASE_MARGIN.
- New metrics by region: solidping_check_lease_held_seconds (claim to
  release) and solidping_check_lease_lost_total. A lost lease logs a WARN
  'Check lease lost' with lease_expires_at, missed_by, period and timeout.
- A claim that times out (driver i/o timeout, context deadline) is a WARN
  'Claim timed out: retrying after back-off' counted under
  solidping_claim_jobs_result_total{outcome="timeout"}, no longer an ERROR.
- Runbook and configuration docs describe the knob.

Closes fclairamb/solidping-business#63

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A rejected refresh on a demo session (server cap of one hour) now signs in
again with the public demo credential and shows a toast, instead of
redirecting to login?session_expired=true. Falls back to the redirect if the
re-login fails.

Closes fclairamb/solidping-business#66

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GET /api/v1/auth/telegram/login redirects to oauth.telegram.org; the callback
moves the fragment result into the query (hash-pinned bridge page), verifies
the HMAC with the bot token, refuses an auth_date older than 5 minutes and
signs in only the user who linked that Telegram account as a verified
notification contact. No account is created. Off unless
SP_TELEGRAM_LOGIN_ENABLED=true (the bot's domain must be set with @Botfather
/setdomain first). Login audit method: telegram.

Closes fclairamb/solidping-business#67

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Telegram brand icon for the provider grid (data-testid login-oauth-telegram),
a Telegram label for the sessions page, and /register leaves Telegram out:
it signs in linked accounts only and never creates one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A demo session should not be renewed more often than any other session, so
the client-side re-login on a rejected demo refresh is removed.

This reverts commit c305ba1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ls) (#849)

Stacked on #848: merge it first.

Races IPv6 and IPv4 in the enforcing egress dialer (second family starts
after 300 ms or on first failure), so dual-stack targets with a lossy
IPv6 path no longer time out.

Not done (needs a spec): degraded status when only one family fails,
reporting the answering family, v4/v6 sub-probes.

Closes fclairamb/solidping-business#69

Co-authored-by: Claude Opus 5.5 <[email protected]>
…ck family (fclairamb/solidping-business#69)

The Happy Eyeballs race (0c5ccaf) keeps a lossy IPv6 path from making a
dual-stack target look down; this spec restores the lost signal as a warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ack family

Observe each connect attempt per family (httptrace); when the first family
failed, or stayed silent for 1 s, while the other connected, the HTTP and
Prometheus checks return a warning with output.ip_fallback and a message.
A failure keeps its status; a pinned family never warns. Shown in the
dashboard (result-ip-fallback) and documented.

Closes fclairamb/solidping-business#69

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb and others added 8 commits November 12, 2026 15:47
… config paths

Remove an unreachable nil check in ReverseIPv6.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
It dials the url of the request body and runs no query, so the sweep
only measured the network wait.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…behind

The old version claims check jobs ahead of their slot and does not release
those leases on SIGTERM, so the recorded check can stay leased by the dead
worker until scheduled_at + period + 30s (~150s after its last result) before
HEAD may run it. The 90s window raced that lease; once acme.com started
hanging (2026-11-12) the timing shifted and every leg failed, on main too.

Same assertion, same check: only the window grows to 180s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…olidping-business#71)

Every TLS handshake for a host the instance does not own logged a WARN,
and nearly all of them come from internet scanners probing the node IP
with random SNI names, so the line grew with the scanning rate and
drowned real warnings (server/internal/tlsedge/edge.go:457). It is now
DEBUG; the WARN for a demoted host served from its stored certificate
stays. TestRefusedUnknownHostLogsAtDebug fails before the fix.

Refs fclairamb/solidping-business#71
@fclairamb fclairamb added the frozen Batch PR under review: takes only its own fixes, new work goes to the next batch label Nov 12, 2026
fclairamb and others added 4 commits November 12, 2026 22:51
Closes fclairamb/solidping-business#71

Typed Slack APIError, delivery_failed_at/delivery_failure_code on
user_contacts (migration 034), quieter repeat logging, API fields and a
dash0 warning badge.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.17647% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.93%. Comparing base (ec59bd9) to head (5dcd732).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rver/internal/jobs/jobtypes/job_escalation_step.go 78.26% 5 Missing ⚠️
...ver/internal/handlers/usernotifications/service.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #860      +/-   ##
==========================================
+ Coverage   89.90%   89.93%   +0.02%     
==========================================
  Files        1360     1360              
  Lines      139969   140031      +62     
==========================================
+ Hits       125843   125934      +91     
+ Misses      14117    14088      -29     
  Partials        9        9              
Files with missing lines Coverage Δ
server/internal/db/dbcontract/notifications.go 100.00% <100.00%> (ø)
server/internal/db/models/user_contact.go 100.00% <ø> (ø)
server/internal/db/postgres/user_contact.go 97.00% <100.00%> (+0.19%) ⬆️
server/internal/db/sqlite/user_contact.go 98.00% <100.00%> (+0.12%) ⬆️
server/internal/integrations/slack/client.go 91.86% <100.00%> (+0.20%) ⬆️
server/internal/tlsedge/edge.go 91.08% <100.00%> (ø)
...ver/internal/handlers/usernotifications/service.go 91.30% <66.66%> (-0.24%) ⬇️
...rver/internal/jobs/jobtypes/job_escalation_step.go 89.03% <78.26%> (+0.28%) ⬆️

... and 20 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb and others added 4 commits November 12, 2026 23:12
Adds ?group=<slug|none>, a Group facet and a clickable group header name.
Combines (AND) with the other filters; unknown slug shows an empty state.

Closes fclairamb/solidping-business#72

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Strengthen the status+group e2e test: seeds a down check in the group, an up
check in it and a down check outside, and asserts only the first is shown.
A groups-query error renders QueryErrorView before the unknown-group state,
so no change was needed there.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb added autorelease implemented Every spec of the PR is implemented and its batch gate was green labels Nov 12, 2026
@fclairamb fclairamb changed the title fix: batch 2026-11-12 (tlsedge log level, specs for Slack DM flag and check group filter) feat: flag unreachable Slack DM contacts, filter checks by group, quieter tlsedge log Nov 12, 2026
@fclairamb
fclairamb merged commit 8c8cda0 into main Nov 12, 2026
35 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-12 branch November 12, 2026 23:04
fclairamb added a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.49.0](v0.48.0...v0.49.0)
(2026-11-12)


### Features

* **checks:** email check validates SPF/DKIM/DMARC and blocklists
([#854](#854))
([25673c7](25673c7))
* flag unreachable Slack DM contacts, filter checks by group, quieter
tlsedge log ([#860](#860))
([8c8cda0](8c8cda0))


### Bug Fixes

* **deps:** update module github.com/prometheus/common to v0.74.0
([#856](#856))
([6659341](6659341))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot autorelease frozen Batch PR under review: takes only its own fixes, new work goes to the next batch implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant