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

mendersoftware / mender-mcu / 1756078223 / 1

Build:
Build:
LAST BUILD BRANCH: pr_209
DEFAULT BRANCH: main
Ran 07 Apr 2025 03:16PM UTC
Files 18
Run time 137min
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

07 Apr 2025 02:43PM UTC coverage: 22.813% (-0.2%) from 23.057%
1756078223.1

push

gitlab-ci

vpodzime
chore: Retry HTTP requests in in authenticated_http_perform()

On non-reliable networks (and with the often suboptimal antennas
on MCUs) HTTP requests can quite often fail. In order to not
consider every such failure as an error, we introduce a retry
mechanism (similar to one we already have for DNS resolution).

A low number of attempts (5) together with a short retry interval
(100ms) and a progressive factor (2) for the interval mean that a
real network outage won't cause any extra long delay (1500ms at
most). However, it can handle many issues with network
transparently for the rest of the code.

Since authentication HTTP request can happen as part of
`authenticated_http_perform()` we need to use the retry mechanism
there too. However, if all tries fail, we don't even try the API
HTTP request. In case the very last authentication attempt
succeeds and the very last API request succeeds, the total
execution of `authenticated_http_perform()` can take up to 3
seconds. However, only one such case can happen because the
authentication info (JWT token) is cached.

Ticket: MEN-8223
Changelog: none
Signed-off-by: Vratislav Podzimek <vratislav.podzimek+auto-signed@northern.tech>

712 of 3121 relevant lines covered (22.81%)

11.31 hits per line

Source Files on job unit-tests - 1756078223.1
  • Tree
  • List 18
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build db1171
  • GitLab Build #publish:tests
  • db1171ec on github
  • Prev Job for on pr_192 (#1752546320.2)
  • Next Job for on pr_192 (#1756210156.2)
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