-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add option to overwrite Docker read and open timeout values #10359
Conversation
9035f98
to
2cbcb34
Compare
The e2e failures seem unrelated to my change |
6c031da
to
8209f5d
Compare
8209f5d
to
01e11d8
Compare
@jeffwidman Any chance you can review this? |
6e51aee
to
071ff89
Compare
071ff89
to
72bd645
Compare
Hi @yeikel , Thanks for the contribution!! We are reviewing the changes. |
Hi @yeikel , do you happen to know the default value for DockerRegistry2::Registry.new( |
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.
approving the changes.
Hi @sachin-sandhu See the defaults here https://github.com/deitch/docker_registry2/blob/bfde04144f0b7fd63c156a1aca83efe19ee78ffd/lib/registry/registry.rb#L26-L27 |
c1ca350
to
b44bbf7
Compare
You are right. I updated it and it should be ready now. I also documented the default values |
a2ed997
to
236dfb0
Compare
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.
Approving based on discussions and changes.
@yeikel , thanks for the changes , the test cases are good now , i have approved it and will be deploying/merging today. Thanks for improving !! |
236dfb0
to
f599428
Compare
Update: PR was deployed and merged, we didn't find any issues while monitoring cc @yeikel , @abdulapopoola |
What are you trying to accomplish?
Allows overwriting the read and open timeout values for interactions with the docker registry using two separate environment variables
What issues does this affect or fix?
I do not have any issue in the tracker, but I noticed this need while using
dependabot-core
with slow private registriesIf there were multiple ways to approach the problem, why did you pick this one?
Initially, I considered using the existing environment variables defined here :
dependabot-core/common/lib/dependabot/clients/github_with_retries.rb
Lines 13 to 14 in c95a0fc
But I noticed that the default values there are different and I figured that separate environment properties may be better
Checklist