• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

healthchecks / healthchecks / 23339508851
91%

Build:
DEFAULT BRANCH: master
Ran 20 Mar 2026 10:49AM UTC
Jobs 1
Files 225
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Mar 2026 10:47AM UTC coverage: 91.378% (-0.03%) from 91.405%
23339508851

push

github

cuu508
Fix sendalerts to avoid crashing on a timed out db connection

MySQL/MariaDB closes idle db connections after a period of inactivity
(controlled by the wait_timeout setting, default value is 8 hours).

In the sendalerts management command we have a main loop that
runs every few seconds and checks for unprocessed flips. The main
loop is unlikely to run into a dead connection issue. The main
loop offloads the actual notification sending to a threadpool
with multiple worker threads. Each thread has its own db connection.
It there's been a long time since the last sent notification then
the thread-specific db connection *can* be already timed out and
closed by the server. Before the fix, in this case the thread crashes
and sendalerts logs a traceback. After the fix, the thread always
runs `close_old_connections()` at the start to make sure it has
a fresh, working db connection.

Fixes: #1267

4 of 8 new or added lines in 3 files covered. (50.0%)

8277 of 9058 relevant lines covered (91.38%)

0.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
67.5
-1.33% hc/api/management/commands/sendreports.py
1
69.11
-0.06% hc/api/management/commands/sendalerts.py
1
86.92
0.0% hc/api/management/commands/smtpd.py
Jobs
ID Job ID Ran Files Coverage
1 23339508851.1 20 Mar 2026 10:49AM UTC 225
91.38
GitHub Action Run
Source Files on build 23339508851
  • Tree
  • List 225
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a9719015 on github
  • Prev Build on master (#23331517013)
  • Next Build on master (#23339848476)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc