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

Alan-Jowett / sonde / 23564908922
81%

Build:
DEFAULT BRANCH: main
Ran 25 Mar 2026 09:27PM UTC
Jobs 1
Files 76
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

25 Mar 2026 09:24PM UTC coverage: 85.694% (-0.1%) from 85.798%
23564908922

push

github

web-flow
feat(gateway): wire up ExportState, FactoryReset, and health monitor (#505)

* feat(gateway): wire up ExportState, FactoryReset, and health monitor (#452)

F-001: ExportState now calls ncrypt_state_full() instead of
ncrypt_state(), including gateway identity, phone PSKs, and handler
routing configs in the encrypted bundle. Added with_handler_configs()
builder on AdminService and wired it in gateway.rs.

F-002: Added FactoryReset RPC to admin proto, AdminService, and
sonde-admin CLI (\
ode factory-reset\). Removes the node from the
registry and clears pending commands. A TODO notes that node-side
protocol-level erasure requires a future sonde-protocol extension.

F-003: spawn_health_monitor() (GW-1102) is now spawned inside the
modem reconnect loop in \gateway.rs\, polling modem status every 30 s
and logging tx-failure deltas and reboot detection.

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

* fix(gateway): invalidate sessions on node removal and factory reset

Add `session_manager.remove_session()` calls to both `remove_node` and`nfactory_reset` RPCs so that active in-memory sessions are immediately`ninvalidated when a node is removed from the registry.

Without this, a node with an active session could continue communicating`nuntil the session times out naturally, violating GW-0705 AC1.

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

* Address review findings

- Remove dead PendingCommand::FactoryReset variant that was never
  handled in select_command or queued by the RPC (the protocol-level
  factory-reset command is not yet defined).

- Add explanatory comment to actory_reset existence-check block
  matching the pattern in emove_node, documenting why the full
  record is loaded (no lightweight exists query in Storage trait).

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

---------

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Copilot <223556219+... (continued)

9 of 52 new or added lines in 4 files covered. (17.31%)

5 existing lines in 2 files now uncovered.

22164 of 25864 relevant lines covered (85.69%)

163.14 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
66.05
-0.87% crates/sonde-gateway/src/admin.rs
7
0.0
0.0% crates/sonde-admin/src/main.rs
8
61.24
-2.44% crates/sonde-admin/src/grpc_client.rs
22
0.0
0.0% crates/sonde-gateway/src/bin/gateway.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
66.05
-0.87% crates/sonde-gateway/src/admin.rs
4
0.0
0.0% crates/sonde-gateway/src/bin/gateway.rs
Jobs
ID Job ID Ran Files Coverage
1 23564908922.1 25 Mar 2026 09:27PM UTC 76
85.69
GitHub Action Run
Source Files on build 23564908922
  • Tree
  • List 76
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23564908922
  • e224ab2a on github
  • Prev Build on main (#23563789863)
  • Next Build on main (#23565342407)
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