-
Notifications
You must be signed in to change notification settings - Fork 141
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
Reorganize GitHub workflows. #837
Reorganize GitHub workflows. #837
Conversation
**Reorganize GitHub workflows:** * Remove obsoleve workflows, mostly related to releaseing ODFE artifacts. * Update actions in rest workflows. * Limit workflow scopes: * Reduce file scope, for example, JDBC workflow will be triggered on JDBC changes only. * Reduce action scope, so workflows shouldn't be triggered twice on PR. * Strictly define env version to avoid unexpected failures. * Upload test reports for SQL plugin workflow. * Activate tests for SQL CLI. Signed-off-by: Yury-Fridlyand <[email protected]>
* Add new test workflow. Signed-off-by: Yury-Fridlyand <[email protected]>
.github/workflows/backport.yml
Outdated
@@ -7,7 +7,7 @@ on: | |||
|
|||
jobs: | |||
backport: | |||
runs-on: ubuntu-latest | |||
runs-on: ubuntu-20.04 |
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 am not sure about that, do we have any known issue regarding to ubuntu-latest. Any reason change to 20.04?
I think opensearch-project use ubuntu-latest by default.
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.
Please, follow these 2 links or see TLDR section
Bit-Quill#118 (comment)
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
TL;DR
ubuntu-latest
= ubuntu-20.04
now, but subject to change
# tests are designed to run against http://localhost:9200, so we have to disable/remove security plugin | ||
- name: Download and run OpenSearch | ||
run: | | ||
docker run -p 9200:9200 -e "discovery.type=single-node" -e "DISABLE_SECURITY_PLUGIN=true" --name test -d opensearchproject/opensearch:${{ matrix.opensearch-version }} |
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.
it may not work. e.g, currently, SQL plugin depend on OpenSearch 2.4. But OpenSearch 2.4 Docker Images is not released yet.
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.
Currently, there are only 2.2.1
and latest
in the test matrix. latest
grabs the latest released version.
I can create another sub-job to download and build OpenSearch. So tests would run on the current
version, e.g. 2.4 for now.
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.
Might be worthwhile the next time someone has a chance.
Another side-effect, is that we would have an artefact to download for our own local development usage... instead of having to download and setup the latest OpenSearch.
with: | ||
name: opensearch-sql | ||
path: opensearch-sql-builds | ||
|
||
- name: Upload test reports |
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.
why add this? upload to where?
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.
It create a downloadable artifact, like you see there on bottom by following the link. Default lifetime of those is few days or one week.
https://github.com/Bit-Quill/opensearch-project-sql/actions/runs/3087022572
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.
a few questions
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[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.
thanks
@@ -39,6 +39,7 @@ def test_query(self, connection): | |||
) | |||
|
|||
@estest | |||
@pytest.mark.skip(reason="Test is not compatible with OpenSearch >= 2.3.0, it returns HTTP/503 instead of HTTP/400") |
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've left a comment on the bug to revert this if it's fixed: #851
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.x 1.x
# Navigate to the new working tree
cd .worktrees/backport-1.x
# Create a new branch
git switch --create backport/backport-837-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 10e44ee6439cf130fdc9bff3081503951c42a1cd
# Push it to GitHub
git push --set-upstream origin backport/backport-837-to-1.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.x Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-main main
# Navigate to the new working tree
cd .worktrees/backport-main
# Create a new branch
git switch --create backport/backport-837-to-main
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 10e44ee6439cf130fdc9bff3081503951c42a1cd
# Push it to GitHub
git push --set-upstream origin backport/backport-837-to-main
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-main Then, create a pull request where the |
…nize-workflows Reorganize GitHub workflows. (cherry picked from commit 10e44ee)
…nize-workflows Reorganize GitHub workflows. (cherry picked from commit 10e44ee) Signed-off-by: Yury-Fridlyand <[email protected]>
…nize-workflows Reorganize GitHub workflows. (cherry picked from commit 10e44ee) Signed-off-by: Yury-Fridlyand <[email protected]>
Reorganize GitHub workflows. (cherry picked from commit 10e44ee) Signed-off-by: Yury-Fridlyand <[email protected]>
Reorganize GitHub workflows. (cherry picked from commit 10e44ee) Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand [email protected]
Description
See also discussion in #118 and #119.
Issues Resolved
Not included changes
ODBC workflow still uses MacOS env v.10.15 which is obsolete. It fails on MacOS 11. We can't switch to newer MacOS version without changing/updating ODBC build process. This will be done in scope of another PR.
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.