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

super3 / water / 26671241851
82%

Build:
DEFAULT BRANCH: main
Ran 30 May 2026 01:55AM UTC
Jobs 2
Files 16
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

30 May 2026 01:52AM UTC coverage: 65.397% (-1.4%) from 66.751%
26671241851

push

github

super3
Add offline sync queue on the watch

Logging on the watch failed when the phone was locked/out of range: the Core
app couldn't wake the companion app to record the log, so the entry was lost and
the ring later reverted to the phone's stale total.

Make the watch the durable buffer:
- Watch keeps a persistent queue of pending "+8" ops, each with a unique
  monotonic seq (seeded from the clock so it survives reinstalls) and the
  timestamp it was logged. The total updates optimistically; an op is removed
  only when the phone ACKs it. Flush retries on launch, on a ~10s timer while
  open, and whenever a message arrives. A "syncing N" indicator shows pending.
- The watch ignores the phone's echoed TodayOz while its queue is non-empty,
  which fixes the revert. DOWN cancels the most recent unsynced add, else removes
  the phone's last entry online.
- Phone de-dups by seq (high-water mark) so a lost-ACK resend can't double-count,
  and records each entry at the watch's timestamp (LogTs) so offline logs land on
  the right day. Adds WatchSeq (10005) + LogTs (10006) message keys.

Verified on device: a glass logged while the phone was locked synced on
reconnect, recorded at the watch timestamp, with no errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

184 of 332 branches covered (55.42%)

Branch coverage included in aggregate %.

1 of 22 new or added lines in 2 files covered. (4.55%)

606 of 876 relevant lines covered (69.18%)

10.03 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
20.31
-7.95% android-widget/app/src/main/java/com/watertracker/widget/pebble/PebbleSync.kt
5
71.43
-9.82% android-widget/app/src/main/java/com/watertracker/widget/app/WaterRepository.kt
Jobs
ID Job ID Ran Files Coverage
1 ui - 26671241851.1 30 May 2026 01:58AM UTC 16
61.84
GitHub Action Run
2 unit - 26671241851.2 30 May 2026 01:55AM UTC 16
9.11
GitHub Action Run
Source Files on build 26671241851
  • Tree
  • List 16
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26671241851
  • 23c14121 on github
  • Prev Build on main (#26670038952)
  • Next Build on main (#26721163618)
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