-
Notifications
You must be signed in to change notification settings - Fork 29
Update CI workflows to use more Python and OpenSearch versions #92
Update CI workflows to use more Python and OpenSearch versions #92
Conversation
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
@Yury-Fridlyand This is fixed in #84 by updating the ubuntu version. |
Signed-off-by: Yury-Fridlyand <[email protected]>
@VachaShah, that was downgrade actually... |
Yup sorry 🤦🏼♀️ by restricting the ubuntu version |
@VachaShah, I can update CI to do extra run on python 3.5 and 3.6 on ubuntu 20.04 if you think it is important. |
Sorry @Yury-Fridlyand, I missed this. I think it would be good to have python 3.5 and 3.6 in the CI as well since we support those client versions. It will help us know if something fails for those python versions. |
I'm trying to extend CI for all opensearch and python versions. It seems pretty simple, but I have two troubles I'd like you to help me, @VachaShah:
|
@Yury-Fridlyand Ofcourse happy to help!
|
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
I think I got your idea. Thank you for the advice. Note: Deprecation message about Python 2.7 can't be suppressed - there is a bug in third-party tool. If this approach and changes approved, I will apply them to other OpenSearch Python repos. |
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.
This is awesome @Yury-Fridlyand!
- { opensearch_ref: '2.0' } | ||
- { opensearch_ref: 'main' } | ||
opensearch_ref: [ '1.x', '2.x', '2.0', 'main' ] | ||
python-version: [ '2.7', '3.7', '3.8', '3.9', '3.10', '3.11' ] |
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 think we don't need to specify multiple python versions here. The same code is tested against multiple versions of python in ci.yml
. The main purpose here is to test its connectivity to server. WDYT?
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 agree. Will update CI shortly.
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.
Fixed in bf484a9.
sleep 90 | ||
nox --no-error-on-missing-interpreter -rs lint test | ||
|
||
- name: Save server logs |
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.
Do we need to save the server logs? Wouldn't the failures appear on the workflow run?
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.
Logs could be helpful to analyze the failures in case if you can't or don't want to reproduce it on your machine.
They are stored in GHA for one or two weeks.
fail-fast: false | ||
matrix: | ||
opensearch_ref: [ '1.x', '2.x', '2.0', 'main' ] | ||
python-version: [ '3.5', '3.6' ] |
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.
Similar comment for multiple python versions.
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.
Fixed in bf484a9.
.github/workflows/integration.yml
Outdated
secured: ["true", "false"] | ||
version: [ '1.0.1', '1.1.0', '1.2.4', '1.3.7', '2.0.1', '2.1.0', '2.2.1', '2.3.0', '2.4.0', '2.5.0' ] | ||
secured: [ "true", "false" ] | ||
python-version: [ '2.7', '3.7', '3.8', '3.9', '3.10', '3.11' ] |
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.
Similar comment for multiple python versions.
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.
Fixed in bf484a9.
Signed-off-by: Yury-Fridlyand <[email protected]>
This is amazing @Yury-Fridlyand! |
Description
ubuntu-latest
was recently updated from20.04
to22.04
(announcement).setup-python
action doesn't support3.5
and3.6
on22.04
(link).Issues Resolved
Remove unsupported by GHA Python versions. Add newer versions instead.
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 the Developer Certificate of Origin and signing off your commits, please check here.