Skip to content

Commit 763099a

Browse files
committed
merge main
Signed-off-by: Gao Binlong <gbinlong@amazon.com>
2 parents 4d4484d + 16d457d commit 763099a

File tree

978 files changed

+17915
-3220
lines changed

Some content is hidden

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

978 files changed

+17915
-3220
lines changed

.ci/bwcVersions

+1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ BWC_VERSION:
2626
- "2.10.1"
2727
- "2.11.0"
2828
- "2.11.1"
29+
- "2.11.2"
2930
- "2.12.0"

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* text eol=lf
2+
*.jar binary
23
*.bat binary
34
*.zip binary
45
*.exe binary

.github/CODEOWNERS

+27-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1-
* @abbashus @adnapibar @anasalkouz @andrross @Bukhtawar @CEHENKLE @dblock @dbwiddis @dreamer-89 @gbbafna @kartg @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @peternied @reta @Rishikesh1159 @ryanbogan @sachinpkale @saratvemulapalli @setiah @shwetathareja @sohami @tlfeng @VachaShah
1+
# CODEOWNERS manages notifications, not PR approvals
2+
# For PR approvals see /.github/workflows/maintainer-approval.yml
3+
4+
# Files have a single rule applied, the last match decides the owner
5+
# If you would like to more specifically apply ownership, include existing owner in new sub fields
6+
7+
# To verify changes of CODEOWNERS file
8+
# In VSCode
9+
# 1. Install extension https://marketplace.visualstudio.com/items?itemName=jasonnutter.vscode-codeowners
10+
# 2. Go to a file
11+
# 3. Use the command palette to run the CODEOWNERS: Show owners of current file command, which will display all code owners for the current file.
12+
13+
# Default ownership for all repo files
14+
* @abbashus @adnapibar @anasalkouz @andrross @Bukhtawar @CEHENKLE @dblock @dbwiddis @dreamer-89 @gbbafna @kartg @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @ryanbogan @sachinpkale @saratvemulapalli @setiah @shwetathareja @sohami @tlfeng @VachaShah
15+
16+
/modules/transport-netty4/ @peternied
17+
18+
/plugins/identity-shiro/ @peternied
19+
20+
/server/src/main/java/org/opensearch/extensions/ @peternied
21+
/server/src/main/java/org/opensearch/identity/ @peternied
22+
/server/src/main/java/org/opensearch/threadpool/ @peternied
23+
/server/src/main/java/org/opensearch/transport/ @peternied
24+
25+
/.github/ @peternied
26+
27+
/MAINTAINERS.md @abbashus @adnapibar @anasalkouz @andrross @Bukhtawar @CEHENKLE @dblock @dbwiddis @dreamer-89 @gbbafna @kartg @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @peternied @reta @Rishikesh1159 @ryanbogan @sachinpkale @saratvemulapalli @setiah @shwetathareja @sohami @tlfeng @VachaShah

.github/ISSUE_TEMPLATE/bug_template.md

-33
This file was deleted.
+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: 🐛 Bug report
2+
description: Create a report to help us improve
3+
title: "[BUG] <title>"
4+
labels: ['bug, untriaged']
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Describe the bug
9+
description: A clear and concise description of what the bug is.
10+
validations:
11+
required: true
12+
- type: dropdown
13+
attributes:
14+
label: Related component
15+
description: Choose a specific OpenSearch component your bug belongs to. If you are unsure which to select or if the component is not present, select "Other".
16+
multiple: false
17+
options:
18+
- Other
19+
- Build
20+
- Clients
21+
- Cluster Manager
22+
- Extensions
23+
- Indexing:Performance
24+
- Indexing:Replication
25+
- Indexing
26+
- Libraries
27+
- Plugins
28+
- Search:Aggregations
29+
- Search:Performance
30+
- Search:Query Capabilities
31+
- Search:Query Insights
32+
- Search:Relevance
33+
- Search:Remote Search
34+
- Search:Resiliency
35+
- Search:Searchable Snapshots
36+
- Search
37+
- Storage:Durability
38+
- Storage:Performance
39+
- Storage:Remote
40+
- Storage:Snapshots
41+
- Storage
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: To Reproduce
47+
description: Steps to reproduce the behavior.
48+
value: |
49+
1. Go to '...'
50+
2. Click on '....'
51+
3. Scroll down to '....'
52+
4. See error
53+
validations:
54+
required: true
55+
- type: textarea
56+
attributes:
57+
label: Expected behavior
58+
description: A clear and concise description of what you expected to happen.
59+
validations:
60+
required: true
61+
- type: textarea
62+
attributes:
63+
label: Additional Details
64+
description: Add any other context about the problem here.
65+
value: |
66+
**Plugins**
67+
Please list all plugins currently enabled.
68+
69+
**Screenshots**
70+
If applicable, add screenshots to help explain your problem.
71+
72+
**Host/Environment (please complete the following information):**
73+
- OS: [e.g. iOS]
74+
- Version [e.g. 22]
75+
76+
**Additional context**
77+
Add any other context about the problem here.
78+
validations:
79+
required: false

