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
Allow parallel requests to take place when non using github.com #1640
Allow parallel requests to take place when non using github.com #1640
Conversation
The parameter will unlock the possibility to use terraform parallelism but only for Enterprise servers where rate limiting differ from public Github's one and so the best practices(i.e perform one request per user key per time).
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
b173cfe
to
fb711a8
Compare
Fixed the failed check for "Incomplete regular expression for hostnames" |
Can you talk to me more about the |
Yes, that is the idea. I replaced all occurrences of The reasons that made me create the new function are:
|
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.
Thank you for working with me here. I have two testing and one comment requests for you and then I'll be 👍 on the change: can you please
- add unit test(s) that interrogate the regex for checking if we're on dotcom
- add unit test(s) that interrogate the smartLock function
- make a provider.go change to the description of parallel_requests that makes it clear when you'd want to use it
Added unit tests for smart_lock and fixed description for parallel_requests. Regarding |
Thank you!
That's a reasonable argument, we can leave that test out.
At the moment, acceptance tests are currently run manually and are not triggered on automated PR checks. I am hopeful that this will change in the future. |
Fixed a linting error 👆 |
@kfcampbell is it ok to move forward with this? |
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.
Yep, thanks for working with me here. I'll get this merged and released shortly.
…grations#1640) * rebase_upstream * Add parallel_requests_parameter The parameter will unlock the possibility to use terraform parallelism but only for Enterprise servers where rate limiting differ from public Github's one and so the best practices(i.e perform one request per user key per time). * Update github/provider.go Co-authored-by: Keegan Campbell <me@kfcampbell.com> * Add some descriptions and missing error handling * Fix code quality check's error by adding escapes isGithubDotCom regexp * Add smart_lock unit tests and fix description for parallel_requests config * Deferring the unlock in transport test for linter --------- Co-authored-by: Luca Rovinetti <luca.rovinetti@justeattakeaway.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Resolves #1597
Behavior
Before the change?
After the change?
Other information
Additional info
Pull request checklist
Does this introduce a breaking change?
no
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:Pull request type
Feature