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

CorePluginSourceDownloader Migration #179

Merged
merged 6 commits into from
Apr 11, 2022

Conversation

engechas
Copy link
Contributor

@engechas engechas commented Apr 7, 2022

Description

Migrates the CorePluginSourceDownloader. Also implements a help class SourceBuilder

Issues Resolved

#134

Check List

  • New functionality includes testing
    • All unit and integration tests pass
  • Commits are signed per the DCO using --signoff

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.

…. Remove member class initialization in constructor in favor of passing in as args for factory pattern

Signed-off-by: Chase Engelbrecht <[email protected]>
Copy link

@weifenh weifenh left a 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):
Copy link

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.

Copy link
Contributor Author

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]>
Comment on lines 14 to 17
;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
Copy link
Contributor

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?

Copy link
Contributor Author

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

@engechas engechas merged commit b01a39f into opensearch-project:main Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants