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

mendersoftware / mender-mcu / 1508921536
2%
main: 0%

Build:
Build:
LAST BUILD BRANCH: pr_209
DEFAULT BRANCH: main
Ran 23 Oct 2024 12:50PM UTC
Jobs 1
Files 13
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 Oct 2024 12:45PM UTC coverage: 2.006%. First build
1508921536

push

gitlab-ci

vpodzime
chore: Rework how artifact download is handled

In order to avoid passing many callbacks around as arguments and
calling the update module's callback 9 levels of nesting deep, we
just call the particular functions directly wherever
possible. This requires a separate code path tailored to artifact
download.

We introduce mender-artifact-download.c providing
`mender_download_artifact()` as a new top-level function for
downloading an artifact from a given URI, extending deployment
data with information from it and selecting the update module for
the artifact.

Then there's a platform-specific (or rather HTTP-backed-specific)
`mender_http_artifact_download()` which uses callbacks specific
to artifact download not generic HTTP response handling that call
platform-independent `mender_download_artifact_callback()` which
goes to the code from mender-artifact.c where the actual artifact
data processing happens.

By moving the code from the mender_client.c function
`mender_client_download_artifact_callback()` into the
`process_artifact_data_callback()` function in mender-artifact.c
we isolate the artifact data processing to mender-artifact.c
where it belongs.

Ticket: MEN-7499
Changelog: none
Signed-off-by: Vratislav Podzimek <vratislav.podzimek@northern.tech>

0 of 92 new or added lines in 4 files covered. (0.0%)

31 of 1545 relevant lines covered (2.01%)

0.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1508921536.1 23 Oct 2024 12:50PM UTC 0
2.01
Source Files on build 1508921536
Detailed source file information is not available for this build.
  • Back to Repo
  • GitLab CI Build #1508921536
  • 4e9a520a on github
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