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

[BWC] Updates to BWC tests #1190

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

kavilla
Copy link
Member

@kavilla kavilla commented Jan 31, 2022

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

  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

@kavilla kavilla requested a review from a team as a code owner January 31, 2022 18:58
@kavilla kavilla changed the title Avillk/bwc test script Updates to BWC tests Jan 31, 2022
@kavilla kavilla changed the title Updates to BWC tests [BWC] Updates to BWC tests Jan 31, 2022
Copy link
Member

@ananzh ananzh left a 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. ❤️‍🔥

scripts/bwctest_osd.sh Outdated Show resolved Hide resolved
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"
Copy link
Member

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?

Copy link
Member Author

@kavilla kavilla Feb 1, 2022

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
Copy link
Member

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

Copy link
Member Author

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?

@kavilla kavilla force-pushed the avillk/bwc_test_script branch 3 times, most recently from 14b80bc to cce8adf Compare February 3, 2022 22:04
@kavilla kavilla force-pushed the avillk/bwc_test_script branch 2 times, most recently from f4a4e9e to 61988c6 Compare February 9, 2022 23:20
@kavilla kavilla requested a review from ananzh February 10, 2022 02:28
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
# [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
bwctest.sh Outdated Show resolved Hide resolved
@kavilla kavilla force-pushed the avillk/bwc_test_script branch 2 times, most recently from 45f6d91 to 6043713 Compare February 28, 2022 08:42
@kavilla kavilla requested a review from tmarkley February 28, 2022 19:00
tmarkley
tmarkley previously approved these changes Mar 1, 2022
Copy link
Contributor

@tmarkley tmarkley left a 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!

ananzh
ananzh previously approved these changes Mar 2, 2022
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]>
@kavilla kavilla dismissed stale reviews from ananzh and tmarkley via 66cb769 March 2, 2022 07:27
@kavilla kavilla force-pushed the avillk/bwc_test_script branch from 6043713 to 66cb769 Compare March 2, 2022 07:27
@kavilla
Copy link
Member Author

kavilla commented Mar 2, 2022

@ananzh, @tmarkley apologies, repushed because latest is now available for distributions. For example,

https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.3.0/latest/linux/x64/dist/opensearch/opensearch-1.3.0-linux-x64.tar.gz

@kavilla kavilla merged commit 6960f9c into opensearch-project:main Mar 2, 2022
@kavilla kavilla deleted the avillk/bwc_test_script branch March 2, 2022 23:15
@opensearch-trigger-bot
Copy link
Contributor

The backport to 1.x failed:

The process '/usr/bin/git' failed with exit code 1

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 base branch is 1.x and the compare/head branch is backport/backport-1190-to-1.x.

Tengda-He pushed a commit to Tengda-He/OpenSearch-Dashboards that referenced this pull request Mar 3, 2022
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]>
kavilla added a commit to kavilla/OpenSearch-Dashboards-1 that referenced this pull request Mar 9, 2022
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]>
kavilla added a commit to kavilla/OpenSearch-Dashboards-1 that referenced this pull request Mar 29, 2022
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]>
@ananzh ananzh mentioned this pull request Feb 1, 2023
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants