Skip to content

Commit b0d7ca4

Browse files
adityaj1107AWSHurneytpeterzhuamazonlezzagodblock
committed
Merge commits from the main branch to the 1.x branch. (opensearch-project#133)
* Added release notes for OpenSearch 1.0.0.0. (opensearch-project#123) (opensearch-project#124) Co-authored-by: AWSHurneyt <79280347+AWSHurneyt@users.noreply.github.com> * Add Integtest.sh for OpenSearch integtest setups (opensearch-project#121) * Add integtest script to the repo Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Add Alerting specific security param for integTest Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> * Remove default assignee (opensearch-project#127) Signed-off-by: Ashish Agrawal <ashisagr@amazon.com> * Removing All Usages of Action Get Method Calls and adding the listeners (opensearch-project#130) Signed-off-by: Aditya Jindal <aditjind@amazon.com> * Fix snapshot build and increment to 1.1.0. (opensearch-project#142) Signed-off-by: dblock <dblock@amazon.com> * Refactor MonitorRunner (opensearch-project#143) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Update Bucket-Level Alerting RFC (opensearch-project#145) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Add BucketSelector pipeline aggregation extension (opensearch-project#144) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> Co-authored-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Add AggregationResultBucket (opensearch-project#148) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> Co-authored-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Add ActionExecutionPolicy (opensearch-project#149) * Add ActionExecutionPolicy Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Throw exception if there is an invalid field in PER_ALERT config when parsing Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Don't allow throttle to be configured for PerExecutionActionScope at the data class level since it is not supported yet Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Refactor Monitor and Trigger to split into Query-Level and Bucket-Lev… (opensearch-project#150) * Refactor Monitor and Trigger to split into Query-Level and Bucket-Level Monitors Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Require condition to not be null when parsing Bucket-Level Trigger Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Update InputService for Bucket-Level Alerting (opensearch-project#152) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> Co-authored-by: Rishabh Maurya <rishabhmaurya05@gmail.com> * Update TriggerService for Bucket-Level Alerting (opensearch-project#153) * Update TriggerService for Bucket-Level Alerting Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Remove client from TriggerService Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Update AlertService for Bucket-Level Alerting (opensearch-project#154) * Update AlertService for Bucket-Level Alerting Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Move Alert search size for Bucket-Level Monitors to a const Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Add worksheets to help with testing (opensearch-project#151) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Update MonitorRunner for Bucket-Level Alerting (opensearch-project#155) * Update MonitorRunner for Bucket-Level Alerting Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Update regressed comment in MonitorRunnerIT Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Add TODO to break down runBucketLevelMonitor method in MonitorRunner Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Fix ktlint formatting issues (opensearch-project#156) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Execute Actions on runTrigger exceptions for Bucket-Level Monitor (opensearch-project#157) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Skip execution of Actions on ACKNOWLEDGED Alerts for Bucket-Level Monitors (opensearch-project#158) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Return first page of input results in MonitorRunResult for Bucket-Level Monitor (opensearch-project#159) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Add setting to limit per alert action executions and don't save Alerts for test Bucket-Level Monitors (opensearch-project#161) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Fix bug in paginating multiple bucket paths for Bucket-Level Monitor (opensearch-project#163) * Fix bug in paginating multiple bucket paths for Bucket-Level Monitor Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Change trigger after key conditionals to when statement Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Various bug fixes pertaining to throttling on PER_ALERT, saving COMPLETED Alerts and rewriting input query for Bucket-Level Monitors (opensearch-project#164) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> * Return only monitors for /monitors/_search. (opensearch-project#162) * Return only monitors for /monitors/_search. * Added missing imports * Added additional check to the unit test * Resolve default for ActionExecutionPolicy at runtime (opensearch-project#165) Signed-off-by: Mohammad Qureshi <qreshi@amazon.com> Co-authored-by: AWSHurneyt <79280347+AWSHurneyt@users.noreply.github.com> Co-authored-by: Peter Zhu <zhujiaxi@amazon.com> Co-authored-by: Ashish Agrawal <ashisagr@amazon.com> Co-authored-by: Daniel Doubrovkine (dB.) <dblock@dblock.org> Co-authored-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com> Co-authored-by: Rishabh Maurya <rishabhmaurya05@gmail.com> Co-authored-by: Sriram <59816283+skkosuri-amzn@users.noreply.github.com> Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
1 parent 96e729c commit b0d7ca4

File tree

72 files changed

+6001
-835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+6001
-835
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Bug report
33
about: Create a report to help us improve
44
title: "[BUG]"
55
labels: 'bug, untriaged, Beta'
6-
assignees: skkosuri-amzn
6+
assignees:
77

88
---
99

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Feature request
33
about: Suggest an idea for this project
44
title: ''
55
labels: enhancement
6-
assignees: skkosuri-amzn
6+
assignees:
77

88
---
99

.github/workflows/multi-node-test-workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ jobs:
2929
with:
3030
repository: 'opensearch-project/OpenSearch'
3131
path: OpenSearch
32-
ref: '1.0'
32+
ref: '1.x'
3333
- name: Build OpenSearch
3434
working-directory: ./OpenSearch
35-
run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false
35+
run: ./gradlew publishToMavenLocal
3636
# This step adds dependency, common-utils
3737
- name: Checkout common-utils
3838
uses: actions/checkout@v2
3939
with:
4040
repository: 'opensearch-project/common-utils'
4141
path: common-utils
42-
ref: '1.0'
42+
ref: 'main'
4343
- name: Build common-utils
4444
working-directory: ./common-utils
45-
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.0.0
45+
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.1.0-SNAPSHOT
4646
# This step uses the checkout Github action: https://github.com/actions/checkout
4747
- name: Checkout Branch
4848
uses: actions/checkout@v2
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
java-version: 14
5454
- name: Run integration tests with multi node config
55-
run: ./gradlew integTest -PnumNodes=3 -Dopensearch.version=1.0.0 -Dbuild.snapshot=false
55+
run: ./gradlew integTest -PnumNodes=3 -Dopensearch.version=1.1.0-SNAPSHOT
5656
- name: Pull and Run Docker
5757
run: |
5858
plugin=`ls alerting/build/distributions/*.zip`

.github/workflows/test-workflow.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ jobs:
3535
with:
3636
repository: 'opensearch-project/OpenSearch'
3737
path: OpenSearch
38-
ref: '1.0'
38+
ref: '1.x'
3939
- name: Build OpenSearch
4040
working-directory: ./OpenSearch
41-
run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false
41+
run: ./gradlew publishToMavenLocal
4242

4343
# dependencies: common-utils
4444
- name: Checkout common-utils
4545
uses: actions/checkout@v2
4646
with:
4747
repository: 'opensearch-project/common-utils'
4848
path: common-utils
49-
ref: '1.0'
49+
ref: 'main'
5050
- name: Build common-utils
5151
working-directory: ./common-utils
52-
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.0.0
52+
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.1.0-SNAPSHOT
5353

5454
- name: Build and run with Gradle
55-
run: ./gradlew build -Dopensearch.version=1.0.0
55+
run: ./gradlew build -Dopensearch.version=1.1.0-SNAPSHOT
5656

5757
# - name: Create Artifact Path
5858
# run: |
@@ -71,4 +71,4 @@ jobs:
7171
# path: alerting-artifacts
7272
# Publish to local maven
7373
- name: Publish to Maven Local
74-
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.0.0
74+
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.1.0-SNAPSHOT

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ build/
66
.DS_Store
77
*.log
88
out/
9+
.project
10+
.settings
11+
.vscode

alerting/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,12 @@ apply plugin: 'jacoco'
3535
def usingRemoteCluster = System.properties.containsKey('tests.rest.cluster') || System.properties.containsKey('tests.cluster')
3636
def usingMultiNode = project.properties.containsKey('numNodes')
3737

38-
3938
ext {
4039
projectSubstitutions = [:]
4140
licenseFile = rootProject.file('LICENSE.txt')
4241
noticeFile = rootProject.file('NOTICE.txt')
4342
}
4443

45-
if (isSnapshot) {
46-
version += "-SNAPSHOT"
47-
}
48-
4944
opensearchplugin {
5045
name 'opensearch-alerting'
5146
description 'Amazon OpenSearch alerting plugin'
@@ -74,6 +69,10 @@ configurations.all {
7469
}
7570
}
7671

72+
configurations.testCompile {
73+
exclude module: "securemock"
74+
}
75+
7776
dependencies {
7877
compileOnly "org.opensearch.plugin:opensearch-scripting-painless-spi:${versions.opensearch}"
7978

@@ -87,6 +86,7 @@ dependencies {
8786
implementation "com.github.seancfoley:ipaddress:5.3.3"
8887

8988
testImplementation "org.jetbrains.kotlin:kotlin-test:${kotlin_version}"
89+
testCompile "org.mockito:mockito-core:2.23.0"
9090
}
9191

9292
javadoc.enabled = false // turn off javadoc as it barfs on Kotlin code

0 commit comments

Comments
 (0)