-
Notifications
You must be signed in to change notification settings - Fork 163
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 the feature of showing useful error message during CI #1083
Add the feature of showing useful error message during CI #1083
Conversation
045ea0b
to
6d689bc
Compare
Codecov Report
@@ Coverage Diff @@
## main #1083 +/- ##
=======================================
Coverage 72.27% 72.27%
=======================================
Files 87 87
Lines 1915 1915
Branches 244 244
=======================================
Hits 1384 1384
Misses 478 478
Partials 53 53 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -16,6 +16,9 @@ jobs: | |||
wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.3.0/latest/linux/x64/tar/builds/opensearch/dist/opensearch-min-2.3.0-linux-x64.tar.gz | |||
tar -xzf opensearch-*.tar.gz | |||
rm -f opensearch-*.tar.gz | |||
|
|||
- name: Check the validation of OpenSearch Security Plugin | |||
run: wget -S --spider https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.3.0/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-security-2.3.0.0.zip || (echo "Please make sure security plugin has been bumped to the same version and added to manifest." && exit 1) |
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.
Is it possible to create variables in the Github actions files? We use the version in a number of places and it would be nice to define it once.
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.
Hi @cwperks. Thanks for the reply. I think we can only set up the environment variables in the Github actions files. I can definitely try to set it up in the environment variable to see if it works.
@@ -16,6 +16,9 @@ jobs: | |||
wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.3.0/latest/linux/x64/tar/builds/opensearch/dist/opensearch-min-2.3.0-linux-x64.tar.gz | |||
tar -xzf opensearch-*.tar.gz | |||
rm -f opensearch-*.tar.gz | |||
|
|||
- name: Check the validation of OpenSearch Security Plugin |
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 would fail the integration-test
workflow, what would you think about creating a separate workflow called something like prerequisites
that could have a task named "Verify there is matching build of security plugin"
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.
Hi @peternied. Thanks for the reply! The reason I set to check it up here because if this one fails, the next test of Download OpenSearch Security Plugin
will also be failed and break the integration-test
. I was planning to use this test only as the prerequisite for checking the test of Download OpenSearch Security Plugin
. Sorry for the confusions anyways. Please correct me if I miss some of the steps.
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.
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 I get it now! Ya I will create a new work flow with a better name for running this separately! Thanks @peternied!
5a346cf
to
cf9334e
Compare
63d3b75
to
7a7531e
Compare
He guys, I have made the update of this PR:
|
@RyanL1997 Would you please add the new behavior in the PR description? |
7a7531e
to
ace1a7b
Compare
ace1a7b
to
98cfda1
Compare
name: Run prerequisite tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check the validation of OpenSearch Security Plugin |
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.
The name of this should reflect what the check is performing. How does "Check for the existence of the OpenSearch Security Plugin artifact" sound?
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.
Sure, I have updated the commit and also changed the PR description with that. Thx for the review @cwperks!
98cfda1
to
3c01353
Compare
@@ -0,0 +1,14 @@ | |||
name: Verify there is matching build of security plugin |
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.
|
||
jobs: | ||
tests: | ||
name: Run prerequisite tests |
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 to above: maybe "Run prerequisite checks"?
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! I have changed the name for both test's name and the sub tests' name. Please review it.
3c01353
to
cac0c5e
Compare
…sion variable Signed-off-by: Ryan Liang <[email protected]>
cac0c5e
to
b62d5cd
Compare
…sion variable (#1083) Signed-off-by: Ryan Liang <[email protected]> (cherry picked from commit 964e804)
…sion variable (#1083) (#1085) Signed-off-by: Ryan Liang <[email protected]> (cherry picked from commit 964e804) Co-authored-by: Ryan Liang <[email protected]>
Signed-off-by: Ryan Liang [email protected]
Description
Create a separate workflow and implemented environment variable of version to check for the existence of the OpenSearch Security Plugin artifact
Issues Resolved
Testing
CI test case#1 with "403 Forbidden" responseCI test case#2 with "404 Not Found" responseCreated a new workflow for "Verify there is matching build of security plugin" by running
prerequisites-test
Check List
New functionality includes testingNew functionality has been documentedBy 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.