-
Notifications
You must be signed in to change notification settings - Fork 146
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
Made the Timeout in LicenseInformationService configurable via CLI argument (#584) #773
Conversation
kidcline1
commented
Nov 1, 2024
- Added new command line argument for generator (lto)
- Modified LicenseInformationService and LicenseInformationFetcher to allow passing timeout as an argument
- Removed hardcoded limit of 30 seconds
@microsoft-github-policy-service agree |
Strictly speaking, this is a breaking change because it changes a public interface; it would break any consumers of the API who had their own implementation of the
Then you derive
|
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.
Left several comments
- Renamed variables to specify Seconds - Added new CLI arg -lto to docs - Added support for negative values for -lto - Added tests for limits of -lto - Fixed breaking API change by creating new Interfaces - Changed some magic numbers to constants instead - Added some Warning statements
I was wondering how best to handle that. Thank you for the suggestion - I have implemented the two new interfaces |
Hello @DaveTryon, thank you for the thorough code review. I have made the requested changes in the latest commit. |
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.
Thanks for the changes--it's very close. I think we need to be more explicit/restrictive in the allowed range of timeout values, make sure that the docs and tests cover the range, and we'll be ready to go
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #773 +/- ##
==========================================
- Coverage 70.13% 69.98% -0.15%
==========================================
Files 277 277
Lines 8651 8700 +49
Branches 1006 1014 +8
==========================================
+ Hits 6067 6089 +22
- Misses 2065 2091 +26
- Partials 519 520 +1 ☔ View full report in Codecov by Sentry. |
- Fixed a couple of minor bugs - Reduced valid input range for -lto to 1-86400 - Moved MaxTimeout and DefaultTimeout to Constants class
Thanks. I've made the changes requested. For the change I commented on, I made the change based on what I think you were getting at since |
I would like to set the timeout as well. Really looking forward to getting that feature. |
Hello @DaveTryon, I've made the changes requested. Is there anything else I need to do on my end? |
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.
Thanks, @kidcline1! I was busy on other tasks and lost track of this. These changes look really good to me. Assuming everything goes smoothly, we should get this merged in the next day or two. Our entire organization is currently operating under a release freeze for the holidays, so we won't be able to release the new version until early January.