Skip to content

Commit 3e3fddd

Browse files
authored
Merge branch 'main' into builder-indexing-stats
Signed-off-by: Craig Perkins <cwperx@amazon.com>
2 parents f9c10a9 + 252cff8 commit 3e3fddd

File tree

333 files changed

+17528
-1433
lines changed

Some content is hidden

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

333 files changed

+17528
-1433
lines changed

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ BWC_VERSION:
5050
- "3.0.0"
5151
- "3.1.0"
5252
- "3.2.0"
53+
- "3.3.0"

.github/workflows/create-documentation-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Create Issue From File
3131
id: create-issue
32-
uses: peter-evans/create-issue-from-file@v5
32+
uses: peter-evans/create-issue-from-file@v6
3333
with:
3434
title: Add documentation related to new feature
3535
content-filepath: ./ci/documentation/issue.md

.github/workflows/gradle-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122

123123
- name: Create Comment Success
124124
if: ${{ github.event_name == 'pull_request_target' && success() && env.result == 'SUCCESS' }}
125-
uses: peter-evans/create-or-update-comment@v4
125+
uses: peter-evans/create-or-update-comment@v5
126126
with:
127127
issue-number: ${{ env.pr_number }}
128128
body: |
@@ -145,7 +145,7 @@ jobs:
145145
146146
- name: Create Comment Flaky
147147
if: ${{ github.event_name == 'pull_request_target' && success() && env.result != 'SUCCESS' }}
148-
uses: peter-evans/create-or-update-comment@v4
148+
uses: peter-evans/create-or-update-comment@v5
149149
with:
150150
issue-number: ${{ env.pr_number }}
151151
body: |
@@ -155,7 +155,7 @@ jobs:
155155
156156
- name: Create Comment Failure
157157
if: ${{ github.event_name == 'pull_request_target' && failure() }}
158-
uses: peter-evans/create-or-update-comment@v4
158+
uses: peter-evans/create-or-update-comment@v5
159159
with:
160160
issue-number: ${{ env.pr_number }}
161161
body: |

.github/workflows/poc-checklist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
issues: write
1212
steps:
1313
- name: Add comment
14-
uses: peter-evans/create-or-update-comment@v4
14+
uses: peter-evans/create-or-update-comment@v5
1515
with:
1616
issue-number: ${{ github.event.issue.number }}
1717
body: |

CHANGELOG.md

Lines changed: 18 additions & 123 deletions
Large diffs are not rendered by default.

