Skip to content

feat: Pingdom check importer, insights period selector, job retry log levels - #904

Merged
fclairamb merged 13 commits into
mainfrom
feat/todos-2026-11-16
Nov 16, 2026
Merged

fclairamb merged 13 commits into
mainfrom
feat/todos-2026-11-16

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Batch of 2026-11-16.

What changed

  • Checks import: new Pingdom source (POST …/checks/import/convert?source=pingdom), from an API token (fetch, 4 parallel detail calls, 401/429 mapped) or pasted JSON. HTTP, TCP, ping, DNS, UDP, SMTP, POP3, IMAP checks are mapped; transaction checks, probe filters and basic auth are skipped with a warning. UI source + token field, i18n (en/fr/de/es), mapping.md section and a "Migrate from Pingdom" docs page.
  • Incident insights: the period selector now uses the dashboard's SegmentedControl.
  • Job worker: a failed job that will be retried logs at WARN (Job failed, will retry). An SMTP 5xx refusing the recipient is now a permanent error, logged at WARN.
  • Batch gate fix: typed secrets stay out of the validate call; the Telegram password is asked before linking.
  • CI fix: the checkworker lane test no longer races its own fetcher (jobs are inserted with their lane already set), so TestFastLaneFloorInvariant stops timing out.

Closes fclairamb/solidping-business#85
Refs fclairamb/solidping-business#86 (items 1 and 2; item 3 still open)
Closes fclairamb/solidping-business#87

Decided by autopilot

  • Pingdom importer, basic auth on HTTP checks: dropped with a warning, like Gatus / Better Stack / Kuma.
  • Pingdom importer, input modes: both token fetch and pasted JSON.

🤖 Generated with Claude Code

