Repository navigation
Live suite: the settings update sends sweat level 7 - #37
Merged
Merged
Conversation
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>
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. |
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.
🤖 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.pystill updated an athlete's settings withsweat_level: 6and 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_levelas a plain number, while the calculate request uses the 1, 3, 5, 7, 9 type.🤖 Generated with Claude Code