Skip to content

feat: add retry jitter configuration#1256

Open
viacheslav-rostovtsev wants to merge 5 commits intogoogleapis:mainfrom
viacheslav-rostovtsev:dev/virost/enable_jitter_config
Open

feat: add retry jitter configuration#1256
viacheslav-rostovtsev wants to merge 5 commits intogoogleapis:mainfrom
viacheslav-rostovtsev:dev/virost/enable_jitter_config

Conversation

@viacheslav-rostovtsev
Copy link
Member

Changes:

  • Templates: Updated the ERB templates for gRPC, REST, and Cloud wrapper gems to document the :jitter field in the retry_policy configuration block. It is documented as a Numeric with a default of 1.0.
  • Showcase Tests: Added tests (test_wait_retry_default_jitter and test_wait_retry_configured_jitter) to verify the jitter logic is functioning correctly when utilizing wait.
  • gapic-common Dependency: Bumped the gapic-common dependency version to ~> 1.3 in gapic-generator/lib/gapic/presenters/gem_presenter.rb to utilize the new jitter features.
  • Golden Files: Regenerated all golden files to include the updated retry_policy documentation and the new gapic-common version dependency.

Updates the client configuration templates to document the `:jitter`
parameter in the `retry_policy` configuration. This aligns the
generated documentation with the new jitter capability in `gapic-common`.
Adds tests to the showcase `wait` test suite to verify that the
generated client passes the `jitter` configuration to `gapic-common`
and that the sleep delay correctly respects the jitter bounds.
Regenerates the golden output files across all generators to reflect
the documentation changes to the `retry_policy` configuration blocks.
Update the required gapic-common version in GemPresenter to ~> 1.3 to utilize the new retry jitter functionality.
Regenerated output to use gapic-common ~> 1.3
@viacheslav-rostovtsev viacheslav-rostovtsev requested a review from a team as a code owner March 5, 2026 20:40
@aandreassa
Copy link
Contributor

LGTM!

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.

2 participants