Skip to content

chore: upgrade garmin fit sdk profile version 21.222.0 - #89

Merged
shaonianche merged 1 commit into
mainfrom
chore/profile-21.222.0
Nov 20, 2026
Merged

shaonianche merged 1 commit into
mainfrom
chore/profile-21.222.0

Conversation

@shaonianche

Copy link
Copy Markdown
Owner

Upgrades the bundled Garmin FIT profile from 21.221.0 to 21.222.0, taken from the garmin/fit-sdk-tools 21.222.0 release (Profile.xlsx, 278,712 bytes, sha256 8e229cd7c7e17c563c9396f655eb46f143e3a3fd3e8b4c26055813039fc94d22, 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:

Type Value Number
sub_sport station 147
manufacturer purple_dog_custom 361
manufacturer nua 362
garmin_product hrm_200_single_byte_product_id 23
garmin_product hrm_600_single_byte_product_id 24
garmin_product hrm_600 4607

No 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_cycles now resolves its total_reps subfield for sub_sport = station (147), not only floor_climbing (20). Observed on a session message with sub_sport = 147:

21.221.0 21.222.0
DOMAIN/FULL PROFILE validation Native field session.sub_sport has value 147 outside Profile enum 'sub_sport'. no finding
session.total_reps None (falls back to total_cycles) 120 (same as total_cycles)

Garmin's 21.222.0 announcement also lists the tsb_* messages and file types, edge_1060 / marq3 / descent_x10, and the fair_weather_athletics / hatch_factory / torqano / rockbros manufacturer ids. Those are already present in 21.221.0 and are not part of this delta.

Changes

  • fit_tool/gen/Profile_21.222.0.xlsx replaces the 21.221.0 spreadsheet; SDK_VERSION is now 21.222.0
  • Regenerated fit_tool/profile/: 132 modules, of which only profile_type.py, field_catalog.py and messages/session_message.py change beyond the # Profile: header
  • Version strings synced in README.md, docs/CAPABILITY_BOUNDARY.md, docs/FIT_CONFORMANCE_DESIGN.md, docs/EPIC_SHA12_RELEASE_NOTES.md, fit_tool/tests/data/README.md
  • Pinned literals updated in test_public_api.py, test_garmin_sdk_interop.py, test_fit_file_header.py
  • news/88.dep

144 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 local garmin/fit-javascript-sdk checkout; the garmin-js-interop job 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.
  • Regeneration is idempotent: re-running uv run gen-profile after staging leaves no unstaged diff.
  • uv run towncrier build --draft --version 0.9.18 renders 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 build succeeds (wheel + sdist).
  • Runtime probe on sub_sport = 147 confirms the validation and total_reps behavior in the table above.

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

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.03%. Comparing base (d23036b) to head (55d4a8a).
✅ All tests successful. No failed tests found.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shaonianche
shaonianche merged commit d470d21 into main Nov 20, 2026
10 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.

chore: upgrade bundled Garmin FIT profile to 21.222.0

1 participant