fclairamb and others added 3 commits November 16, 2026 08:44
… control (fclairamb/solidping-business#85)

The insights page picked its period with three loose outline buttons
(web/dash0/src/routes/orgs/$org/incidents.insights.tsx:73), unlike the
dashboard window selector. It now renders SegmentedControl, which gains an
optional data-testid on its group. Guarded by incidents.insights.test.tsx,
which fails before the fix (no role="group" track).

Closes fclairamb/solidping-business#85

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

A transient job failure about to be retried logged "Job failed" at ERROR
(internal/jobs/jobworker/worker.go handleResult chose the level from
`permanent` only, before deciding to retry): it is now a WARN "Job failed,
will retry" with retry_count; ERROR stays for terminal unexpected failures.
An SMTP 5xx refusing the recipient (unknown mailbox, 5.1.x / 5.2.x, or a 5xx
to RCPT TO) was a plain error in job_email.go, logged twice at ERROR: the new
email.IsRecipientRejection makes the email job return a PermanentError and
the sender log a WARN; auth (535), relay and sender rejections stay ERROR.
Tests: worker_faillog_test.go (the retry case fails before the fix),
TestIsRecipientRejection, TestSend_RecipientRejectedLoggedAsWarn (fake SMTP
server) and a permanent case in TestEmailJobRun_Run.

Refs fclairamb/solidping-business#86

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch labels Nov 16, 2026
fclairamb and others added 5 commits November 16, 2026 08:53
Adds a pingdom source to the convert endpoint (API 3.1 token fetch or pasted
JSON), the import dialog, i18n, E2E, mapping.md and a migrate docs page.
Basic-auth credentials are dropped with a warning.

Closes fclairamb/solidping-business#87

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Pingdom SMTP encryption maps to starttls (port 465 is implicit TLS already, no flag).

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

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.00000% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.71%. Comparing base (6b432e0) to head (703771d).

Files with missing lines Patch % Lines
...rver/internal/handlers/checks/importers/pingdom.go 88.67% 30 Missing ⚠️
server/internal/escalationcoverage/coverage.go 87.67% 9 Missing ⚠️
...rver/internal/handlers/checks/importers/handler.go 63.63% 4 Missing ⚠️
server/internal/email/sender.go 96.55% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #904      +/-   ##
==========================================
- Coverage   90.74%   90.71%   -0.03%     
==========================================
  Files        1370     1372       +2     
  Lines      141005   141395     +390     
==========================================
+ Hits       127957   128273     +316     
- Misses      13039    13113      +74     
  Partials        9        9              
Files with missing lines Coverage Δ
...er/internal/handlers/checks/importers/converter.go 88.88% <100.00%> (ø)
server/internal/handlers/telegramcb/handler.go 81.92% <100.00%> (+0.29%) ⬆️
...ver/internal/handlers/usernotifications/service.go 91.38% <100.00%> (+0.08%) ⬆️
server/internal/integrations/telegram/message.go 100.00% <100.00%> (ø)
server/internal/jobs/jobtypes/job_email.go 99.19% <100.00%> (+0.01%) ⬆️
...rver/internal/jobs/jobtypes/job_escalation_step.go 91.41% <ø> (-0.14%) ⬇️
server/internal/jobs/jobworker/worker.go 78.94% <100.00%> (+0.22%) ⬆️
server/internal/email/sender.go 82.60% <96.55%> (+2.48%) ⬆️
...rver/internal/handlers/checks/importers/handler.go 87.34% <63.63%> (-3.97%) ⬇️
server/internal/escalationcoverage/coverage.go 87.67% <87.67%> (ø)
... and 1 more

... and 17 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.

…m password before linking (batch gate)

The debounced /checks/validate call carried the typed plaintext password of
a browser-sealed check (browser-sealed-secrets e2e). The Telegram connect
button now waits for /auth/me instead of racing it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb changed the title fix: insights period selector, job retry log levels; spec Pingdom importer feat: Pingdom check importer, insights period selector, job retry log levels Nov 16, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 16, 2026
… methods (#906)

Stacked on #904: merge it first.

Closes #905

## What changed
- **Personal notification methods that can never fire are now flagged**
(#905). Telegram, WhatsApp, SMS and DMs set under Account →
Notifications only fire when an escalation policy pages the user. Many
orgs have no default policy, so those methods were silently dead.
- `GET …/users/me/notification-routes` gets a new, additive `paging`
field: `{coveredBy: org_default|some_checks|none, policyCount}`. It is
computed by the new `escalationcoverage` package and handles user
targets, `all_admins` (admins only) and schedule membership, ignoring
soft-deleted policies.
- Account → Notifications warns when no policy pages you. Admins get a
link to the escalation policies; other members are told to ask an admin.
A lighter note appears when only some checks page you. All 4 locales are
updated.
- The Telegram bot's link confirmation and the in-app "connected" toast
say so too.
- Alerting → Integrations explains that personal channels live under
Account → Notifications.
- Tests: Go tests for coverage, the API field and the Telegram note;
Playwright for the warning and the integrations link.

## Decided by autopilot
- Spec `2026-11-16-02-personal-alerts-silent-without-escalation-policy`,
Q1 (seed a default policy at org creation?): no, warn only.
- Same spec, Q2 (one-click "create default policy" for admins?): the
recommended answer was yes, but dropped if over budget. It was dropped,
so nothing creates a policy from the warning. It can be a follow-up.
- `escalationcoverage` re-implements the job's target matching, because
the job's fan-out is tied to a live incident. Each copy has a comment
pointing at the other.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb enabled auto-merge (squash) November 16, 2026 20:10
fclairamb and others added 2 commits November 16, 2026 21:28
…are stamped

createSleepJob created an enabled check then stamped lane/cost afterwards, so
the live fetcher could claim the job as fast in between and run a 6s sleep
outside the slow budget, eating the reserved slot. Insert the job with its
lane set from the start.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb
fclairamb merged commit 7914164 into main Nov 16, 2026
39 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-16 branch November 16, 2026 20:56
fclairamb added a commit that referenced this pull request Nov 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.51.0](v0.50.2...v0.51.0)
(2026-11-16)


### Features

* Pingdom check importer, insights period selector, job retry log levels
([#904](#904))
([7914164](7914164))


### Bug Fixes

* **security:** bound status page historyDays, mask config tokens in
replay, JS websocket redirect policy, docs JWT placeholders
([#903](#903))
([6b432e0](6b432e0))
* **security:** cap the pre-auth body buffer in ServiceSignature
([#894](#894))
([c4da4c5](c4da4c5)),
closes [#892](#892)
* **security:** cross-check SAML NameID namespace (GO-2026-6909)
([#896](#896))
([df0d7b6](df0d7b6))
* **security:** treat known dev JWT secrets as placeholders
([#895](#895))
([1cad98a](1cad98a)),
closes [#892](#892)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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