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

mendersoftware / mender / 1165860265
76%
master: 80%

Build:
Build:
LAST BUILD BRANCH: pr_1878
DEFAULT BRANCH: master
Ran 06 Feb 2024 08:24AM UTC
Jobs 1
Files 132
Run time 16s
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

06 Feb 2024 08:05AM UTC coverage: 79.802% (-0.01%) from 79.816%
1165860265

push

gitlab-ci

kacf
fix: Swap order of daemon state machines.

This came about because the main state machine inspects the
`ctx.deployment.rollback_failed` variable, which is set in the
`deployment_tracking` state machine. We always want the setting to
happen first, and in one corner case this did not happen if there were
no intervening states between the inspection and the previous state.

Illustrating with an example. In most cases it would work because:

```
main_state.OLD_STATE
deployment_tracking.OLD_STATE
  |
  v
main_state.INTERMEDIARY_STATE
deployment_tracking.NEW_STATE.<set rollback_failed flag>
  |
  v
main_state.NEW_STATE.<inspect rollback_failed flag>
```

But in the simplest of transitions, it would break, like this:

```
main_state.OLD_STATE
deployment_tracking.OLD_STATE
  |
  v
main_state.NEW_STATE.<inspect rollback_failed flag>
deployment_tracking.NEW_STATE.<set rollback_failed flag>
```

where one can see the flag is set too late. `ArtifactFailure_Leave` is
one place where it happens. By reversing the order of the state
machines, this does not happen anymore, and this should always be the
correct action, since the `deployment_tracking` never checks any
external variables.

Changelog: Artifact name is now properly marked as "INCONSISTENT" if
there is an error in the `ArtifactFailure_Leave` script during an
installation.

Ticket: None

Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
(cherry picked from commit 20f85f05d)

1 of 1 new or added line in 1 file covered. (100.0%)

283 existing lines in 13 files now uncovered.

7076 of 8867 relevant lines covered (79.8%)

12331.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1165860265.1 06 Feb 2024 08:24AM UTC 0
79.8
Source Files on build 1165860265
Detailed source file information is not available for this build.
  • Back to Repo
  • GitLab CI Build #1165860265
  • ec2204c6 on github
  • Prev Build on HEAD (#1165857957)
  • Next Build on HEAD (#1164926597)
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