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 1.3.20. #698

Open
wants to merge 177 commits into
base: 1.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
d27d52c
Update Release Notes for GA (#36)
adityaj1107 Jul 2, 2021
62de872
add method type in CustomWebhook data model (#39)
zhongnansu Jul 16, 2021
4ef189d
Fix class loader issue for notifications response (#40)
dai-chen Jul 20, 2021
0af72bf
remove restrictions on webhook url protocols to also include http (#43)
zhongnansu Aug 2, 2021
bf2bfb3
Bumping common-utils to build with OpenSearch(main) 1.1.0 (#48)
saratvemulapalli Aug 6, 2021
28e688b
Adding an utility method that allows consumers to set custom thread c…
thalurur Aug 6, 2021
b18a489
Add Notifications SNS model (#50)
joshuali925 Aug 9, 2021
d79c53d
Added support for SesAccount (#54)
akbhatta Aug 13, 2021
4b1c21c
Adds legacy chime, slack, custom webhook messages, request/response f…
dbbaughe Aug 13, 2021
401802d
Using 1.1 snapshot version for OpenSearch (#57)
VachaShah Aug 16, 2021
4f30425
Add themed logo to README (#41)
Aug 16, 2021
cc02f23
Build snapshot build by default with the same version as OpenSearch. …
dblock Aug 16, 2021
3913d70
BugFix: Allow null values for role_arn in json parsing (#60)
akbhatta Aug 16, 2021
8fccbea
Removed tenant information from the models (#73)
akbhatta Sep 17, 2021
21b951d
Updated the plugin feature response with allowed config features (#74)
akbhatta Sep 23, 2021
486c2e1
Updates common-utils version to 1.2 (#77)
downsrob Oct 1, 2021
151646f
Publish .md5 and .sha1 signatures. (#79) (#80)
dblock Oct 6, 2021
cbeba12
Publish source and javadoc checksums. (#81)
dblock Oct 6, 2021
e51a67a
Email recipients made nested for backward compatibility with Alerting…
akbhatta Oct 13, 2021
32f0c6f
Update copyright notice (#90)
qreshi Nov 2, 2021
2253331
Update maven publication to include cksums. (#91)
mch2 Nov 4, 2021
2679a01
Add release notes for version 1.2.0.0 (#92)
lezzago Nov 5, 2021
84bb457
Fix copyright notice and add DCO check workflow (#94)
lezzago Nov 9, 2021
eb79bae
Update build.sh script to include optional platform param. (#95)
mch2 Nov 12, 2021
2ebb5e6
Add codeowners support for repo (#96)
ryanbogan Nov 12, 2021
19ca2c0
Bump version to 1.3 (#99)
lezzago Dec 2, 2021
643157d
Auto-increment version on new release tags. (#106)
dblock Jan 4, 2022
7c0460d
Remove jcenter repository (#115)
peternied Feb 17, 2022
31fd411
Using Github App token to trigger CI for version increment PRs (#116)
VachaShah Feb 19, 2022
bccb1bb
Fixes copyright headers (#117)
dbbaughe Feb 21, 2022
1da8807
Remove jcenter repository missed on first pass (#118)
peternied Feb 24, 2022
3919543
Run CI/CD on Java 8, 11, 14 and 17. (#121)
dblock Mar 1, 2022
710b1f9
Add .whitesource configuration file (#109)
mend-for-github-com[bot] Mar 2, 2022
361db4c
Upgrade to 2.0 (#122)
lezzago Mar 3, 2022
1be69e5
Remove JDK8 support and fix JDK17 build. (#129)
dblock Mar 9, 2022
fb43b22
Add support for build version qualifier. (#128)
dblock Mar 10, 2022
bdd8a81
Add backport and auto delete workflow (#130)
Mar 10, 2022
be72763
Add release notes for version 1.3.0.0 (#132)
getsaurabh02 Mar 11, 2022
fe3abb9
Upgrade gradle artifacts to 7.3.3 (#135)
lezzago Mar 14, 2022
05931c9
Remove feature and feature_list usage for Notifications (#136)
qreshi Mar 17, 2022
7ab297e
Add opensearch repositories plugin to resolve lucene snapshot depende…
mch2 Mar 18, 2022
a086805
Update MAINTAINERS.m to add new maintainer. (#127)
getsaurabh02 Mar 21, 2022
d77dec5
Rename references for Get Channels API (#140)
qreshi Mar 22, 2022
6e78f69
Adding signoff option for version workflow PR (#143)
VachaShah Mar 23, 2022
43d6e6d
Remove allowedConfigFeatureList from GetPluginFeaturesResponse (#144)
qreshi Mar 28, 2022
f2f57e5
change default opensearch version to 2.0.0-alpha1-SNAPSHOT (#146)
peterzhuamazon Mar 28, 2022
a6c2da8
Add qualifier default to alpha1 in build.gradle (#151)
peterzhuamazon Mar 31, 2022
58cd7cc
Make CU hosts its own script before delete the one on build repo (#152)
peterzhuamazon Apr 1, 2022
f62e734
Removal of NotificationEvent Request, Response and SearchResults (#153)
adityaj1107 Apr 5, 2022
4553617
Updated issue templates from .github. (#154)
dblock Apr 6, 2022
c3794c4
Addition of NotificationEvent to SendNotificationResponse and Removal…
adityaj1107 Apr 7, 2022
14e76ec
Remove JDK 14 (#159)
getsaurabh02 Apr 14, 2022
17bb37c
Incremented version to 2.0-rc1. (#160)
dblock Apr 15, 2022
a80b8b1
Support sending email message via Notifications passthrough API (#158)
qreshi Apr 16, 2022
39bd777
Add release notes for version 2.0.0.0-rc1 (#162)
getsaurabh02 Apr 25, 2022
389bb3c
Removing RC1 as the qualifier from Common Utils (#168)
adityaj1107 May 6, 2022
1eef82c
add code coverage badge (#169)
sbcd90 May 9, 2022
d36924d
Change BaseModel to extend ToXContentObject instead of ToXContent (#173)
qreshi May 11, 2022
4557ed1
add code coverage badge (#171)
sbcd90 May 16, 2022
1d0ee34
fix code coverage badge (#175)
sbcd90 May 17, 2022
e8b991e
fix code coverage badge (#176)
sbcd90 May 17, 2022
a03453c
Add release notes for version 2.0.0.0 (#177)
getsaurabh02 May 18, 2022
b054420
Remove duplicate DCO workflow. (#181)
dblock May 24, 2022
26a4c36
Bump up the version to 2.1 (#190)
ankitkala Jun 22, 2022
5d96f3c
Upgrade gradle to 7.4.2 (#191)
sbcd90 Jun 22, 2022
79a2ae3
Added 2.1 release notes. (#194) (#196)
opensearch-trigger-bot[bot] Jul 6, 2022
fe37126
Bump 2.x branch to 2.2 (#204)
qreshi Jul 25, 2022
7d53102
Staging for version increment automation (#200) (#211)
opensearch-trigger-bot[bot] Aug 4, 2022
ae064c5
Added 2.2 release notes. (#213)
getsaurabh02 Aug 9, 2022
53ed7f1
Added 2.2 release notes. (#212) (#214)
opensearch-trigger-bot[bot] Aug 16, 2022
dea1aed
Upgrade version to 2.3 (#223)
lezzago Aug 23, 2022
72a7261
fix snakeyaml vulnerability issue by disabling detekt (#237) (#240)
sbcd90 Sep 7, 2022
587d9cb
Move Alerting data models over to common-utils (#242)
sbcd90 Sep 7, 2022
33c1c33
upgrade 2.x to 2.4 (#246)
sbcd90 Sep 12, 2022
3dce8f7
Copy over monitor datasources config from alerting to common utils (#…
eirsep Sep 12, 2022
68da168
expose delete monitor api from alerting (#251)
sbcd90 Sep 23, 2022
d4a4aaa
Move Findings and Alerts action, request, response and models from al…
eirsep Sep 23, 2022
d64d992
added JvmField annotation to prevent generating getters (#255)
petardz Sep 27, 2022
36eafa6
Change TrustStoreTest to use File.separator to support Windows path (…
opensearch-trigger-bot[bot] Sep 30, 2022
082c776
remove force snakeyaml removal (#263)
sbcd90 Oct 3, 2022
16cf2b6
Accept of list of monitor ids in findings and alerts request dtos (#2…
eirsep Oct 10, 2022
b643bbe
Added legacy support for SNS messages. (#225) (#269)
opensearch-trigger-bot[bot] Oct 10, 2022
99006a8
move acknowledge alerts dtos from alerting to common-utils (#282)
eirsep Oct 13, 2022
40404e2
add list of alert ids in get alerts request (#284) (#286)
opensearch-trigger-bot[bot] Oct 17, 2022
c1fdd47
fix security-analytics alerting findings api integration (#292) (#293)
opensearch-trigger-bot[bot] Oct 20, 2022
cfe4d8d
added params to Datasources (#290) (#291)
opensearch-trigger-bot[bot] Oct 20, 2022
5904e9c
fix security-analytics to alerting integration (#294) (#295)
opensearch-trigger-bot[bot] Oct 21, 2022
2b2f242
Added function for request recreation that considers the writeable re…
opensearch-trigger-bot[bot] Nov 1, 2022
278ca9f
add findings enabled flag and findings field in bucket level monitor …
opensearch-trigger-bot[bot] Nov 2, 2022
2c53c25
Support backend roles in indexMonitorRequest (#308) (#309)
opensearch-trigger-bot[bot] Nov 2, 2022
3a83a1a
Adds owner field in monitor model (#313) (#314)
opensearch-trigger-bot[bot] Nov 3, 2022
65cf945
Adding CI workflow for Windows OS (#299) (#301)
opensearch-trigger-bot[bot] Nov 7, 2022
cc3b254
Increment version to 2.5.0-SNAPSHOT (#300)
opensearch-trigger-bot[bot] Nov 17, 2022
97dc905
Add a super admin client builder w/ hosts params (#322) (#323)
opensearch-trigger-bot[bot] Nov 19, 2022
17f9b49
Fix streaming functions for LegacySNSMessage (#324) (#325)
opensearch-trigger-bot[bot] Jan 24, 2023
005e018
Increment version to 2.6.0-SNAPSHOT (#344)
opensearch-trigger-bot[bot] Feb 2, 2023
0778ce2
Add release notes (#363) (#364)
opensearch-trigger-bot[bot] Feb 22, 2023
5b9de98
2.x branch - Publish snapshots to maven via GHA (#365)
AWSHurneyt Feb 22, 2023
f95d26a
Increment version to 2.7.0-SNAPSHOT (#371)
opensearch-trigger-bot[bot] Feb 23, 2023
95d168b
Add auto-release workflow (#376) (#378)
opensearch-trigger-bot[bot] Mar 1, 2023
76375a7
Fix SNS pattern regex to correctly valid sns fifo topic ARNs (#381) (…
opensearch-trigger-bot[bot] Mar 15, 2023
3914598
Fixed xContent dependencies due to OSCore changes (#392)
Mar 28, 2023
3120d68
InjectSecurity - inject User object in UserInfo in threadContext (#39…
opensearch-trigger-bot[bot] Apr 14, 2023
65ecf37
Added 2.7 release notes. (#407) (#408)
opensearch-trigger-bot[bot] Apr 18, 2023
d6f88ce
integrate security-analytics & alerting for correlation engine (#412)…
opensearch-trigger-bot[bot] Apr 19, 2023
1ff2298
Increment version to 2.8.0-SNAPSHOT (#413)
opensearch-trigger-bot[bot] Apr 27, 2023
26a117e
upgrade gradle to 8.1.1 (#418) (#421)
opensearch-trigger-bot[bot] May 3, 2023
db60532
NoOpTrigger (#420) (#424)
opensearch-trigger-bot[bot] May 4, 2023
2a6a6de
Adds workflows model and workflow actions for Alerting Plugin (#436)
eirsep May 24, 2023
f435dbc
Added 2.8 release notes (#441) (#442)
opensearch-trigger-bot[bot] May 26, 2023
53e10be
Increment version to 2.9.0-SNAPSHOT (#444)
opensearch-trigger-bot[bot] Jun 8, 2023
03505f0
Adds Chained alerts triggers for workflows (#456) (#457)
opensearch-trigger-bot[bot] Jun 20, 2023
c44cc5c
acknowledge chained alert request for workflow (#459) (#460)
opensearch-trigger-bot[bot] Jun 21, 2023
dd41bfc
adds audit state in Alert (#461) (#462)
opensearch-trigger-bot[bot] Jun 21, 2023
55a4dd5
add workflowId field in alert (#463) (#464)
opensearch-trigger-bot[bot] Jun 22, 2023
fca6d8e
pass workflow id in alert constructors (#465) (#466)
opensearch-trigger-bot[bot] Jun 22, 2023
f475879
opensearch commons strings library dependency import (#474)
eirsep Jul 6, 2023
1bba734
apis for get workflow alerts and acknowledge chained alerts (#472) (#…
eirsep Jul 7, 2023
1800974
Modify triggers to push snapshots on all branches (#454) (#475)
Hailong-am Jul 10, 2023
90bea0c
add auditDelegateMonitorAlerts flag (#476) (#477)
eirsep Jul 11, 2023
0d7ba90
Implemented support for configuring a cluster metrics monitor to call…
opensearch-trigger-bot[bot] Jul 12, 2023
ccc9878
Added 2.9 release notes. (#482) (#483)
opensearch-trigger-bot[bot] Jul 12, 2023
a009369
Increment version to 2.10.0-SNAPSHOT (#485)
opensearch-trigger-bot[bot] Jul 14, 2023
0062835
Fix after core #8157 (#486) (#499)
Hailong-am Jul 22, 2023
0ce0f3e
Upgrade the backport workflow (#487) (#495)
opensearch-trigger-bot[bot] Aug 9, 2023
7e1e226
make common-utils core compatible (#507) (#510)
opensearch-trigger-bot[bot] Aug 17, 2023
e6783b6
common utils to support Microsoft teams in notifications (#428) (#512)
opensearch-trigger-bot[bot] Aug 18, 2023
41c9fcf
support list of monitor ids in Chained Monitor Findings (#514) (#515)
eirsep Sep 1, 2023
c6205db
Updates demo certs used in rest tests (#518) (#521)
opensearch-trigger-bot[bot] Sep 8, 2023
b88b51b
Increment version to 2.11.0-SNAPSHOT (#520)
opensearch-trigger-bot[bot] Sep 8, 2023
aaa4c2a
Adds 2.10.0.0 release notes (#531) (#532)
opensearch-trigger-bot[bot] Sep 8, 2023
65f3963
Increment version to 2.12.0-SNAPSHOT (#545)
opensearch-trigger-bot[bot] Oct 11, 2023
38cd12b
add 'fields' parameter in doc level query object. (#546) (#550)
opensearch-trigger-bot[bot] Oct 19, 2023
60a090e
add fields param in toxcontent() for doc level query (#549) (#554)
opensearch-trigger-bot[bot] Oct 24, 2023
ace0d5a
Onboard prod jenkins docker image to github actions (#557) (#558)
opensearch-trigger-bot[bot] Oct 31, 2023
d44f480
Add User.isAdminDn to User class (#547) (#562)
opensearch-trigger-bot[bot] Nov 14, 2023
02cccc4
Update Gradle to 8.4 (#560) (#563)
reta Nov 16, 2023
a56599c
Add Java 11/17/21 matrix for build, test and integration checks (#561…
opensearch-trigger-bot[bot] Nov 16, 2023
8e2537b
Move get monitor and search monitor action / request / responses to c…
opensearch-trigger-bot[bot] Nov 22, 2023
a45dd4d
[Backport 2.x] changed all usages of 'admin' as a password to somethi…
opensearch-trigger-bot[bot] Feb 1, 2024
6a579cd
[Backport 2.x] Implemented cross-cluster monitor support #584 (#586)
AWSHurneyt Feb 6, 2024
fed6838
[Backport 2.x] Update dependency com.pinterest:ktlint to 0.47.1 and f…
jowg-amazon Feb 6, 2024
9959c32
Added release notes for 2.12.0 (#587) (#589)
opensearch-trigger-bot[bot] Feb 7, 2024
a0635a6
add queryFieldNames field in Doc Level Queries (#582) (#597)
opensearch-trigger-bot[bot] Feb 19, 2024
53f7dcc
Increment version to 2.13.0-SNAPSHOT (#591)
opensearch-trigger-bot[bot] Feb 27, 2024
d936c8f
Feature findings enhancemnt (#596) (#606)
opensearch-trigger-bot[bot] Mar 9, 2024
e6cd139
fix findings API enhancemnts (#611) (#617)
opensearch-trigger-bot[bot] Mar 14, 2024
44f3fdf
Added release notes for 2.13 (#623) (#624)
opensearch-trigger-bot[bot] Mar 21, 2024
67ed815
[AUTO] Increment version to 2.14.0-SNAPSHOT (#625)
opensearch-trigger-bot[bot] Mar 26, 2024
b2a7ca6
obfuscate ip addresses in alert error message (#511) (#523)
opensearch-trigger-bot[bot] Apr 11, 2024
b8f1285
Change doc level query name validation (#630) (#637)
opensearch-trigger-bot[bot] Apr 13, 2024
4e81d64
[Backport 2.x] Added validation for the new clusters field. (#633) (#…
AWSHurneyt Apr 13, 2024
58f79fa
Wrapped URI syntax exception in IllegalArgument exception. (#645) (#646)
opensearch-trigger-bot[bot] Apr 25, 2024
48bac6c
Added 2.14.0.0 release notes. (#648) (#649)
opensearch-trigger-bot[bot] May 1, 2024
01c2091
Increment version to 2.15.0-SNAPSHOT (#651)
opensearch-trigger-bot[bot] May 10, 2024
d708613
changes to add start_time and end_time filters to getalertsrequest (#…
opensearch-trigger-bot[bot] May 22, 2024
923e487
Alerting Enhancements: Alerting Comments (Experimental) (#663) (#675)
opensearch-trigger-bot[bot] Jun 10, 2024
5a73696
adding ctor with optional comments indices args (#674) (#676)
opensearch-trigger-bot[bot] Jun 10, 2024
4de560b
Add 2.15 release notes (#672) (#677)
opensearch-trigger-bot[bot] Jun 11, 2024
15b00e5
CorrelationAlert model added (#631) (#679)
opensearch-trigger-bot[bot] Jun 11, 2024
bdf32b2
bug fixes for correlation Alerts (#670) (#680)
opensearch-trigger-bot[bot] Jun 12, 2024
dd9fdf1
Fixing DataSources Parsing Errors (#678) (#681)
toepkerd Jun 12, 2024
841fd4d
Adding EntityType to Comment Model (#671) (#683)
toepkerd Jun 12, 2024
9f15ceb
updated the 2.15 release-notes (#685) (#686)
opensearch-trigger-bot[bot] Jun 12, 2024
413ae0f
Increment version to 2.16.0-SNAPSHOT (#688)
opensearch-trigger-bot[bot] Jun 20, 2024
fbb297b
[Backport 2.x] Add support for remote monitors (#694)
jowg-amazon Jul 2, 2024
545e6c2
added release notes for common-utils (#700) (#701)
opensearch-trigger-bot[bot] Jul 25, 2024
897b266
ci fix (#703) (#704)
opensearch-trigger-bot[bot] Jul 25, 2024
44c2b15
[AUTO] Increment version to 2.17.0-SNAPSHOT (#706)
opensearch-trigger-bot[bot] Aug 2, 2024
0fc3dcb
add missing ctx variables (#710) (#711)
jowg-amazon Aug 13, 2024
bf6cbd7
changing the names of the alerting comment actions (#724) (#725)
opensearch-trigger-bot[bot] Sep 3, 2024
15480c9
Adding 2.17 release notes (#727) (#728)
opensearch-trigger-bot[bot] Sep 3, 2024
6e48a77
Increment version to 2.17.1-SNAPSHOT (#732)
opensearch-trigger-bot[bot] Sep 23, 2024
62b1cfa
Incremented version to 2.17.1 (#731)
opensearch-trigger-bot[bot] Sep 24, 2024
aa0d360
changes to support dynamic deletion of doc-level monitor query indice…
opensearch-trigger-bot[bot] Sep 26, 2024
80e0945
revert commit #740 (#741)
sbcd90 Sep 26, 2024
6aff878
Incremented version to 2.17.2
opensearch-ci-bot Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "75...100"
status:
project:
default:
target: 75% # the required coverage value
threshold: 1% # the leniency in hitting the target
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/common-utils
28 changes: 13 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
---
name: 🐛 Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: 'bug, untriaged, Beta'
title: '[BUG]'
labels: 'bug, untriaged'
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.
**What is the bug?**
A clear and concise description of the bug.

**To Reproduce**
**How can one reproduce the bug?**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
**What is the expected behavior?**
A clear and concise description of what you expected to happen.

**Plugins**
Please list all plugins currently enabled.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Host/Environment (please complete the following information):**
**What is your host/environment?**
- OS: [e.g. iOS]
- Version [e.g. 22]
- Plugins

**Do you have any screenshots?**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
**Do you have any additional context?**
Add any other context about the problem.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: OpenSearch Community Support
url: https://discuss.opendistrocommunity.dev/
about: Please ask and answer questions here.
- name: AWS/Amazon Security
url: https://aws.amazon.com/security/vulnerability-reporting/
about: Please report security vulnerabilities here.
17 changes: 8 additions & 9 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---
name: 🎆 Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
about: Request a feature in this project
title: '[FEATURE]'
labels: 'enhancement, untriaged'
assignees: ''
---
**Is your feature request related to a problem?**
A clear and concise description of what the problem is, e.g. _I'm always frustrated when [...]_

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
**What solution would you like?**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
**What alternatives have you considered?**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
**Do you have any additional context?**
Add any other context or screenshots about the feature request here.
29 changes: 29 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Releases

on:
push:
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
github_token: ${{ steps.github_app_token.outputs.token }}
bodyFile: release-notes/opensearch-common-utils.release-notes-${{steps.tag.outputs.tag}}.md
31 changes: 31 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Backport
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780

- name: Backport
uses: VachaShah/[email protected]
with:
github_token: ${{ steps.github_app_token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}
labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>"
failure_labels: "failed backport"
67 changes: 50 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,31 @@ on:
pull_request:
branches:
- "*"
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
build:
Get-CI-Image-Tag:
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
with:
product: opensearch

build-linux:
needs: Get-CI-Image-Tag
strategy:
matrix:
java: [14]

java:
- 11
- 17
- 21
name: Build and Test
runs-on: ubuntu-latest
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
# this image tag is subject to change as more dependencies and updates will arrive over time
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

steps:
- name: Checkout
Expand All @@ -25,29 +41,46 @@ jobs:
with:
java-version: ${{ matrix.java }}

# dependencies: OpenSearch
- name: Checkout OpenSearch
- name: Build and Test
run: |
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew build &&
./gradlew publishToMavenLocal"

- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

build-windows:
strategy:
matrix:
java:
- 11
- 17
- 21
name: Build and Test
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: '1.0'
- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false

# common-utils
java-version: ${{ matrix.java }}

- name: Build and Test
run: |
./gradlew build -Dopensearch.version=1.0.0
./gradlew build

- name: Publish to Maven Local
run: |
./gradlew publishToMavenLocal -Dopensearch.version=1.0.0
./gradlew publishToMavenLocal

- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: plugin
token: ${{ secrets.CODECOV_TOKEN }}

15 changes: 15 additions & 0 deletions .github/workflows/delete_backport_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Delete merged branch of the backport PRs
on:
pull_request:
types:
- closed

jobs:
delete-branch:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref,'backport/')
steps:
- name: Delete merged branch
uses: SvanBoxel/delete-merged-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 37 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish snapshots to maven

on:
workflow_dispatch:
push:
branches:
- main
- '[0-9]+.[0-9]+'
- '[0-9]+.x'
jobs:
build-and-publish-snapshots:
strategy:
fail-fast: false
if: github.repository == 'opensearch-project/common-utils'
runs-on: ubuntu-latest

permissions:
id-token: write
contents: write

steps:
- uses: actions/setup-java@v3
with:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 17
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
aws-region: us-east-1
- name: publish snapshots to maven
run: |
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
echo "::add-mask::$SONATYPE_USERNAME"
echo "::add-mask::$SONATYPE_PASSWORD"
./gradlew publishShadowPublicationToSnapshotsRepository
44 changes: 0 additions & 44 deletions .github/workflows/push-common-utils-jar.yml

This file was deleted.

Loading
Loading