You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing exhaustion test for status-code retries at higher retry counts
The set to a higher count context (max_retries = 3) tests exception-retry exhaustion (4 HTTP calls → re-raises), but there is no parallel test verifying that 502/504 status-code retries also exhaust correctly — i.e., that when 502 occurs on every attempt the method eventually returns the 502 response and stops after max_retries + 1 calls. Without this test, a regression where status-code retries loop indefinitely or bail out early would go undetected.
Rule Used: When implementing retry logic, include comprehensi... (source)
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
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.
Summary
/flags/?v=2evaluations on HTTP 502 and 504 usingfeature_flag_request_max_retriesTesting
ruby -c lib/posthog/feature_flags.rbbundle exec rspec spec/posthog/flags_spec.rbbundle exec rubocop lib/posthog/feature_flags.rb spec/posthog/flags_spec.rb