MAINTAINERS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
2020
| Binlong Gao | [gaobinlong](https://github.com/gaobinlong) | Amazon |
2121
| Gaurav Bafna | [gbbafna](https://github.com/gbbafna) | Amazon |
2222
| Jay Deng | [jed326](https://github.com/jed326) | Amazon |
23+
| Karen Xu | [karenyrx](https://github.com/karenyrx) | Uber |
2324
| Ke Wei | [kkewwei](https://github.com/kkewwei) | ByteDance |
2425
| Kunal Kotwani | [kotwanikunal](https://github.com/kotwanikunal) | Amazon |
2526
| Varun Bansal | [linuxpi](https://github.com/linuxpi) | Amazon |
@@ -36,6 +37,7 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
3637
| Sarat Vemulapalli | [saratvemulapalli](https://github.com/saratvemulapalli) | Amazon |
3738
| Shweta Thareja | [shwetathareja](https://github.com/shwetathareja) | Amazon |
3839
| Sorabh Hamirwasia | [sohami](https://github.com/sohami) | Amazon |
40+
| Varun Bharadwaj | [varunbharadwaj](https://github.com/varunbharadwaj) | Uber |
3941
| Yupeng Fu | [yupeng9](https://github.com/yupeng9) | Uber |
4042

4143
## Emeritus

TESTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,16 @@ To run OpenSearch in debug mode,
8080

8181
This will instruct all JVMs (including any that run cli tools such as creating the keyring or adding users) to suspend and initiate a debug connection on port incrementing from `5005`. As such, the IDE needs to be instructed to listen for connections on this port. Since we might run multiple JVMs as part of configuring and starting the cluster, it's recommended to configure the IDE to initiate multiple listening attempts. In case of IntelliJ, this option is called "Auto restart" and needs to be checked. In case of Eclipse, "Connection limit" setting needs to be configured with a greater value (ie 10 or more).
8282

83+
Alternately, you can configure your OpenSearch JVM to listen as a debug server on port `5005`, and attach a debugger IDE once opensearch JVM is up and running. Use `./gradlew run --debug-server-jvm` for this debugging setup.
84+
8385
### Other useful arguments
8486

8587
- In order to start a node with a different max heap space add: `-Dtests.heap.size=4G`
8688
- In order to disable assertions add: `-Dtests.asserts=false`
8789
- In order to use a custom data directory: `--data-dir=/tmp/foo`
8890
- In order to preserve data in between executions: `--preserve-data`
89-
- In order to remotely attach a debugger to the process: `--debug-jvm`
91+
- In order to start opensearch as a debug server and remotely attach a debugger client (like an IDE debugger): `--debug-server-jvm`
92+
- In order to start and attach opensearch process to an existing debug server: `--debug-jvm`
9093
- In order to set a different keystore password: `--keystore-password yourpassword`
9194
- In order to set an OpenSearch setting, provide a setting with the following prefix: `-Dtests.opensearch.`
9295
- In order to enable stack trace of the MockSpanData during testing, add: `-Dtests.telemetry.span.stack_traces=true` (Storing stack traces alongside span data can be useful for comprehensive debugging and performance optimization during testing, as it provides insights into the exact code paths and execution sequences, facilitating efficient issue identification and resolution. Note: Enabling this might lead to OOM issues while running ITs)

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ dependencies {
130130
testFixturesApi gradleTestKit()
131131
testImplementation 'org.wiremock:wiremock-standalone:3.6.0'
132132
testImplementation "org.mockito:mockito-core:${props.getProperty('mockito')}"
133-
integTestImplementation('org.spockframework:spock-core:2.3-groovy-3.0') {
133+
integTestImplementation('org.spockframework:spock-core:2.4-M6-groovy-4.0') {
134134
exclude module: "groovy"
135135
}
136136
}

buildSrc/src/main/java/org/opensearch/gradle/JdkDownloadPlugin.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ public void apply(Project project) {
9696
project.getExtensions().add(EXTENSION_NAME, jdksContainer);
9797
}
9898

99-
private void setupRepository(Project project, Jdk jdk) {
99+
// pkg private for tests
100+
void setupRepository(Project project, Jdk jdk) {
100101
RepositoryHandler repositories = project.getRepositories();
101102

102103
/*
@@ -195,7 +196,8 @@ public static NamedDomainObjectContainer<Jdk> getContainer(Project project) {
195196
return (NamedDomainObjectContainer<Jdk>) project.getExtensions().getByName(EXTENSION_NAME);
196197
}
197198

198-
private static String dependencyNotation(Jdk jdk) {
199+
// pkg private for tests
200+
static String dependencyNotation(Jdk jdk) {
199201
String platformDep = jdk.getPlatform().equals("darwin") || jdk.getPlatform().equals("mac")
200202
? (jdk.getVendor().equals(VENDOR_OPENJDK) ? "osx" : "mac")
201203
: jdk.getPlatform();

buildSrc/src/main/java/org/opensearch/gradle/internal/InternalDistributionArchiveSetupPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ private void registerAndConfigureDistributionArchivesExtension(Project project)
137137
extractedConfiguration.setCanBeResolved(false);
138138
extractedConfiguration.getAttributes().attribute(ARTIFACT_FORMAT, ArtifactTypeDefinition.DIRECTORY_TYPE);
139139
sub.getArtifacts().add(EXTRACTED_CONFIGURATION_NAME, distributionArchive.getExpandedDistTask());
140-
140+
// Add the archive task as a dependency of assemble. This was not required before Gradle 9.
141+
sub.getTasks().named("assemble").configure(t -> t.dependsOn(distributionArchive.getArchiveTask()));
141142
});
142143
});
143144
project.getExtensions().add("distribution_archives", container);

0 commit comments

Comments
 (0)