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

[AUTO] Incremented version to 2.14.1. #313

Open
wants to merge 44 commits into
base: 2.14
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fc352a9
Add 2.14 release notes (#299)
zane-neo Apr 30, 2024
1ddf2cd
add error message for NPE (#301) (#304)
opensearch-trigger-bot[bot] Apr 30, 2024
37beb3b
Increment version to 2.14.0-SNAPSHOT
opensearch-ci-bot Apr 30, 2024
8ee946b
Change AD jar name for 2.14 compatibility (#308)
dbwiddis May 1, 2024
e2da02d
Increment version to 2.15.0-SNAPSHOT (#310)
opensearch-trigger-bot[bot] Jun 6, 2024
bb32961
Fix build error due to upstream change (#316) (#317)
Hailong-am Jun 6, 2024
a544e37
add release note (#320)
zane-neo Jun 11, 2024
9e572a8
Fix it failure (#321) (#322)
opensearch-trigger-bot[bot] Jun 12, 2024
51e58c5
Fix search alert IT failure (#329)
zane-neo Jun 14, 2024
30bd989
Fix flaky ITs (#332)
zane-neo Jun 14, 2024
4039bf7
change log level to error (#339)
zane-neo Jun 21, 2024
08f41b8
fix compilation error and change gradle version to compatible with jd…
zane-neo Jul 4, 2024
5340662
backport (#352)
zhichao-aws Jul 16, 2024
858e1e3
[Feature] support nested query in neural sparse tool, vectorDB tool a…
opensearch-trigger-bot[bot] Jul 17, 2024
32382ab
Add cluster setting to control ppl execution (#344) (#356)
opensearch-trigger-bot[bot] Jul 17, 2024
d5af2e1
[Backport 2.x] Add CreateAnomalyDetectorTool (#355)
gaobinlong Jul 18, 2024
dc7bd7a
Increment version to 2.16.0-SNAPSHOT (#324)
opensearch-trigger-bot[bot] Jul 19, 2024
4c32da7
fix(deps): update dependency lombok to v1.18.34 (#266) (#365)
opensearch-trigger-bot[bot] Jul 25, 2024
c0d3aff
chore(deps): update dependency gradle to v8.9 (#275) (#366)
zane-neo Jul 25, 2024
0fbce60
Add 2.16 release note (#373)
zane-neo Jul 29, 2024
c52dbea
Add includeFields parameter to the method extractFieldNamesTypes (#37…
opensearch-trigger-bot[bot] Aug 2, 2024
fc9ae93
[Backport] Remove ppl tool execution setting (#383)
zane-neo Aug 3, 2024
fc23773
Fix 2.17 compilation error since AD change (#388)
zane-neo Aug 28, 2024
10b7f8b
backport #256 to 2.x (#367)
zane-neo Aug 28, 2024
69aa50e
backport #258 to 2.x (#370)
zane-neo Aug 28, 2024
3cbb1f4
Upgrade apache common lang version to 3.16 (#390)
zane-neo Aug 28, 2024
6b399d0
chore(deps): update dependency gradle to v8.10 (#389) (#392)
opensearch-trigger-bot[bot] Aug 29, 2024
76d65e3
chore(deps): update plugin io.freefair.lombok to v8.10 (#393) (#394)
opensearch-trigger-bot[bot] Aug 29, 2024
d4051e5
Add 2.17 release note (#401)
zane-neo Sep 7, 2024
8e73e33
Fix 2.17 test compilation issue (#406)
zane-neo Sep 10, 2024
232f11f
[AUTO] Increment version to 2.18.0-SNAPSHOT (#400)
opensearch-trigger-bot[bot] Sep 29, 2024
a26c924
Add LogPatternTool (#413) (#418)
qianheng-aws Sep 29, 2024
098e6d7
Optimize the default prompt and make prompt customizable for create a…
opensearch-trigger-bot[bot] Sep 29, 2024
8b94c60
Fix test failure due to external change (#427)
gaobinlong Oct 11, 2024
4c6934b
[Backport 2.x] Fix CreateAnomalyDetectorTool doesn't support data str…
opensearch-trigger-bot[bot] Oct 11, 2024
31e40d2
[Backport 2.x] Add IT for LogPatternTool (#424)
opensearch-trigger-bot[bot] Oct 12, 2024
18789fd
backport #279 #43 to 2.x (#433)
zane-neo Oct 14, 2024
0fb8b6b
backport 363 to 2.x branch (#438)
zane-neo Oct 17, 2024
711aebe
chore(deps): update dependency gradle to v8.10.2 (#432) (#439)
opensearch-trigger-bot[bot] Oct 17, 2024
3bbc84a
chore(deps): update plugin io.freefair.lombok to v8.10.2 (#434) (#441)
opensearch-trigger-bot[bot] Oct 17, 2024
c36317c
backport #437 to 2.x branch (#443)
zane-neo Oct 17, 2024
34a0ce0
Fix compilation failure due to ad change (#451)
zane-neo Oct 23, 2024
2aa25d1
Add 2.18 release notes (#450)
zane-neo Oct 23, 2024
7d87ee8
Incremented version to 2.18.1
opensearch-ci-bot Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
strategy:
matrix:
java: [11, 17, 21]
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
name: Build and Test skills plugin on Linux
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -87,7 +89,7 @@ jobs:
export FC=/usr/local/Cellar/gcc/12.2.0/bin/gfortran
- name: Run build
run: |
./gradlew build
./gradlew build -Dos.arch=x86_64

build-windows:
strategy:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
strategy:
matrix:
java: [11, 17, 21]

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
name: Run Security Integration Tests on Linux
runs-on: ubuntu-latest
needs: Get-CI-Image-Tag
Expand Down
30 changes: 15 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
buildscript {
ext {
opensearch_group = "org.opensearch"
opensearch_version = System.getProperty("opensearch.version", "2.13.0-SNAPSHOT")
opensearch_version = System.getProperty("opensearch.version", "2.18.1-SNAPSHOT")
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
version_tokens = opensearch_version.tokenize('-')
Expand Down Expand Up @@ -43,12 +43,12 @@ buildscript {
plugins {
id 'java-library'
id 'com.diffplug.spotless' version '6.25.0'
id "io.freefair.lombok" version "8.6"
id "io.freefair.lombok" version "8.10.2"
id "de.undercouch.download" version "5.6.0"
}

lombok {
version = "1.18.30"
version = "1.18.34"
}

repositories {
Expand Down Expand Up @@ -87,7 +87,7 @@ configurations {
all {
resolutionStrategy {
force "org.mockito:mockito-core:${versions.mockito}"
force "com.google.guava:guava:33.0.0-jre" // CVE for 31.1
force "com.google.guava:guava:33.2.1-jre" // CVE for 31.1
force("org.eclipse.platform:org.eclipse.core.runtime:3.30.0") // CVE for < 3.29.0, forces JDK17 for spotless
}
}
Expand All @@ -107,24 +107,24 @@ task addJarsToClasspath(type: Copy) {
into("$buildDir/classes")

from(fileTree(dir: adJarDirectory)) {
include "opensearch-time-series-analytics-${opensearch_build}.jar"
include "opensearch-anomaly-detection-${opensearch_build}.jar"
}
into("$buildDir/classes")
}

dependencies {
// 3P dependencies
compileOnly group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
compileOnly "org.apache.logging.log4j:log4j-slf4j-impl:2.22.0"
compileOnly "org.apache.logging.log4j:log4j-slf4j-impl:2.23.1"
compileOnly group: 'org.json', name: 'json', version: '20240205'
compileOnly("com.google.guava:guava:33.0.0-jre")
compileOnly group: 'org.apache.commons', name: 'commons-lang3', version: '3.14.0'
compileOnly("com.google.guava:guava:33.2.1-jre")
compileOnly group: 'org.apache.commons', name: 'commons-lang3', version: '3.16.0'
compileOnly group: 'org.apache.commons', name: 'commons-text', version: '1.11.0'

// Plugin dependencies
compileOnly group: 'org.opensearch', name:'opensearch-ml-client', version: "${opensearch_build}"
implementation fileTree(dir: jsJarDirectory, include: ["opensearch-job-scheduler-${opensearch_build}.jar"])
implementation fileTree(dir: adJarDirectory, include: ["opensearch-time-series-analytics-${opensearch_build}.jar"])
implementation fileTree(dir: adJarDirectory, include: ["opensearch-anomaly-detection-${opensearch_build}.jar"])
implementation fileTree(dir: sqlJarDirectory, include: ["opensearch-sql-${opensearch_build}.jar", "ppl-${opensearch_build}.jar", "protocol-${opensearch_build}.jar"])
compileOnly "org.opensearch:common-utils:${opensearch_build}"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
Expand All @@ -145,16 +145,16 @@ dependencies {
testImplementation "org.opensearch.test:framework:${opensearch_version}"
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.json', name: 'json', version: '20240205'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.10.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.14.2'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '5.2.0'
testImplementation("net.bytebuddy:byte-buddy:1.14.9")
testImplementation("net.bytebuddy:byte-buddy-agent:1.14.7")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testImplementation 'org.mockito:mockito-junit-jupiter:5.10.0'
testImplementation("net.bytebuddy:byte-buddy:1.15.4")
testImplementation("net.bytebuddy:byte-buddy-agent:1.15.4")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.2'
testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2'
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testImplementation "com.cronutils:cron-utils:9.2.1"
testImplementation "commons-validator:commons-validator:1.8.0"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.2'
}

task extractSqlJar(type: Copy) {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionSha256Sum=3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae
7 changes: 5 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
13 changes: 13 additions & 0 deletions release-notes/opensearch-skills.release-notes-2.14.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 2024-04-29 Version 2.14.0.0

Compatible with OpenSearch 2.14.0

### Features
* Fix filter fields, adding geo point and date_nanos (#285) (#286)
* Change ad plugin jar dependency (#288)
* Remove logic about replace quota for finetuning model (#289) (#291)
* Move search index tool to ml-commons repo (#297)
* Move visualization tool to ml-commons (#296) (#298)

### Dependencies
* Increment byte-buddy version to 1.14.9 (#288)
6 changes: 6 additions & 0 deletions release-notes/opensearch-skills.release-notes-2.15.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 2024-06-11 Version 2.15.0.0

Compatible with OpenSearch 2.15.0

### Maintenance
Increment version to 2.15.0.0.
8 changes: 8 additions & 0 deletions release-notes/opensearch-skills.release-notes-2.16.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 2024-07-29 Version 2.16.0.0

Compatible with OpenSearch 2.16.0

### Features
* support nested query in neural sparse tool, vectorDB tool and RAG tool ([#350](https://github.com/opensearch-project/skills/pull/350))
* Add cluster setting to control ppl execution ([#344](https://github.com/opensearch-project/skills/pull/344))
* Add CreateAnomalyDetectorTool ([#348](https://github.com/opensearch-project/skills/pull/348))
12 changes: 12 additions & 0 deletions release-notes/opensearch-skills.release-notes-2.17.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 2024-09-07 Version 2.17.0.0

Compatible with OpenSearch 2.17.0

### Maintenance
update dependency org.apache.logging.log4j:log4j-slf4j-impl to v2.23.1 ([#256](https://github.com/opensearch-project/skills/pull/256))
update dependency com.google.guava:guava to v33.2.1-jre ([#258](https://github.com/opensearch-project/skills/pull/258))
Upgrade apache common lang version to 3.16 ([#371](https://github.com/opensearch-project/skills/pull/371))
update dependency gradle to v8.10 ([#389](https://github.com/opensearch-project/skills/pull/389))
update plugin io.freefair.lombok to v8.10 ([#393](https://github.com/opensearch-project/skills/pull/393))


16 changes: 16 additions & 0 deletions release-notes/opensearch-skills.release-notes-2.18.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 2024-10-23 Version 2.18.0.0

Compatible with OpenSearch 2.18.0

### Features
Add LogPatternTool ([#413](https://github.com/opensearch-project/skills/pull/413))
Optimize the default prompt and make prompt customizable for create anomaly detector tool ([399](https://github.com/opensearch-project/skills/pull/399))

### Maintenance
Fix test failure due to external change ([#427](https://github.com/opensearch-project/skills/pull/427))
fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.15.4 ([#279](https://github.com/opensearch-project/skills/pull/279))
fix(deps): update dependency net.bytebuddy:byte-buddy to v1.15.4 ([#43](https://github.com/opensearch-project/skills/pull/43))
fix(deps): update junit5 monorepo to v5.11.2 ([#363](https://github.com/opensearch-project/skills/pull/363))
chore(deps): update dependency gradle to v8.10.2 ([#432](https://github.com/opensearch-project/skills/pull/432))
chore(deps): update plugin io.freefair.lombok to v8.10.2 ([#434](https://github.com/opensearch-project/skills/pull/434))
fix(deps): update mockito monorepo to v5.14.2 ([#437](https://github.com/opensearch-project/skills/pull/437))
10 changes: 8 additions & 2 deletions src/main/java/org/opensearch/agent/ToolPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import java.util.List;
import java.util.function.Supplier;

import org.opensearch.agent.tools.CreateAnomalyDetectorTool;
import org.opensearch.agent.tools.LogPatternTool;
import org.opensearch.agent.tools.NeuralSparseSearchTool;
import org.opensearch.agent.tools.PPLTool;
import org.opensearch.agent.tools.RAGTool;
Expand Down Expand Up @@ -59,7 +61,6 @@ public Collection<Object> createComponents(
this.client = client;
this.clusterService = clusterService;
this.xContentRegistry = xContentRegistry;

PPLTool.Factory.getInstance().init(client);
NeuralSparseSearchTool.Factory.getInstance().init(client, xContentRegistry);
VectorDBTool.Factory.getInstance().init(client, xContentRegistry);
Expand All @@ -68,6 +69,8 @@ public Collection<Object> createComponents(
SearchAnomalyDetectorsTool.Factory.getInstance().init(client, namedWriteableRegistry);
SearchAnomalyResultsTool.Factory.getInstance().init(client, namedWriteableRegistry);
SearchMonitorsTool.Factory.getInstance().init(client);
CreateAnomalyDetectorTool.Factory.getInstance().init(client);
LogPatternTool.Factory.getInstance().init(client, xContentRegistry);
return Collections.emptyList();
}

Expand All @@ -82,7 +85,10 @@ public List<Tool.Factory<? extends Tool>> getToolFactories() {
SearchAlertsTool.Factory.getInstance(),
SearchAnomalyDetectorsTool.Factory.getInstance(),
SearchAnomalyResultsTool.Factory.getInstance(),
SearchMonitorsTool.Factory.getInstance()
SearchMonitorsTool.Factory.getInstance(),
CreateAnomalyDetectorTool.Factory.getInstance(),
LogPatternTool.Factory.getInstance()
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private static Map<String, Object> processResponse(SearchHit hit) {
return docContent;
}

private <T> SearchRequest buildSearchRequest(Map<String, String> parameters) throws IOException {
protected <T> SearchRequest buildSearchRequest(Map<String, String> parameters) throws IOException {
String question = parameters.get(INPUT_FIELD);
if (StringUtils.isBlank(question)) {
throw new IllegalArgumentException("[" + INPUT_FIELD + "] is null or empty, can not process it.");
Expand All @@ -89,8 +89,7 @@ private <T> SearchRequest buildSearchRequest(Map<String, String> parameters) thr
searchSourceBuilder.parseXContent(queryParser);
searchSourceBuilder.fetchSource(sourceFields, null);
searchSourceBuilder.size(docSize);
SearchRequest searchRequest = new SearchRequest().source(searchSourceBuilder).indices(index);
return searchRequest;
return new SearchRequest().source(searchSourceBuilder).indices(parameters.getOrDefault(INDEX_FIELD, index));
}

@Override
Expand Down
Loading
Loading