Skip to content

Commit 8bb17eb

Browse files
Merge branch '2.x' into backport-12488-2.x
Signed-off-by: Rishikesh <62345295+Rishikesh1159@users.noreply.github.com>
2 parents fb8c0b1 + 0d032be commit 8bb17eb

1,666 files changed

Lines changed: 116174 additions & 10348 deletions

File tree

Some content is hidden

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

.ci/bwcVersions

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ BWC_VERSION:
5454
- "1.3.15"
5555
- "1.3.16"
5656
- "1.3.17"
57+
- "1.3.18"
58+
- "1.3.19"
59+
- "1.3.20"
5760
- "2.0.0"
5861
- "2.0.1"
5962
- "2.0.2"
@@ -88,3 +91,8 @@ BWC_VERSION:
8891
- "2.13.1"
8992
- "2.14.0"
9093
- "2.14.1"
94+
- "2.15.0"
95+
- "2.15.1"
96+
- "2.16.0"
97+
- "2.16.1"
98+
- "2.17.0"

.ci/java-versions.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# build and test OpenSearch for this branch. Valid Java versions
1414
# are 'java' or 'openjdk' followed by the major release number.
1515

16-
OPENSEARCH_BUILD_JAVA=openjdk11
16+
# See please https://docs.gradle.org/8.10/userguide/upgrading_version_8.html#minimum_daemon_jvm_version
17+
OPENSEARCH_BUILD_JAVA=openjdk17
1718
OPENSEARCH_RUNTIME_JAVA=java11
1819
GRADLE_TASK=build
1920
GRADLE_EXTRA_ARGS=

.github/CODEOWNERS

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,27 @@
1111
# 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.
1212

1313
# Default ownership for all repo files
14-
* @anasalkouz @andrross @Bukhtawar @CEHENKLE @dblock @dbwiddis @dreamer-89 @gbbafna @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @tlfeng @VachaShah
14+
* @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jainankitk @kotwanikunal @linuxpi @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
1515

16+
/modules/lang-painless/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
17+
/modules/parent-join/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
1618
/modules/transport-netty4/ @peternied
1719

1820
/plugins/identity-shiro/ @peternied
1921

22+
/server/src/internalClusterTest/java/org/opensearch/index/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
23+
/server/src/internalClusterTest/java/org/opensearch/search/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
24+
2025
/server/src/main/java/org/opensearch/extensions/ @peternied
2126
/server/src/main/java/org/opensearch/identity/ @peternied
22-
/server/src/main/java/org/opensearch/threadpool/ @peternied
27+
/server/src/main/java/org/opensearch/index/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
28+
/server/src/main/java/org/opensearch/search/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
29+
/server/src/main/java/org/opensearch/threadpool/ @jed326 @peternied
2330
/server/src/main/java/org/opensearch/transport/ @peternied
2431

25-
/.github/ @peternied
32+
/server/src/test/java/org/opensearch/index/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
33+
/server/src/test/java/org/opensearch/search/ @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah
34+
35+
/.github/ @jed326 @peternied
2636

27-
/MAINTAINERS.md @anasalkouz @andrross @Bukhtawar @CEHENKLE @dblock @dbwiddis @dreamer-89 @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @peternied @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @tlfeng @VachaShah
37+
/MAINTAINERS.md @anasalkouz @andrross @ashking94 @Bukhtawar @CEHENKLE @dblock @dbwiddis @gaobinlong @gbbafna @jed326 @kotwanikunal @mch2 @msfroh @nknize @owaiskazi19 @peternied @reta @Rishikesh1159 @sachinpkale @saratvemulapalli @shwetathareja @sohami @VachaShah

.github/ISSUE_TEMPLATE/failed_check.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
<!-- Thanks for sending a pull request, here are some tips:
2+
3+
1. If this is a fix for an undisclosed security vulnerability, please STOP. All security vulnerability reporting and fixes should be done as per our security policy https://github.com/opensearch-project/OpenSearch/security/policy
4+
2. If this is your first time, please read our contributor guidelines: https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md and developer guide https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md
5+
3. Ensure you have added or ran the appropriate tests for your PR: https://github.com/opensearch-project/OpenSearch/blob/main/TESTING.md
6+
-->
7+
18
### Description
29
[Describe what this change achieves]
310

4-
### Issues Resolved
5-
[List any issues this PR will resolve]
11+
### Related Issues
12+
Resolves #[Issue number to be closed when this PR is merged]
13+
<!-- List any other related issues here -->
614

