-
Notifications
You must be signed in to change notification settings - Fork 80
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
CorePluginSourceDownloader Migration #179
CorePluginSourceDownloader Migration #179
Conversation
Signed-off-by: Chase Engelbrecht <[email protected]>
Signed-off-by: Chase Engelbrecht <[email protected]>
Signed-off-by: Chase Engelbrecht <[email protected]>
…. Remove member class initialization in constructor in favor of passing in as args for factory pattern Signed-off-by: Chase Engelbrecht <[email protected]>
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.
Generally LGTM.
|
||
|
||
class SourceBinaryBuilder(BinaryBuilder): | ||
def __init__(self, executor, path_manager, jdk_resolver, source_directory, build_jdk, log_directory): |
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.
I'd rename it as build_jdk_version
, but up to you. The naming build_jdk
mostly makes sense, it's about the jdk version, but there's a slight chance that people may think it's a boolean first then figure out "build a JDK" wound not make sense here.
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.
That's a good callout, will rename
Signed-off-by: Chase Engelbrecht <[email protected]>
;param host: A host object representing the machine on which to run the commands | ||
;param build_commands: A list of strings representing sequential bash commands used to build the binaries | ||
;param override_source_directory: A string representing the source directory where the pre-binary code is located | ||
;return None |
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.
Nit: Should these semicolons be colons?
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.
Yes. Not sure where I picked up the semi-colon thing but I've made that mistake elsewhere too. Will fix this instance then blanket refactor the rest in a followup PR
Signed-off-by: Chase Engelbrecht <[email protected]>
Description
Migrates the CorePluginSourceDownloader. Also implements a help class
SourceBuilder
Issues Resolved
#134
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.