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

dangernoodle-io / breadboard / 28206242515
100%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2026 11:10PM UTC
Jobs 1
Files 40
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

25 Jun 2026 11:09PM UTC coverage: 100.0%. Remained the same
28206242515

push

github

web-flow
fix(bb_ota_pull): resolve GitHub cross-host redirect before chunked OTA download (#559)

bb v0.41.0 / #313 enabled partial_http_download=true + keep_alive_enable=true
in bb_ota_pull to reduce peak TLS record buffer size on heap-constrained boards.
However, GitHub release asset URLs (github.com/.../releases/download/...) issue
a 302 redirect to a CDN (objects.githubusercontent.com). The HTTP Range-request
path used by partial_http_download does not reliably follow cross-host redirects,
causing release downloads to fail with "download failed after 3 attempts" (B1-354).

Fix: pre-resolve the redirect immediately before handing the URL to esp_https_ota.
A short-lived HEAD request (auto-redirect enabled, falling back to Range GET if
the CDN rejects HEAD with 403/405) fetches the final CDN URL. On any probe failure
the original URL is used (graceful fallback — never makes things worse). The CDN
signed URL is time-limited (~5 min); the probe runs immediately before the download
so the URL is always fresh. partial_http_download=true and keep_alive_enable=true
are kept — the heap savings are still needed on no-PSRAM boards.

The decision logic is extracted into bb_ota_pull_resolve_redirect_url() (pure,
portable, host-testable). Six new host tests cover all branches: redirect→CDN URL,
no-redirect→original, probe-failed→fallback, null/empty resolved→fallback,
null out_did_redirect→no crash. Coverage remains 100%.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

1752 of 1752 branches covered (100.0%)

Branch coverage included in aggregate %.

2924 of 2924 relevant lines covered (100.0%)

1268.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28206242515.1 25 Jun 2026 11:10PM UTC 40
100.0
GitHub Action Run
Source Files on build 28206242515
  • Tree
  • List 40
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28206242515
  • 77b02d8f on github
  • Prev Build on main (#28187661979)
  • Next Build on main (#28222296396)
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