.github/ISSUE_TEMPLATE/feature_request.md

-19
This file was deleted.
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: 🎆 Feature request
2+
description: Suggest an idea for this project
3+
title: '[Feature Request] <title>'
4+
labels: ['enhancement, untriaged']
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Is your feature request related to a problem? Please describe
9+
description: A clear and concise description of what the problem is.
10+
placeholder: Ex. I'm always frustrated when [...]
11+
validations:
12+
required: true
13+
- type: textarea
14+
attributes:
15+
label: Describe the solution you'd like
16+
description: A clear and concise description of what you want to happen.
17+
validations:
18+
required: true
19+
- type: dropdown
20+
attributes:
21+
label: Related component
22+
description: Choose a specific OpenSearch component your feature request belongs to. If you are unsure of which component to select or if the component is not present, select "Other".
23+
multiple: false
24+
options:
25+
- Other
26+
- Build
27+
- Clients
28+
- Cluster Manager
29+
- Extensions
30+
- Indexing:Performance
31+
- Indexing:Replication
32+
- Indexing
33+
- Libraries
34+
- Plugins
35+
- Search:Aggregations
36+
- Search:Performance
37+
- Search:Query Capabilities
38+
- Search:Query Insights
39+
- Search:Relevance
40+
- Search:Remote Search
41+
- Search:Resiliency
42+
- Search:Searchable Snapshots
43+
- Search
44+
- Storage:Durability
45+
- Storage:Performance
46+
- Storage:Remote
47+
- Storage:Snapshots
48+
- Storage
49+
validations:
50+
required: true
51+
- type: textarea
52+
attributes:
53+
label: Describe alternatives you've considered
54+
description: A clear and concise description of any alternative solutions or features you've considered.
55+
validations:
56+
required: false
57+
- type: textarea
58+
attributes:
59+
label: Additional context
60+
description: Add any other context or screenshots about the feature request here.
61+
validations:
62+
required: false

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,14 @@ updates:
711711
labels:
712712
- "dependabot"
713713
- "dependencies"
714+
- directory: /modules/crypto/
715+
open-pull-requests-limit: 1
716+
package-ecosystem: gradle
717+
schedule:
718+
interval: weekly
719+
labels:
720+
- "dependabot"
721+
- "dependencies"
714722
- directory: /plugins/
715723
open-pull-requests-limit: 1
716724
package-ecosystem: gradle

.github/workflows/add-untriaged.yml

-20
This file was deleted.

.github/workflows/assemble.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Set up JDK ${{ matrix.java }}
15-
uses: actions/setup-java@v3
15+
uses: actions/setup-java@v4
1616
with:
1717
java-version: ${{ matrix.java }}
1818
distribution: temurin

.github/workflows/check-compatibility.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
echo "### Compatible components" >> "${{ github.workspace }}/results.txt" && grep -e 'Compatible component' $HOME/gradlew-check.out | sed -e 's/Compatible component: \[\(.*\)\]/- \1/' >> "${{ github.workspace }}/results.txt"
3737
3838
- name: Upload results
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
4141
name: results.txt
4242
path: ${{ github.workspace }}/results.txt
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Download results
51-
uses: actions/download-artifact@v3
51+
uses: actions/download-artifact@v4
5252
with:
5353
name: results.txt
5454

.github/workflows/lucene-snapshots.yml

