-
Notifications
You must be signed in to change notification settings - Fork 893
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
[BWC] Updates to BWC tests #1190
[BWC] Updates to BWC tests #1190
Conversation
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.
LGTM, except some minor details..
Pls help me to understand. Thx. ❤️🔥
bwctest.sh
Outdated
@@ -2,25 +2,29 @@ | |||
|
|||
set -e | |||
|
|||
DEFAULT_OPENSEARCH="https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0/676/linux/x64/dist/opensearch/opensearch-2.0.0-linux-x64.tar.gz" |
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.
if we bring these two DEFAULT values, it definitely help users to run the script. but it would also need to be updated every version, right? so should we just let user to specify the os and osd location?
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.
Good catch! They can still do that for using yarn test:bwc
and passing the correct params. Right now people aren't pointed to run this script so ideally everything in this script is in a work in progress state.
This should be temp so it is setup to play with the CI/CD better. Ideally, this value on main
will be set with the results from this opensearch-project/opensearch-build#1492 so that it is always using the latest distribution of OpenSearch and we can pull the version of package.json to get the current value. Then when a release branch is cut we can just modify this so it only takes the release url something like https://artifacts.opensearch.org/releases/bundle/opensearch/$VERSION/opensearch-$VERSION-linux-x64.tar.gz
.
function run_dashboards { | ||
echo "[ Attempting to start OpenSearch Dashboards... ]" | ||
cd "$dashboards_dir" | ||
[ $SECURITY_ENABLED == "false" ] && rm config/opensearch_dashboards.yml && touch config/opensearch_dashboards.yml |
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 do we need to remove the config file? thx
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.
Right now by default OpenSearch Dashboards distributions come bundled with https://github.com/opensearch-project/opensearch-build/blob/main/config/opensearch_dashboards.yml. So it just ensures it doesn't have that security plugin configurations in the yaml file.
One gotcha here, is that it assumes that you are inputting a distribution/non-distribution that you didn't configure locally.
However, that can be logged as an improvement. With that said, is this ok?
14b80bc
to
cce8adf
Compare
f4a4e9e
to
61988c6
Compare
# [30.0.0](elastic/elastic-charts@v29.2.0...v30.0.0) (2021-06-04) ### Bug Fixes * **domain:** custom domain should not filter data ([opensearch-project#1181](elastic/elastic-charts#1181)) ([92ba84c](elastic/elastic-charts@92ba84c)), closes [opensearch-project#1129](elastic/elastic-charts#1129) * **value_labels:** zero as a valid value for textBorder and borderWidth ([#1182](elastic/elastic-charts#1182)) ([880fbf1](elastic/elastic-charts@880fbf1)) * annotation tooltip display when remounting specs ([opensearch-project#1167](elastic/elastic-charts#1167)) ([7163951](elastic/elastic-charts@7163951)) * render nodeLabel formatted text into the nodes ([opensearch-project#1173](elastic/elastic-charts#1173)) ([0de9688](elastic/elastic-charts@0de9688)) ### Features * **axis:** allow pixel domain padding for y axes ([#1145](elastic/elastic-charts#1145)) ([6787728](elastic/elastic-charts@6787728)) * apply value formatter to the default legend item label ([opensearch-project#1190](elastic/elastic-charts#1190)) ([20108bb](elastic/elastic-charts@20108bb)) * **tooltip:** stickTo vertical middle of the cursor ([#1163](elastic/elastic-charts#1163)) ([b858fb3](elastic/elastic-charts@b858fb3)), closes [opensearch-project#1108](elastic/elastic-charts#1108) * **wordcloud:** click and over events on text ([opensearch-project#1180](elastic/elastic-charts#1180)) ([adbf341](elastic/elastic-charts@adbf341)), closes [opensearch-project#1156](elastic/elastic-charts#1156) ### BREAKING CHANGES * **value_labels:** the `textBorder` of `ValueFillDefinition` is now optional or a number only
45f6d91
to
6043713
Compare
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.
Looks great, thanks Rocky!
Allows the calling script with file location or url to enable the CI/CD pipeline to pass URLs. Some minor clean ups related to linter and pass by CSV for params. Finally, update to add releases parameter which enables us to test version mismatch if/when we allow the out of the box experience of OpenSearch Dashboards to work with previous versions of OpenSearch. Signed-off-by: Kawika Avilla <[email protected]>
6043713
to
66cb769
Compare
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-1190-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6960f9c5385f456ccb66ce236798088496e7c46a
# Push it to GitHub
git push --set-upstream origin backport/backport-1190-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 |
Allows the calling script with file location or url to enable the CI/CD pipeline to pass URLs. Some minor clean ups related to linter and pass by CSV for params. Finally, update to add releases parameter which enables us to test version mismatch if/when we allow the out of the box experience of OpenSearch Dashboards to work with previous versions of OpenSearch. Signed-off-by: Kawika Avilla <[email protected]>
Allows the calling script with file location or url to enable the CI/CD pipeline to pass URLs. Some minor clean ups related to linter and pass by CSV for params. Finally, update to add releases parameter which enables us to test version mismatch if/when we allow the out of the box experience of OpenSearch Dashboards to work with previous versions of OpenSearch. Signed-off-by: Kawika Avilla <[email protected]>
Allows the calling script with file location or url to enable the CI/CD pipeline to pass URLs. Some minor clean ups related to linter and pass by CSV for params. Finally, update to add releases parameter which enables us to test version mismatch if/when we allow the out of the box experience of OpenSearch Dashboards to work with previous versions of OpenSearch. Signed-off-by: Kawika Avilla <[email protected]>
Description
Allows the calling script with file location or url to enable
the CI/CD pipeline to pass URLs.
Some minor clean ups related to linter and pass by CSV for params.
Finally, update to add releases parameter which enables us to test
version mismatch if/when we allow the out of the box experience of
OpenSearch Dashboards to work with previous versions of OpenSearch.
Signed-off-by: Kawika Avilla [email protected]
Issues Resolved
n/a
Check List