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

mendersoftware / mender / 1637995628
76%
master: 80%

Build:
Build:
LAST BUILD BRANCH: pr_1869
DEFAULT BRANCH: master
Ran 23 Jan 2025 01:19PM UTC
Jobs 1
Files 145
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

23 Jan 2025 01:09PM UTC coverage: 75.952% (-0.007%) from 75.959%
1637995628

push

gitlab-ci

lluiscampos
fix: Fix Mender client getting stuck after failure in sync state

From the code point, the issue was that the re-scheduling of new polls
for updates or inventory were done from the states _after_ the sync
state, so unless the state machine reached that point the new polls
would not be scheduled.

Fix by creating two new states, that just do the re-scheduling, between
idle and sync. Note that the timer(s) have now been moved to the context
object so that it can be accessed from multiple states (namely, update
polling and submit inventory states which would need to manipulate the
timer for exponential back-off retries.

Ticket: MEN-7900

Changelog: Fix issue where any error in Sync state (triggered for
example with an error in Sync_Enter state scripts) leaves the client
stuck in idle state forever and no new polls for update nor submit of
inventory would be attempted again.

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>

24 of 40 new or added lines in 3 files covered. (60.0%)

7381 of 9718 relevant lines covered (75.95%)

11129.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
76.99
-0.4% src/mender-update/daemon/states.cpp
Jobs
ID Job ID Ran Files Coverage
1 1637995628.1 23 Jan 2025 01:19PM UTC 145
75.95
Source Files on build 1637995628
  • Tree
  • List 145
  • Changed 29
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #1637995628
  • a97eb04c on github
  • Prev Build on master (#1636068196)
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