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

mendersoftware / mender / 2727200046
81%
master: 81%

Build:
Build:
LAST BUILD BRANCH: 5.0.x
DEFAULT BRANCH: master
Ran 03 Aug 2026 12:59PM UTC
Jobs 1
Files 143
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

03 Aug 2026 12:48PM UTC coverage: 81.348% (-0.02%) from 81.367%
2727200046

push

gitlab-ci

LudvigAnderson
fix(update-modules): fail the install when the backup fails

`ret=$?` was read inside `if ! <backup>; then`, where `$?` holds the status
of the negated pipeline and is therefore always 0. Both modules exited 0
before applying the payload, so a failed install was reported to the server
as successful: the destination was left untouched while the new software
version was recorded for it. Capture the status from the command itself
instead.

The directory module is the more exposed of the two, since it backs up the
whole destination directory, so any unrelated file growing there can exhaust
the data partition. Reported from the field with a multi-GB core dump.

Add a pytest suite for the shipped update module scripts, alongside the
existing one for the artifact generators, covering both a failing backup and
a successful install for each module. Ignore the Python test caches while
here, since the new suite is the second pytest directory in the tree.

Ticket: MEN-10021
Changelog: Fixed the directory and single-file Update Modules reporting a deployment as
successful when the destination could not be backed up, leaving the destination unchanged.

(cherry picked from commit 8d6f02c81)
Signed-off-by: Ludvig Szklarz Anderson <ludvig.s.anderson@northern.tech>

8487 of 10433 relevant lines covered (81.35%)

21663.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
63.64
-4.55% src/common/processes/processes.cpp
1
80.57
-0.47% src/mender-update/update_module/v3/update_module_download.cpp
Jobs
ID Job ID Ran Files Coverage
1 2727200046.1 03 Aug 2026 12:59PM UTC 143
81.35
Source Files on build 2727200046
  • Tree
  • List 143
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #2727200046
  • a12daba1 on github
  • Prev Build on 5.0.x (#2702740907)
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