Skip to content

Commit 61b9dfa

Browse files
committed
Merge branch 'main' into render-search-template
2 parents 3e8e80f + 00dd577 commit 61b9dfa

File tree

934 files changed

+13927
-2915
lines changed

Some content is hidden

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

934 files changed

+13927
-2915
lines changed

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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/dependabot.yml

Lines changed: 8 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
if: github.repository == 'opensearch-project/OpenSearch'
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/github-script@v6
12+
- uses: actions/github-script@v7
1313
with:
1414
script: |
1515
github.rest.issues.addLabels({

.github/workflows/assemble.yml

Lines changed: 1 addition & 1 deletion
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/dependabot_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
./gradlew updateSHAs
2828
2929
- name: Commit the changes
30-
uses: stefanzweifel/git-auto-commit-action@v4.7.2
30+
uses: stefanzweifel/git-auto-commit-action@v5
3131
with:
3232
commit_message: Updating SHAs
3333
branch: ${{ github.head_ref }}
@@ -40,7 +40,7 @@ jobs:
4040
./gradlew spotlessApply
4141
4242
- name: Commit the changes
43-
uses: stefanzweifel/git-auto-commit-action@v4.7.2
43+
uses: stefanzweifel/git-auto-commit-action@v5
4444
with:
4545
commit_message: Spotless formatting
4646
branch: ${{ github.head_ref }}
@@ -54,7 +54,7 @@ jobs:
5454
version: 'Unreleased 2.x'
5555

5656
- name: Commit the changes
57-
uses: stefanzweifel/git-auto-commit-action@v4
57+
uses: stefanzweifel/git-auto-commit-action@v5
5858
with:
5959
commit_message: "Update changelog"
6060
branch: ${{ github.head_ref }}

.github/workflows/lucene-snapshots.yml

Lines changed: 39 additions & 18 deletions
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
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Maintainers approval
2+
3+
on:
4+
pull_request_review:
5+
types: [submitted]
6+
7+
jobs:
8+
maintainer-approved-check:
9+
name: Minimum approval count
10+
runs-on: ubuntu-latest
11+
steps:
12+
- id: find-maintainers
13+
uses: actions/github-script@v7
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
result-encoding: string
17+
script: |
18+
// Get the collaborators - filtered to maintainer permissions
19+
const maintainersResponse = await github.request('GET /repos/{owner}/{repo}/collaborators', {
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
permission: 'maintain',
23+
affiliation: 'all',
24+
per_page: 100
25+
});
26+
27+
return maintainersResponse.data.map(item => item.login).join(', ');
28+
29+
- uses: peternied/[email protected]
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
min-required: 1
33+
required-approvers-list: ${{ steps.find-maintainers.outputs.result }}

.github/workflows/precommit.yml

Lines changed: 1 addition & 1 deletion
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/publish-maven-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Set up JDK 17
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@v4
2424
with:
2525
distribution: adopt
2626
java-version: 17

0 commit comments

Comments
 (0)