Skip to content

Commit

Permalink
Merge 849901b into d4c8e65
Browse files Browse the repository at this point in the history
  • Loading branch information
khushbr authored Sep 6, 2023
2 parents d4c8e65 + 849901b commit 3c7514e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Build Artifacts
working-directory: ./tmp/pa
run: |
./gradlew build buildDeb buildRpm --refresh-dependencies -Dbuild.snapshot=false -Dperformance-analyzer-rca.build=true -Dperformance-analyzer-rca.branch=2.x -x javadoc
./gradlew build buildDeb buildRpm --refresh-dependencies -Dbuild.snapshot=false -Dperformance-analyzer-rca.build=true -Dperformance-analyzer-rca.branch=2.10 -x javadoc
mkdir artifacts
artifact=`ls build/distributions/*.zip`
rpm_artifact=`ls build/distributions/*.rpm`
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Java CI

on:
push:
branches:
on:
push:
branches:
- "*"
pull_request:
branches:
branches:
- "*"

jobs:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
./gradlew build -Dperformance-analyzer-rca.build=true \
-Dperformance-analyzer-rca.repo="https://github.com/opensearch-project/performance-analyzer-rca.git" \
-Dperformance-analyzer-rca.branch="2.x"
-Dperformance-analyzer-rca.branch="2.10"
- name: Assemble PA jar for BWC tests
working-directory: ./tmp/performance-analyzer
run: |
Expand Down
10 changes: 5 additions & 5 deletions bin/performance-analyzer-agent
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ elif [ ! -z "$OPENSEARCH_JAVA_HOME" ]; then
# Use OPENSEARCH_JAVA_HOME if present
JAVA_HOME=$OPENSEARCH_JAVA_HOME
elif [ -z "$JAVA_HOME" ]; then
# Nor OPENSEARCH_JAVA_HOME nor JAVA_HOME is present, failing
# Nor OPENSEARCH_JAVA_HOME nor JAVA_HOME is present, failing
echo "OPENSEARCH_JAVA_HOME / JAVA_HOME needs to be set or passed in as the second parameter."
exit 1
fi
Expand All @@ -34,12 +34,12 @@ export JAVA_HOME=$JAVA_HOME
# We need to change this file: https://github.com/opensearch-project/opensearch-build/blob/main/release/docker/config/opensearch/opensearch-docker-entrypoint.sh

if ! echo $* | grep -E '(^-d |-d$| -d |--daemonize$|--daemonize )' >/dev/null; then
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca-3.0.0-SNAPSHOT/config/log4j2.xml
exec $OPENSEARCH_HOME/performance-analyzer-rca-3.0.0-SNAPSHOT/bin/performance-analyzer-rca
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca-2.10.0-SNAPSHOT/config/log4j2.xml
exec $OPENSEARCH_HOME/performance-analyzer-rca-2.10.0-SNAPSHOT/bin/performance-analyzer-rca
else
echo 'Starting deamon'
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca-3.0.0-SNAPSHOT/config/log4j2.xml
exec $OPENSEARCH_HOME/performance-analyzer-rca-3.0.0-SNAPSHOT/bin/performance-analyzer-rca &
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca-2.10.0-SNAPSHOT/config/log4j2.xml
exec $OPENSEARCH_HOME/performance-analyzer-rca-2.10.0-SNAPSHOT/bin/performance-analyzer-rca &

pid=$!
PID_LOC=/tmp/performance-analyzer-agent
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
// is a library dependency with hardcoded versioning in PA and RCA repos.
paCommonsVersion = "1.0.0"

// 3.0.0-SNAPSHOT -> 3.0.0.0-SNAPSHOT
// 2.10.0-SNAPSHOT -> 2.10.0.0-SNAPSHOT
version_tokens = opensearch_version.tokenize('-')
opensearch_build = version_tokens[0] + '.0'
if (buildVersionQualifier) {
Expand Down Expand Up @@ -81,7 +81,7 @@ ext {
// The RCA branch that will be built. Default branch is 2.x for 2.x branch.
rcaProjectRepo = System.getProperty("performance-analyzer-rca.repo", "https://github.com/opensearch-project/performance-analyzer-rca.git")
rcaProjectFetch = System.getProperty("performance-analyzer-rca.fetch", "origin")
rcaProjectBranch = System.getProperty("performance-analyzer-rca.branch", "${rcaProjectFetch}/2.x")
rcaProjectBranch = System.getProperty("performance-analyzer-rca.branch", "${rcaProjectFetch}/2.10")

// If true, then the build will clone the RCA Project into $rcaProjectDir
cloneRcaProject = "true" == System.getProperty("performance-analyzer-rca.build", "true")
Expand Down
1 change: 1 addition & 0 deletions licenses/bcprov-jdk15to18-1.75.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
df22e1b6a9f6b218913f5b68dd16641344397fe0
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Compatible with OpenSearch 2.4.0
* Update jackson to 2.13.4 ([#293](https://github.com/opensearch-project/performance-analyzer/pull/293))
* Add group = org.opensearch.plugin ([#304](https://github.com/opensearch-project/performance-analyzer/pull/304)) ([#305](https://github.com/opensearch-project/performance-analyzer/pull/305))
* Address CVE-2022-42003 ([#312](https://github.com/opensearch-project/performance-analyzer/pull/312))
* Deprecate master nomenclature in 2.x ([#319](https://github.com/opensearch-project/performance-analyzer/pull/319))
* Deprecate master nomenclature in 2.4 ([#319](https://github.com/opensearch-project/performance-analyzer/pull/319))

0 comments on commit 3c7514e

Please sign in to comment.