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

UpdateHub / updatehub / 30378434035
66%

Build:
DEFAULT BRANCH: master
Ran 28 Jul 2026 04:37PM UTC
Jobs 1
Files 78
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

28 Jul 2026 04:28PM UTC coverage: 66.164% (+3.9%) from 62.262%
30378434035

push

github

otavio
test: mem_drain: cover the bounds that keep an offline device's log in check

An offline device records one probe failure per retry, and what keeps that from
growing without bound is counting consecutive repeats, with eviction as the
backstop for when the failures differ. Both were only lightly covered, so add
tests for what each of them promises:

- Memory stays flat over a hundred thousand retries of the same failure, which
  is the regression proper: the drain must hold no more after days offline than
  it did after the first few retries.
- Only a run at the tail is counted, and records differing in level or in their
  key values are not taken for repeats of one another.
- A counted repeat is not a new entry, so it must not move the first index and
  tell a reader there is something new to read.
- The first index grows across both eviction and the start of a new operation,
  so neither can be mistaken for the other.
- An entry larger than the bound is kept rather than evicted into nothing, and
  gives way once there is a newer one to keep instead.
- The repeat count reaches the JSON the SDK reads, not just the text form.
- Stopping recording keeps what was recorded and resumes without discarding it,
  which is what reporting a probe failure out of scope relies on.

Each was checked against a drain mutated back to the behaviour it guards, so
they fail when it regresses rather than merely passing today.

112 of 115 new or added lines in 1 file covered. (97.39%)

36 existing lines in 11 files now uncovered.

2765 of 4179 relevant lines covered (66.16%)

1191.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.03
-0.35% updatehub/src/mem_drain.rs

Coverage Regressions

Lines Coverage ∆ File
14
0.0
0.0% updatehub/src/http_api.rs
5
22.45
12.02% updatehub/src/states/machine/mod.rs
4
57.95
-4.67% updatehub/src/main.rs
3
92.06
-0.47% updatehub-cloud-sdk/src/client.rs
2
93.85
-1.92% updatehub/src/object/installer/imxkobs.rs
2
94.92
0.21% updatehub/src/object/installer/raw.rs
2
46.49
3.56% updatehub/src/states/mod.rs
1
89.47
8.22% updatehub-sdk/src/api/mod.rs
1
73.04
0.82% updatehub/src/object/installer/mod.rs
1
96.77
-3.23% updatehub/src/states/install.rs
1
53.52
-2.64% updatehub/src/update_package/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 30378434035.1 28 Jul 2026 04:37PM UTC 78
66.16
GitHub Action Run
Source Files on build 30378434035
  • Tree
  • List 78
  • Changed 71
  • Source Changed 15
  • Coverage Changed 71
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30378434035
  • 02e07316 on github
  • Prev Build on master (#30366752521)
  • Next Build on master (#30379260602)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc