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

ArduPilot / MethodicConfigurator / 24637765595 / 2
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2026 08:11PM UTC
Files 80
Run time 2s
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

19 Apr 2026 07:55PM UTC coverage: 94.083% (+0.001%) from 94.082%
24637765595.2

push

github

amilcarlucas
fix(connection): prevent IndexError on malformed ChibiOS banner line

_extract_chibios_version_from_banner crashed with IndexError when a
banner line starting with "ChibiOS:" did not contain a space followed
by a version hash (for example a truncated "ChibiOS:" line, or
"ChibiOS:hash" without the expected space separator).

msg.split(" ")[1] unconditionally indexed the second element of the
split, which does not exist when the separator is absent. The
IndexError propagated out of the banner-parsing loop during flight
controller connection setup and aborted the whole connection attempt.

Use split(" ", 1) and guard the length before indexing, falling back
to an empty version string. The surrounding code already handles an
empty os_custom_version correctly (it logs a version mismatch warning
against info.os_custom_version when the two differ).

Add two unit tests covering the malformed banner cases that previously
raised IndexError.

Signed-off-by: Yash Goel <yashvardhan664@gmail.com>

1745 of 1806 branches covered (96.62%)

11432 of 12151 relevant lines covered (94.08%)

0.94 hits per line

Source Files on job run-ubuntu-latest-py3.9 - 24637765595.2
  • Tree
  • List 80
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24637765595
  • d3435e55 on github
  • Prev Job for on master (#24565866376.2)
  • Next Job for on master (#24641248417.4)
  • Delete
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