Add updater and weekly workflow to sync Garmin FIT devices - #4925
Merged
cagnulein merged 2 commits intoAug 13, 2026
Conversation
cagnulein
deleted the
codex/add-automated-garmin-device-synchronization
branch
August 13, 2026 18:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
src/settings.qmlcurrent by automatically synchronizing with Garmin's officialfit_profile.hpp.Description
scripts/update_garmin_fit_devices.py, a standalone updater that parses Garmin'sfit_profile.hpp, determines eligible products, and updates the GarminComboBoxinsrc/settings.qmlwhile preserving unrelated QML content and existing devices.DISPLAY_OVERRIDES, product and variant exclusions, and idempotent update behavior.tests/test_update_garmin_fit_devices.pycovering parsing, idempotence, ordering, preservation of absent upstream entries, and CLI/CI output..github/workflows/update-garmin-fit-devices.ymlthat runs weekly (and on manual dispatch), executes the updater and unit tests, and opens or updates a PR with changes tosrc/settings.qmlwhen new devices are added.Testing
python3 -m unittest tests/test_update_garmin_fit_devices.pyis invoked by the workflow and was run as part of the CI step.fit_profile.hpp, idempotent updates viaupdate_qml, CLI behavior for--github-output, and several edge cases, and they succeeded in the CI run.Codex Task