715
### Check List
8-
- [ ] New functionality includes testing.
9-
- [ ] All tests pass
10-
- [ ] New functionality has been documented.
11-
- [ ] New functionality has javadoc added
12-
- [ ] Failing checks are inspected and point to the corresponding known issue(s) (See: [Troubleshooting Failing Builds](../blob/main/CONTRIBUTING.md#troubleshooting-failing-builds))
13-
- [ ] Commits are signed per the DCO using --signoff
14-
- [ ] Commit changes are listed out in CHANGELOG.md file (See: [Changelog](../blob/main/CONTRIBUTING.md#changelog))
15-
- [ ] Public documentation issue/PR [created](https://github.com/opensearch-project/documentation-website/issues/new/choose)
16+
- [ ] Functionality includes testing.
17+
- [ ] API changes companion pull request [created](https://github.com/opensearch-project/opensearch-api-specification/blob/main/DEVELOPER_GUIDE.md), if applicable.
18+
- [ ] Public documentation issue/PR [created](https://github.com/opensearch-project/documentation-website/issues/new/choose), if applicable.
1619

1720
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1821
For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

.github/workflows/assemble.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,33 @@ jobs:
1616
with:
1717
java-version: ${{ matrix.java }}
1818
distribution: temurin
19+
- name: Set up JDK 17
20+
# See please https://docs.gradle.org/8.10/userguide/upgrading_version_8.html#minimum_daemon_jvm_version
21+
if: matrix.java == 11
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: 17
25+
distribution: temurin
26+
- name: Set JAVA${{ matrix.java }}_HOME
27+
shell: bash
28+
run: |
29+
echo "JAVA${{ matrix.java }}_HOME=$JAVA_HOME_${{ matrix.java }}_${{ runner.arch }}" >> $GITHUB_ENV
1930
- name: Setup docker (missing on MacOS)
31+
id: setup_docker
2032
if: runner.os == 'macos'
21-
uses: douglascamata/setup-docker-macos-action@main
33+
run: |
34+
exit 0;
35+
- name: Run Gradle (assemble)
36+
if: runner.os == 'macos' && steps.setup_docker.outcome != 'success'
37+
run: |
38+
# Report success even if previous step failed (Docker on MacOS runner is very unstable)
39+
exit 0;
40+
- name: Run Gradle (assemble)
41+
shell: bash
42+
if: runner.os != 'macos'
43+
run: |
44+
./gradlew assemble --parallel --no-build-cache -PDISABLE_BUILD_CACHE -Druntime.java=${{ matrix.java }}
2245
- name: Run Gradle (assemble)
46+
if: runner.os == 'macos' && steps.setup_docker.outcome == 'success'
2347
run: |
24-
./gradlew assemble --parallel --no-build-cache -PDISABLE_BUILD_CACHE
48+
exit 0;

.github/workflows/dco.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Developer Certificate of Origin Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
dco-check:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Get PR Commits
11+
id: 'get-pr-commits'
12+
uses: tim-actions/get-pr-commits@v1.3.1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
- name: DCO Check
16+
uses: tim-actions/dco@v1.1.0
17+
with:
18+
commits: ${{ steps.get-pr-commits.outputs.commits }}
19+

.github/workflows/dependabot_pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
with:
2323
token: ${{ steps.github_app_token.outputs.token }}
2424

25+
# See please https://docs.gradle.org/8.10/userguide/upgrading_version_8.html#minimum_daemon_jvm_version
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: 17
30+
distribution: temurin
31+
2532
- name: Update Gradle SHAs
2633
run: |
2734
./gradlew updateSHAs

.github/workflows/gradle-check.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,28 @@ permissions:
1212
contents: read # to fetch code (actions/checkout)
1313

1414
jobs:
15+
check-files:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
RUN_GRADLE_CHECK: ${{ steps.changed-files-specific.outputs.any_changed }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Get changed files
22+
id: changed-files-specific
23+
uses: tj-actions/changed-files@v45
24+
with:
25+
files_ignore: |
26+
release-notes/*.md
27+
.github/**
28+
*.md
29+
1530
gradle-check:
16-
if: github.repository == 'opensearch-project/OpenSearch'
31+
needs: check-files
32+
if: github.repository == 'opensearch-project/OpenSearch' && needs.check-files.outputs.RUN_GRADLE_CHECK == 'true'
1733
permissions:
1834
contents: read # to fetch code (actions/checkout)
1935
pull-requests: write # to create or update comment (peter-evans/create-or-update-comment)
2036
issues: write # To create an issue if check fails on push.
21-
2237
runs-on: ubuntu-latest
2338
timeout-minutes: 130
2439
steps:
@@ -98,6 +113,7 @@ jobs:
98113
if: success()
99114
uses: codecov/codecov-action@v4
100115
with:
116+
token: ${{ secrets.CODECOV_TOKEN }}
101117
files: ./codeCoverage.xml
102118

103119
- name: Create Comment Success
@@ -143,11 +159,11 @@ jobs:
143159
144160
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure [a flaky test](https://github.com/opensearch-project/OpenSearch/blob/main/DEVELOPER_GUIDE.md#flaky-tests) unrelated to your change?
145161
146-
- name: Create Issue On Push Failure
147-
if: ${{ github.event_name == 'push' && failure() }}
148-
uses: dblock/create-a-github-issue@v3
149-
env:
150-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151-
with:
152-
assignees: ${{ github.event.head_commit.author.username }}, ${{ github.triggering_actor }}
153-
filename: .github/ISSUE_TEMPLATE/failed_check.md
162+
check-result:
163+
needs: [check-files, gradle-check]
164+
if: always()
165+
runs-on: ubuntu-latest
166+
steps:
167+
- name: Fail if gradle-check fails
168+
if: ${{ needs.check-files.outputs.RUN_GRADLE_CHECK && needs.gradle-check.result == 'failure' }}
169+
run: exit 1

.github/workflows/precommit.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
java: [ 11, 17, 21 ]
11-
os: [ubuntu-latest, windows-latest, macos-13]
11+
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Set up JDK ${{ matrix.java }}
@@ -17,6 +17,18 @@ jobs:
1717
java-version: ${{ matrix.java }}
1818
distribution: temurin
1919
cache: gradle
20+
- name: Set up JDK 17
21+
# See please https://docs.gradle.org/8.10/userguide/upgrading_version_8.html#minimum_daemon_jvm_version
22+
if: matrix.java == 11
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: 17
26+
distribution: temurin
27+
- name: Set JAVA${{ matrix.java }}_HOME
28+
shell: bash
29+
run: |
30+
echo "JAVA${{ matrix.java }}_HOME=$JAVA_HOME_${{ matrix.java }}_${{ runner.arch }}" >> $GITHUB_ENV
2031
- name: Run Gradle (precommit)
32+
shell: bash
2133
run: |
22-
./gradlew javadoc precommit --parallel
34+
./gradlew javadoc precommit --parallel -Druntime.java=${{ matrix.java }}

0 commit comments

Comments
 (0)