Skip to content

Live suite: the settings update sends sweat level 7 - #37

Merged
DrAlexHarrison merged 1 commit into
mainfrom
sre/fix-live-sweat-level
Nov 24, 2026
Merged

DrAlexHarrison merged 1 commit into
mainfrom
sre/fix-live-sweat-level

Conversation

@DrAlexHarrison

Copy link
Copy Markdown
Member

🤖 SRE Automated Fix

What broke. The live suite fails at the settings update: ValidationError: sweat_level must be 1, 3, 5, 7 or 9 (got 6). It first failed in the nightly live run of 2026-11-23.

Why. Since 2026-11-22 the API takes only the sweat levels the Saturday app stores (1, 3, 5, 7, 9), as this SDK's changelog and calculate types say. tests/test_live.py still updated an athlete's settings with sweat_level: 6 and expected 6 back. The API is right and the test value was stale.

The change. The settings update sends 7 and expects 7. 7 is a level the app stores and differs from the 5 the athlete was created with, so the check still proves the update took. Test only: nothing in the published package changes. saturday-node carries the same fix.

Proof. Red: the 2026-11-23 live run. Green: a live run pinned to this branch's commit, result in a comment below before merge.

Left for the SDK owner. The settings type still declares sweat_level as a plain number, while the calculate request uses the 1, 3, 5, 7, 9 type.

🤖 Generated with Claude Code

The API takes 1, 3, 5, 7 or 9 for sweat_level and answers 400
invalid_value for any other value. tests/test_live.py still sent 6, so the live
suite failed. 7 is a level the app stores and differs from the 5 the
athlete was created with, so the check still proves the update took.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@DrAlexHarrison

Copy link
Copy Markdown
Member Author

Green: SDK Live run 45347648238 on fuel-backend main (2026-11-24 07:27 UTC), pinned to this branch's commit and the matching branch of the other SDK, passed both live suites.

@DrAlexHarrison
DrAlexHarrison merged commit e08e3ed into main Nov 24, 2026
1 check passed
@DrAlexHarrison
DrAlexHarrison deleted the sre/fix-live-sweat-level branch November 24, 2026 07:27
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.

1 participant