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

Move git_repository into its own Python package and update build.py and test.py to use the new location. #186

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

camerski
Copy link
Contributor

Move git_repository from build_workflow into a new "git" package and update build.py and test.py to use the new location.

Remove the duplicate GitRepository from test_workflow.

Change test.py to use the manifests and git packages. Move bundle_manifest to the manifests package.

Rename integ_test.py to integ_test_suite.py.

Testing

Manually verified that build.py and test.py still work.

Check List

  • 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.

@camerski camerski requested review from mch2 and dblock August 11, 2021 00:13
@camerski camerski force-pushed the test-workflow-refactor branch 2 times, most recently from 0d6038d to 6714577 Compare August 11, 2021 00:58
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, consider addressing some minor things below now or later

data = yaml.safe_load(file)
return BundleManifest(data)

@staticmethod
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still used?

@@ -0,0 +1,14 @@
import os
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to try and be consistent between dashes and underscores in bundle-workflow and test-workflow?

script = self.repo.dir.name + "/integtest.sh"
if (os.path.exists(script)):
print(f'sh integtest.sh -b {cluster.endpoint()} -p {cluster.port()}')
# repo.execute(f'sh integtest.sh -b {cluster.endpoint()} -p {cluster.port()}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to leave this commented out? It wasn't in the original implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's stubbed out for now until we implement the setup-and-tear-down-the-test-cluster code.

@dblock
Copy link
Member

dblock commented Aug 11, 2021

This needs a rebase.

Copy link
Member

@mch2 mch2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with a rebase

Move git_repository from build_workflow into a new "git" package and update build.py and test.py to use the new location.

Remove the duplicate GitRepository from test_workflow.

Change test.py to use the manifests and git packages. Move bundle_manifest to the manifests package.

Rename integ_test.py to integ_test_suite.py.

Signed-off-by: Cameron Skinner <camerski@amazon.com>
@camerski camerski merged commit 7fc55f1 into main Aug 12, 2021
@camerski camerski deleted the test-workflow-refactor branch August 12, 2021 17:55
alborotogarcia pushed a commit to alborotogarcia/opensearch-build that referenced this pull request Sep 7, 2021
…ensearch-project#186)

Move git_repository from build_workflow into a new "git" package and update build.py and test.py to use the new location.

Remove the duplicate GitRepository from test_workflow.

Change test.py to use the manifests and git packages. Move bundle_manifest to the manifests package.

Rename integ_test.py to integ_test_suite.py.

Signed-off-by: Cameron Skinner <camerski@amazon.com>
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.

3 participants