Skip to content

Commit

Permalink
Fix OpenDisro CI
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Feb 29, 2024
1 parent bd7b958 commit bfc0064
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
LOGSTASH_VERSION: ${{ matrix.logstash }}
OPENSEARCH_VERSION: ${{ matrix.opensearch }}
SECURE_INTEGRATION: ${{ matrix.secure }}
IS_OPENDISTRO: "no"
steps:
- name: Checkout plugin
uses: actions/checkout@v1
Expand All @@ -69,7 +68,6 @@ jobs:
LOGSTASH_VERSION: ${{ matrix.logstash }}
OPENDISTRO_VERSION: ${{ matrix.opendistro }}
SECURE_INTEGRATION: ${{ matrix.secure }}
IS_OPENDISTRO: "yes"
steps:
- name: Checkout plugin
uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# - `-Xregexp.interruptible=true -Xcompile.invokedynamic=true -Xjit.threshold=0` LS base-line
# - `-XX:+UseParallelGC` do not use G1 (default) on Java 11
# - `-v -W1` print JRuby version but do not go verbose
JRUBY_OPTS=-Xregexp.interruptible=true -Xcompile.invokedynamic=true -Xjit.threshold=0 -J-XX:+UseParallelGC -J-XX:+PrintCommandLineFlags -v -W1
JRUBY_OPTS=-Xregexp.interruptible=true -Xcompile.invokedynamic=true -Xjit.threshold=0 -J-XX:+UseParallelGC -J-XX:+PrintCommandLineFlags -v -W1
2 changes: 1 addition & 1 deletion scripts/logstash-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ "$SECURE_INTEGRATION" == "true" ]]; then
OPENSEARCH_REQUIRED_VERSION="2.12.0"
# Starting in 2.12.0, security demo configuration script requires an initial admin password
COMPARE_VERSION=`echo $OPENSEARCH_REQUIRED_VERSION $OPENSEARCH_VERSION | tr ' ' '\n' | sort -V | uniq | head -n 1`
if [ "$IS_OPENDISTRO" == "yes" ] || [ "$COMPARE_VERSION" != "$OPENSEARCH_REQUIRED_VERSION" ]; then
if [ -n "$OPENDISTRO_VERSION" ] || [ "$COMPARE_VERSION" != "$OPENSEARCH_REQUIRED_VERSION" ]; then
CREDENTIAL="admin:admin"
else
CREDENTIAL="admin:myStrongPassword123!"
Expand Down
1 change: 1 addition & 0 deletions scripts/opendistro/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
environment:
- INTEGRATION=true
- SECURE_INTEGRATION=${SECURE_INTEGRATION:-false}
- OPENDISTRO_VERSION=${OPENDISTRO_VERSION}

integration:
build:
Expand Down
2 changes: 1 addition & 1 deletion spec/opensearch_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def self.check_version?(*requirement)

# set admin password based on version
def self.admin_password
if check_version?('< 2.12.0')
if check_version?('> 2.12.0') || check_version?('> 7')
"admin"
else
"myStrongPassword123!"
Expand Down

0 comments on commit bfc0064

Please sign in to comment.