Skip to content

Handle development firmware labels in update comparisons - #146

Merged
TobiasRoeddiger merged 1 commit into
mainfrom
codex/fix-firmware-version-comparison
Sep 30, 2026
Merged

TobiasRoeddiger merged 1 commit into
mainfrom
codex/fix-firmware-version-comparison

Conversation

@TobiasRoeddiger

Copy link
Copy Markdown
Member

OpenWearables' firmware update checker throws FormatException on a real development label such as 2.2.9-dev.100+g94986934.dirty, because it tries to parse 9-dev as an integer. Compare semantic versions using the existing pub_semver dependency, preserve prerelease ordering, ignore build hashes, and accept release-tag prefixes and legacy trailing NUL bytes. Unrecognized labels return no update recommendation instead of throwing.

Six new regression tests cover stable versions, the observed development label, prerelease ordering, build metadata, tag prefixes/legacy terminators and malformed input. They fail on the original implementation and pass with this fix. The complete SDK test suite passes (17 tests); analysis of the changed files reports no issues. This fixes the SDK source; the installed phone app still requires a release containing the change.

@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 5eb338f):

https://open-earable-lib-web-example--pr146-codex-fix-firmware-brzbc3je.web.app

(expires Sun, 25 Oct 2026 10:31:38 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7f6db4d9d00b851ad49af109fa949061904b3151

@TobiasRoeddiger
TobiasRoeddiger merged commit badc667 into main Sep 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant