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

mendersoftware / mender-mcu / 1756078223

Build:
Build:
LAST BUILD BRANCH: pr_209
DEFAULT BRANCH: main
Ran 07 Apr 2025 03:09PM UTC
Jobs 2
Files 0
Run time –
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

pending completion
1756078223

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>
Jobs
ID Job ID Ran Files Coverage
1 unit-tests - 1756078223.1 07 Apr 2025 03:10PM UTC 18
22.81
2 integration-tests - 1756078223.2 07 Apr 2025 03:09PM UTC 19
61.2
Source Files on build 1756078223
Detailed source file information is not available for this build.
  • Back to Repo
  • GitLab CI Build #1756078223
  • db1171ec on github
  • Prev Build on pr_192 (#1752546320)
  • Next Build on pr_192 (#1756210156)
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