Automate weekly Garmin FIT device list sync with updater and tests - #4927
Merged
cagnulein merged 2 commits intoAug 13, 2026
Merged
Conversation
cagnulein
deleted the
codex/add-automated-garmin-device-synchronization
branch
August 13, 2026 19:15
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.qmlup to date by importing new products from Garmin's generatedfit_profile.hppand avoid manual updates.Description
/.github/workflows/update-garmin-fit-devices.ymlthat runs weekly (and on demand) to test and run the updater, check for changes, and open or update a PR when updates are found.scripts/update_garmin_fit_devices.py, a standalone updater that parses Garmin'sfit_profile.hpp, determines eligible products, updates theComboBoxinsrc/settings.qmlin-place, and emits a Markdown summary and GitHub Actions output flag.--catalog.tests/test_update_garmin_fit_devices.pythat cover catalog parsing, QML location and updates, idempotence, exclusion rules, CLI behavior, and edge cases.Testing
python3 -m unittest tests/test_update_garmin_fit_devices.pyas part of its steps; the tests exerciseupdate_garmin_fit_devices.pyfunctionality and CLI behavior and completed successfully in local CI validation.main()is exercised by tests, including writing a temporarysettings.qmlandfit_profile.hppand verifying the--github-outputchanged=true/falsebehavior, which passed.Codex Task