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

Add Documentation for Python Support Guide #234

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

IanHoang
Copy link
Collaborator

Description

This PR adds documentation on how to add and test support for additional major and minor Python versions.

Issues Resolved

N/A

Testing

  • [N/A ] New functionality includes testing

No testing required as this is documentation related.


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.

Ian Hoang added 2 commits March 15, 2023 08:56
Signed-off-by: Ian Hoang <hoangia@amazon.com>
Signed-off-by: Ian Hoang <hoangia@amazon.com>
@IanHoang IanHoang requested a review from gkamat as a code owner March 15, 2023 14:03
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
PYTHON_SUPPORT_GUIDE.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@gkamat gkamat left a comment

Choose a reason for hiding this comment

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

Added some comments to aid with clarity.

Signed-off-by: Ian Hoang <hoangia@amazon.com>
```
python3 ~/.local/bin/opensearch-benchmark execute_test --workload=geonames --pipeline=benchmark-only --target-host="<OPENSEARCH CLUSTER ENDPOINT>" --client-options="basic_auth_user:'<USERNAME>',basic_auth_password:'<PASSWORD>'"
```

### Creating a Pull Request After Adding Changes and Testing Them Out
After adding python versions and testing them in environments, make a pull request on Github. Once that’s been merged, push a tag and get it approved by a maintainer. After this has been approved, Jenkins will publish to opensearch-benchmark’s Pypi account with the new version you updated it to.
After adding Python versions and testing them in environments, make a pull request on Github. Once that’s been merged, push a tag and get it approved by a maintainer. After this has been approved, Jenkins will publish to OpenSearch Benchmark’s Pypi account with the new version you updated it to.
Copy link
Collaborator

Choose a reason for hiding this comment

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

PyPI

For example: When I run which opensearch-benchmark on my Ubuntu environment, I get /home/ubuntu/.pyenv/shims/opensearch-benchmark. The path points to a shell script. Thus, I run the following to invoke a command:
Keep in mind the file path outputted differs for each operating system and might point to a shell script or a Python script. Depending on which it is, make sure you can invoke it with the proper prefix such as `bash` or `python3`.

- For example: When running `which opensearch-benchmark` on an Ubuntu environment, the commad line outputs `/home/ubuntu/.pyenv/shims/opensearch-benchmark`. On closer inspection, the path points to a shell script. Thus, to invoke OpenSearch Benchmark, pre-=append the OpenSearch Benchmark command with `bash` and the path outputted earlier:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor nit: "prepend" and "output earlier".

@IanHoang IanHoang merged commit 27cb82a into opensearch-project:main Mar 23, 2023
@IanHoang IanHoang deleted the update_documentation branch March 24, 2023 16:55
@IanHoang IanHoang restored the update_documentation branch March 24, 2023 16:55
@IanHoang IanHoang deleted the update_documentation branch March 24, 2023 16:56
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.

2 participants