-
Notifications
You must be signed in to change notification settings - Fork 12
Ruby: max_retries: 0 made zero requests on an ungoverned GET (#532) #656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
31db075
Ruby: max_retries: 0 made zero requests on an ungoverned GET (#532)
jeremy df89ab3
Correct the two places that still described the ungoverned zero-attem…
jeremy 8363cba
SPEC §7: the attempt floor is universal, the ceiling is not
jeremy 87deb48
Say what the attempt floor actually does, per SDK
jeremy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this change,
max_retries: 0is floored to one attempt for every Ruby GET path, but the Ruby row in SPEC.md §14 still says that the general ungoverned GET path makes zero attempts and is tracked separately (line 1319). This leaves the normative specification internally contradictory and can cause future implementations or conformance work to preserve behavior that this commit intentionally removed; update that row to reflect the universal floor.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in df89ab3.
You were right that §2 was not the only place.
SPEC.md:1319— the §14 per-SDK hop-1 attempt-budget table — still read "floored at one for downloads (max_retries: 0still sends one attempt; the general ungoverned GET path's zero-attempt behavior is tracked separately)". With §2 rule 4 now saying the floor applies on every path, the normative spec contradicted itself. That row now reads:Swept the rest of SPEC.md (
max_retries|floored|floor|tracked separately|532|zero) and the tree outside it. One more hit:ruby/test/basecamp/download_test.rb:414carried the same claim in a comment, citing #532 as the tracker for the behavior this PR removes — corrected to say the floor now applies on every Ruby request path.Left alone deliberately, because they are still true: §7 lines 111 and 115 say governed paths coerce the cap to at least one attempt (
min(max(1, cap), op_max)). That is ceiling arithmetic, and the ceiling only exists where an operation declares a retry block — the sentences assert what governed paths do, not that ungoverned paths do otherwise, and §2 rule 4 resolves the scope. Same for §7's line 3355 and §19's Ruby row, which are about status gating and the per-op ceiling, not attempt floors.make rb-checkgreen: 1362 runs, 30397 assertions, 0 failures, 0 errors; rubocop 153 files, no offenses.