Skip to content

chore: upgrade bundled Garmin FIT profile to 21.222.0 #88

Closed

Description

@shaonianche

Source: garmin/fit-sdk-tools release 21.222.0 — Profile.xlsx, 278,712 bytes, sha256 8e229cd7c7e17c563c9396f655eb46f143e3a3fd3e8b4c26055813039fc94d22, released 2026-11-17.

The bundled profile is 21.221.0 (#87). Delta, computed by parsing both spreadsheets with fit_tool.gen.profile.Profile:

  • 6 new enum values in 3 types: 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: 127 messages / 1593 fields / 119 enum types / 167 enum fields.
  • One semantic change: session.total_cycles now resolves its total_reps subfield for sub_sport = station (147), not only floor_climbing (20).

Observed before/after 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, so they are not part of this delta.

Work

  • Replace fit_tool/gen/Profile_21.221.0.xlsx with the 21.222.0 spreadsheet; bump SDK_VERSION in fit_tool/__init__.py
  • Run uv run gen-profile. 132 generated modules change; only profile_type.py, field_catalog.py and messages/session_message.py change beyond the # Profile: header
  • Sync version strings: README.md, docs/CAPABILITY_BOUNDARY.md (2 spots), docs/FIT_CONFORMANCE_DESIGN.md (3 spots), docs/EPIC_SHA12_RELEASE_NOTES.md, fit_tool/tests/data/README.md (2 spots)
  • Update the pinned literals in test_public_api.py, test_garmin_sdk_interop.py and test_fit_file_header.py; the validation count snapshots in test_validation_profile.py are unchanged
  • Add a news/<id>.dep fragment
  • uv run pytest, uv run ruff check fit_tool, uv run mypy

Verification from a dry run

Regenerating in a scratch copy produced 444 passed, 1 skipped and 3 failures — exactly the three pinned version literals above — with ruff clean. The change is purely additive to the profile; no field or message was removed or renamed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions