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

Alan-Jowett / sonde / 23991722055
81%

Build:
DEFAULT BRANCH: main
Ran 05 Apr 2026 01:41AM UTC
Jobs 1
Files 84
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

05 Apr 2026 01:34AM UTC coverage: 80.967% (-0.1%) from 81.107%
23991722055

push

github

web-flow
Replace `tmp102_handler.py` with Rust binary (#653)

* Replace 	mp102_handler.py with Rust binary

Convert the TMP102 gateway handler from a Python script requiring
python3 + cbor2 into a self-contained Rust executable
(\sonde-tmp102-handler\).  This eliminates the Python runtime
dependency on the target system.

The new crate lives at \crates/sonde-tmp102-handler/\ and is a
workspace member built alongside all other crates.  Behavior is
identical to the Python original:

- Reads length-prefixed CBOR \DATA\ messages from stdin
- Decodes 6-byte TMP102 temperature payloads
- Appends JSON Lines records to \	emperature_log.jsonl\
- Logs to stderr
- Replies with \DATA_REPLY\ on stdout

Includes 9 unit tests covering CBOR round-trip, TMP102 decoding
(valid, wrong-length, negative temps), hex encoding, EOF handling,
and the \map_get\ helper.

Also enforces the 1 MB message size limit per GW-0502 and avoids
u64-to-i64 overflow on \equest_id\ in DATA_REPLY.

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

* Fix rustfmt formatting

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

* Remove accidentally committed data files

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

* Ignore handler data files

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

* Restore Python handler alongside Rust version

Keep both \	est-programs/tmp102_handler.py\ (readable protocol
example) and \sonde-tmp102-handler\ (zero-dependency Rust binary).
Update deployment SOP to document both options.

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

* Address review: use constants in DATA_REPLY, add build step to SOP

- Use \KEY_MSG_TYPE\, \KEY_REQUEST_ID\, and new \KEY_REPLY_DATA\
  constants in the DATA_REPLY construction instead of raw integers.
- Add explicit \cargo build -p sonde-tmp102-handler --release\ step
  to deployment SOP before handler registration.
- Document that \	emper... (continued)

192 of 280 new or added lines in 1 file covered. (68.57%)

20232 of 24988 relevant lines covered (80.97%)

144.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
88
68.57
crates/sonde-tmp102-handler/src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 23991722055.1 05 Apr 2026 01:41AM UTC 84
80.97
GitHub Action Run
Source Files on build 23991722055
  • Tree
  • List 84
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23991722055
  • 8ac54af0 on github
  • Prev Build on main (#23990551204)
  • Next Build on main (#23996663343)
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