Skip to content
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

fix(api): Correctly apply BOUNDARY_MAX_RETRIES env var #5385

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

tmessi
Copy link
Member

@tmessi tmessi commented Dec 19, 2024

The api.Client was first checking for the environment variable, and then
resetting the max retries to 2, thus overriding the environment variable
value. In addition, the cli would set max retries to zero if the
environment variable was not set. This would mean that by default the
max retries would be zero, and if the environment variable was set, the
max retries would be 2, regardless of the actual value for the
environment variable.

This fixes the order in which the environment variables are read, to
ensure they take precedence.

@tmessi tmessi requested a review from a team as a code owner December 19, 2024 16:35
@github-actions github-actions bot added the api label Dec 19, 2024
@tmessi tmessi force-pushed the tmessi-fix-cli-max-retries-env branch from 92a57d3 to 4c9b32d Compare December 19, 2024 16:35
@tmessi tmessi added this to the 0.19.x milestone Dec 19, 2024
@tmessi tmessi requested a review from moduli December 19, 2024 16:57
Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

The api.Client was first checking for the environment variable, and then
resetting the max retries to 2, thus overriding the environment variable
value. In addition, the cli would set max retries to zero if the
environment variable was not set. This would mean that by default the
max retries would be zero, and if the environment variable was set, the
max retries would be 2, regardless of the actual value for the
environment variable.

This fixes the order in which the environment variables are read, to
ensure they take precedence.
@tmessi tmessi force-pushed the tmessi-fix-cli-max-retries-env branch from 4c9b32d to a3c847b Compare January 8, 2025 14:35
@tmessi tmessi merged commit 5329f92 into main Jan 8, 2025
64 of 65 checks passed
@tmessi tmessi deleted the tmessi-fix-cli-max-retries-env branch January 8, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants