Repository navigation
chore: upgrade garmin fit sdk profile version 21.222.0 - #89
Merged
Merged
Conversation
Replace the bundled Garmin Profile spreadsheet with 21.222.0 from garmin/fit-sdk-tools, bump SDK_VERSION, and regenerate typed profile code. The delta adds six enum values: sub_sport station=147, manufacturer purple_dog_custom=361 and nua=362, and garmin_product hrm_200_single_byte_product_id=23, hrm_600_single_byte_product_id=24, hrm_600=4607. It also extends session.total_cycles' total_reps subfield to sub_sport=station, so a station session now reads total_reps instead of total_cycles. No message, field, enum type or file type is added or removed; catalog counts stay at 127 messages / 1593 fields / 119 enum types / 167 enum fields. Update the pinned profile version snapshots in tests and docs. Closes #88 Amp-Thread-ID: https://ampcode.com/threads/T-01a1f659-6b41-7525-9266-e2067adcd1f6
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #89 +/- ##
=======================================
Coverage 93.03% 93.03%
=======================================
Files 46 46
Lines 2728 2728
Branches 425 425
=======================================
Hits 2538 2538
Misses 109 109
Partials 81 81 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Upgrades the bundled Garmin FIT profile from
21.221.0to21.222.0, taken from thegarmin/fit-sdk-tools21.222.0 release (Profile.xlsx, 278,712 bytes, sha2568e229cd7c7e17c563c9396f655eb46f143e3a3fd3e8b4c26055813039fc94d22, released 2026-11-17).Closes #88.
Profile delta
Computed by parsing both spreadsheets with
fit_tool.gen.profile.Profile.6 new enum values in 3 types:
sub_sportstationmanufacturerpurple_dog_custommanufacturernuagarmin_producthrm_200_single_byte_product_idgarmin_producthrm_600_single_byte_product_idgarmin_producthrm_600No new messages, fields, enum types or file types. Catalog counts are unchanged at 127 messages / 1593 fields / 119 enum types / 167 enum fields, so the validation count snapshots needed no updates. Nothing was removed or renamed.
One semantic change:
session.total_cyclesnow resolves itstotal_repssubfield forsub_sport = station(147), not onlyfloor_climbing(20). Observed on a session message withsub_sport = 147:Native field session.sub_sport has value 147 outside Profile enum 'sub_sport'.session.total_repsNone(falls back tototal_cycles)120(same astotal_cycles)Garmin's 21.222.0 announcement also lists the
tsb_*messages and file types,edge_1060/marq3/descent_x10, and thefair_weather_athletics/hatch_factory/torqano/rockbrosmanufacturer ids. Those are already present in 21.221.0 and are not part of this delta.Changes
fit_tool/gen/Profile_21.222.0.xlsxreplaces the 21.221.0 spreadsheet;SDK_VERSIONis now21.222.0fit_tool/profile/: 132 modules, of which onlyprofile_type.py,field_catalog.pyandmessages/session_message.pychange beyond the# Profile:headerREADME.md,docs/CAPABILITY_BOUNDARY.md,docs/FIT_CONFORMANCE_DESIGN.md,docs/EPIC_SHA12_RELEASE_NOTES.md,fit_tool/tests/data/README.mdtest_public_api.py,test_garmin_sdk_interop.py,test_fit_file_header.pynews/88.dep144 files changed, +156 / −149.
Verification
uv run pytest -q— 447 passed, 1 skipped, 4 subtests passed. The skip is the live Garmin SDK cross-interop class, which needs Node plus a localgarmin/fit-javascript-sdkcheckout; thegarmin-js-interopjob runs it in CI against the matching tag. Run locally against the real 21.222.0 JS SDK, that file passes too (3 passed).uv run ruff check fit_tool— All checks passed.uv run mypy— Success: no issues found in 3 source files.uv run gen-profileafter staging leaves no unstaged diff.uv run towncrier build --draft --version 0.9.18renders both upgrade garmin fit sdk profile version 21.221.0 #86 and chore: upgrade bundled Garmin FIT profile to 21.222.0 #88 under Dependencies.uv buildsucceeds (wheel + sdist).sub_sport = 147confirms the validation andtotal_repsbehavior in the table above.