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

Alan-Jowett / sonde / 23701702979
82%

Build:
DEFAULT BRANCH: main
Ran 29 Mar 2026 04:53AM UTC
Jobs 1
Files 77
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

29 Mar 2026 04:50AM UTC coverage: 85.722% (+0.06%) from 85.658%
23701702979

push

github

web-flow
gateway: sustained health poll failures trigger modem reconnect (#564)

* gateway: sustained health poll failures trigger modem reconnect

After N consecutive poll_status() failures (default 3), the health
monitor now logs at ERROR and returns \	rue\ to signal the caller that
a modem reconnect is needed. The failure counter resets on any
successful poll.

Changes:
- Add \DEFAULT_MAX_HEALTH_POLL_FAILURES\ constant (3)
- Add \max_consecutive_failures\ parameter to \spawn_health_monitor\
- Change return type from \JoinHandle<()>\ to \JoinHandle<bool>\
- Update gateway binary call site to pass the new parameter and
  handle the reconnect signal
- Add T-1104c integration test
- Update GW-1103 requirements, design, and validation docs

Fixes #557

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address review: validate max_consecutive_failures=0 and use saturating_add

- Return false (disable monitor) when max_consecutive_failures is 0,
  mirroring the existing interval-is-zero guard
- Use saturating_add(1) to prevent u32 overflow on the failure counter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(gateway): health monitor returns false when disabled (max_failures=0)

When `max_consecutive_failures` is 0, the health monitor now returns
`false` (no reconnect needed) instead of completing immediately and
inadvertently triggering the reconnect path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

11 of 23 new or added lines in 2 files covered. (47.83%)

23228 of 27097 relevant lines covered (85.72%)

155.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
80.93
3.24% crates/sonde-gateway/src/modem.rs
5
0.0
0.0% crates/sonde-gateway/src/bin/gateway.rs
Jobs
ID Job ID Ran Files Coverage
1 23701702979.1 29 Mar 2026 04:53AM UTC 77
85.72
GitHub Action Run
Source Files on build 23701702979
  • Tree
  • List 77
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23701702979
  • 7e29eefd on github
  • Prev Build on main (#23700857073)
  • Next Build on main (#23701704624)
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