+39-18
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
# Inputs the workflow accepts.
88
inputs:
99
ref:
10-
description:
10+
description: 'Lucene ref in github.com/apache/lucene'
11+
type: string
1112
required: false
1213
default: 'main'
1314

@@ -21,40 +22,60 @@ jobs:
2122
contents: read
2223

2324
steps:
24-
- uses: actions/checkout@v4
25-
- name: Set up JDK 17
26-
uses: actions/setup-java@v3
27-
with:
28-
java-version: '17'
29-
distribution: 'adopt'
30-
31-
- name: Checkout Lucene
25+
- name: Checkout Lucene ref:${{ github.event.inputs.ref }}
3226
uses: actions/checkout@v4
3327
with:
3428
repository: 'apache/lucene'
35-
path: lucene
3629
ref: ${{ github.event.inputs.ref }}
3730

38-
- name: Set hash
39-
working-directory: ./lucene
31+
- name: Get Java Min Version and Lucene Revision from Lucene Repository
4032
run: |
41-
echo "REVISION=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
42-
id: version
33+
java_version=`cat build.gradle | grep minJavaVersion | head -1 | grep -Eo '_[0-9]+$' | tr -d '_'`
34+
echo "JAVA_VERSION=$java_version" >> $GITHUB_ENV
35+
echo "REVISION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
36+
37+
- name: Setup JDK ${{ env.JAVA_VERSION }}
38+
uses: actions/setup-java@v4
39+
with:
40+
java-version: ${{ env.JAVA_VERSION }}
41+
distribution: 'temurin'
4342

4443
- name: Initialize gradle settings
45-
working-directory: ./lucene
4644
run: ./gradlew localSettings
4745

4846
- name: Publish Lucene to local maven repo.
49-
working-directory: ./lucene
50-
run: ./gradlew publishJarsPublicationToMavenLocal -Pversion.suffix=snapshot-${{ steps.version.outputs.REVISION }}
47+
run: ./gradlew publishJarsPublicationToMavenLocal -Pversion.suffix=snapshot-${{ env.REVISION }}
48+
49+
- name: Configure AWS credentials
50+
uses: aws-actions/configure-aws-credentials@v4
51+
with:
52+
role-to-assume: ${{ secrets.LUCENE_SNAPSHOTS_SECRET_ROLE }}
53+
aws-region: us-east-1
54+
55+
- name: Get S3 Bucket
56+
id: get_s3_bucket
57+
run: |
58+
lucene_snapshots_bucket=`aws secretsmanager get-secret-value --secret-id jenkins-artifact-bucket-name --query SecretString --output text`
59+
echo "::add-mask::$lucene_snapshots_bucket"
60+
echo "LUCENE_SNAPSHOTS_BUCKET=$lucene_snapshots_bucket" >> $GITHUB_OUTPUT
61+
62+
- name: Configure AWS credentials
63+
uses: aws-actions/configure-aws-credentials@v4
64+
with:
65+
role-to-assume: ${{ secrets.LUCENE_SNAPSHOTS_S3_ROLE }}
66+
aws-region: us-east-1
67+
68+
- name: Copy files to S3 with the aws CLI (New)
69+
run: |
70+
aws s3 cp ~/.m2/repository/org/apache/lucene/ s3://${{ steps.get_s3_bucket.outputs.LUCENE_SNAPSHOTS_BUCKET }}/snapshots/lucene/org/apache/lucene/ --recursive --no-progress
5171
5272
- name: Configure AWS credentials
5373
uses: aws-actions/configure-aws-credentials@v4
5474
with:
5575
role-to-assume: ${{ secrets.LUCENE_SNAPSHOTS_ROLE }}
5676
aws-region: us-west-2
5777

58-
- name: Copy files to S3 with the aws CLI.
78+
# We will remove this step once all the lucene snapshots old links are updated with the new one
79+
- name: Copy files to S3 with the aws CLI (Old)
5980
run: |
6081
aws s3 cp ~/.m2/repository/org/apache/lucene/ s3://${{ secrets.LUCENE_SNAPSHOTS_BUCKET }}/snapshots/lucene/org/apache/lucene/ --recursive --no-progress

0 commit comments

Comments
 (0)