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

mendersoftware / mender-mcu
2%
main: 57%

Build:
Build:
LAST BUILD BRANCH: pr_209
DEFAULT BRANCH: main
Repo Added 22 Oct 2024 05:48PM UTC
Files 26
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

LAST BUILD ON BRANCH pr_93
branch: pr_93
CHANGE BRANCH
x
Reset
  • pr_93
  • HEAD
  • main
  • pr_100
  • pr_101
  • pr_102
  • pr_103
  • pr_104
  • pr_105
  • pr_106
  • pr_107
  • pr_108
  • pr_109
  • pr_110
  • pr_111
  • pr_112
  • pr_113
  • pr_114
  • pr_115
  • pr_117
  • pr_118
  • pr_119
  • pr_120
  • pr_121
  • pr_122
  • pr_123
  • pr_124
  • pr_125
  • pr_126
  • pr_127
  • pr_128
  • pr_129
  • pr_130
  • pr_131
  • pr_134
  • pr_136
  • pr_137
  • pr_138
  • pr_139
  • pr_140
  • pr_141
  • pr_142
  • pr_143
  • pr_144
  • pr_145
  • pr_146
  • pr_147
  • pr_148
  • pr_149
  • pr_150
  • pr_152
  • pr_153
  • pr_154
  • pr_155
  • pr_156
  • pr_157
  • pr_158
  • pr_159
  • pr_160
  • pr_161
  • pr_162
  • pr_163
  • pr_164
  • pr_165
  • pr_166
  • pr_167
  • pr_168
  • pr_169
  • pr_170
  • pr_172
  • pr_173
  • pr_175
  • pr_176
  • pr_177
  • pr_178
  • pr_179
  • pr_180
  • pr_181
  • pr_182
  • pr_183
  • pr_184
  • pr_185
  • pr_186
  • pr_187
  • pr_188
  • pr_189
  • pr_190
  • pr_191
  • pr_192
  • pr_193
  • pr_194
  • pr_195
  • pr_196
  • pr_197
  • pr_198
  • pr_199
  • pr_200
  • pr_201
  • pr_205
  • pr_206
  • pr_207
  • pr_209
  • pr_210
  • pr_212
  • pr_213
  • pr_62
  • pr_65
  • pr_97
  • pr_98
  • pr_99
  • test-coverage

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

Relevant lines Covered
Build:
Build:
1545 RELEVANT LINES 31 COVERED LINES
0.54 HITS PER LINE
Source Files on pr_93
  • Tree
  • List 13
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1508921536 pr_93 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 ... push 23 Oct 2024 12:50PM UTC vpodzime gitlab-ci
2.01
See All Builds (435)
  • Repo 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

© 2025 Coveralls, Inc