Skip to content

Commit 87fbd29

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix_yaml_test
2 parents b12ccca + a391ea3 commit 87fbd29

File tree

159 files changed

+5780
-254
lines changed

Some content is hidden

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

159 files changed

+5780
-254
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
distribution: temurin
4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v3
46+
uses: github/codeql-action/init@v4
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v3
57+
uses: github/codeql-action/autobuild@v4
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v3
71+
uses: github/codeql-action/analyze@v4

.github/workflows/wrapper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v5
11-
- uses: gradle/actions/wrapper-validation@v4
11+
- uses: gradle/actions/wrapper-validation@v5

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
- Use Lucene `pack` method for `half_float` and `usigned_long` when using `ApproximatePointRangeQuery`.
1212
- Add a mapper for context aware segments grouping criteria ([#19233](https://github.com/opensearch-project/OpenSearch/pull/19233))
1313
- Return full error for GRPC error response ([#19568](https://github.com/opensearch-project/OpenSearch/pull/19568))
14+
- Add support for repository with Server side encryption enabled and client side encryption as well based on a flag. ([#19630)](https://github.com/opensearch-project/OpenSearch/pull/19630))
1415
- Add pluggable gRPC interceptors with explicit ordering([#19005](https://github.com/opensearch-project/OpenSearch/pull/19005))
1516
- Add BindableServices extension point to transport-grpc-spi ([#19304](https://github.com/opensearch-project/OpenSearch/pull/19304))
1617
- Add metrics for the merged segment warmer feature ([#18929](https://github.com/opensearch-project/OpenSearch/pull/18929))
1718
- Add pointer based lag metric in pull-based ingestion ([#19635](https://github.com/opensearch-project/OpenSearch/pull/19635))
1819
- Introduced internal API for retrieving metadata about requested indices from transport actions ([#18523](https://github.com/opensearch-project/OpenSearch/pull/18523))
1920
- Add cluster defaults for merge autoThrottle, maxMergeThreads, and maxMergeCount; Add segment size filter to the merged segment warmer ([#19629](https://github.com/opensearch-project/OpenSearch/pull/19629))
21+
- Add build-tooling to run in FIPS environment ([#18921](https://github.com/opensearch-project/OpenSearch/pull/18921))
22+
- Add SMILE/CBOR/YAML document format support to Bulk GRPC endpoint ([#19744](https://github.com/opensearch-project/OpenSearch/pull/19744))
2023

2124
### Changed
2225
- Faster `terms` query creation for `keyword` field with index and docValues enabled ([#19350](https://github.com/opensearch-project/OpenSearch/pull/19350))
@@ -29,7 +32,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2932
- Refactor the ThreadPoolStats.Stats class to use the Builder pattern instead of constructors ([#19317](https://github.com/opensearch-project/OpenSearch/pull/19317))
3033
- Refactor the IndexingStats.Stats class to use the Builder pattern instead of constructors ([#19306](https://github.com/opensearch-project/OpenSearch/pull/19306))
3134
- Remove FeatureFlag.MERGED_SEGMENT_WARMER_EXPERIMENTAL_FLAG. ([#19715](https://github.com/opensearch-project/OpenSearch/pull/19715))
32-
-
35+
- Change the default value of doc_values in WildcardFieldMapper to true. ([#19796](https://github.com/opensearch-project/OpenSearch/pull/19796))
36+
- Make Engine#loadHistoryUUID() protected and Origin#isFromTranslog() public ([#19753](https://github.com/opensearch-project/OpenSearch/pull/19752))
37+
3338
### Fixed
3439
- Fix Allocation and Rebalance Constraints of WeightFunction are incorrectly reset ([#19012](https://github.com/opensearch-project/OpenSearch/pull/19012))
3540
- Fix flaky test FieldDataLoadingIT.testIndicesFieldDataCacheSizeSetting ([#19571](https://github.com/opensearch-project/OpenSearch/pull/19571))
@@ -40,6 +45,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4045
- [Java Agent] Allow JRT protocol URLs in protection domain extraction ([#19683](https://github.com/opensearch-project/OpenSearch/pull/19683))
4146
- Fix potential concurrent modification exception when updating allocation filters ([#19701])(https://github.com/opensearch-project/OpenSearch/pull/19701))
4247
- Fix file-based ingestion consumer to handle start point beyond max line number([#19757])(https://github.com/opensearch-project/OpenSearch/pull/19757))
48+
- Fix IndexOutOfBoundsException when running include/exclude on non-existent prefix in terms aggregations ([#19637](https://github.com/opensearch-project/OpenSearch/pull/19637))
49+
- Fixed assertion unsafe use of ClusterService.state() in ResourceUsageCollectorService ([#19775])(https://github.com/opensearch-project/OpenSearch/pull/19775))
50+
- Add S3Repository.LEGACY_MD5_CHECKSUM_CALCULATION to list of repository-s3 settings ([#19788](https://github.com/opensearch-project/OpenSearch/pull/19788))
4351

4452
### Dependencies
4553
- Update to Gradle 9.1 ([#19575](https://github.com/opensearch-project/OpenSearch/pull/19575))
@@ -54,6 +62,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5462
- Bump `org.apache.avro:avro` from 1.12.0 to 1.12.1 ([#19692](https://github.com/opensearch-project/OpenSearch/pull/19692))
5563
- Bump `com.github.spotbugs:spotbugs-annotations` from 4.9.6 to 4.9.8 ([#19691](https://github.com/opensearch-project/OpenSearch/pull/19691))
5664
- Bump `stefanzweifel/git-auto-commit-action` from 6 to 7 ([#19689](https://github.com/opensearch-project/OpenSearch/pull/19689))
65+
- Bump ch.qos.logback modules from 1.5.18 to 1.5.20 in HDFS test fixture ([#19763](https://github.com/opensearch-project/OpenSearch/pull/19763))
66+
- Bump `github/codeql-action` from 3 to 4 ([#19785](https://github.com/opensearch-project/OpenSearch/pull/19785))
67+
- Bump `gradle/actions` from 4 to 5 ([#19781](https://github.com/opensearch-project/OpenSearch/pull/19781))
68+
- Bump org.bouncycastle:bc-fips from 2.1.1 to 2.1.2 ([#19818](https://github.com/opensearch-project/OpenSearch/pull/19818))
69+
- Bump `com.google.http-client:google-http-client-gson` from 1.47.1 to 2.0.0 ([#19253](https://github.com/opensearch-project/OpenSearch/pull/19253))
5770

5871
### Deprecated
5972
- Deprecated existing constructors in ThreadPoolStats.Stats in favor of the new Builder ([#19317](https://github.com/opensearch-project/OpenSearch/pull/19317))

build.gradle

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ apply from: 'gradle/run.gradle'
7171
apply from: 'gradle/missing-javadoc.gradle'
7272
apply from: 'gradle/code-coverage.gradle'
7373

74+
// Apply FIPS configuration to all projects
75+
allprojects {
76+
apply from: "$rootDir/gradle/fips.gradle"
77+
}
78+
7479
// common maven publishing configuration
7580
allprojects {
7681
group = 'org.opensearch'
@@ -421,8 +426,12 @@ gradle.projectsEvaluated {
421426
dependsOn(project(':libs:agent-sm:agent').prepareAgent)
422427
jvmArgs += ["-javaagent:" + project(':libs:agent-sm:agent').jar.archiveFile.get()]
423428
}
424-
if (BuildParams.inFipsJvm) {
425-
task.jvmArgs += ["-Dorg.bouncycastle.fips.approved_only=true"]
429+
if (BuildParams.isInFipsJvm()) {
430+
def fipsSecurityFile = project.rootProject.file('distribution/src/config/fips_java.security')
431+
task.jvmArgs += [
432+
"-Dorg.bouncycastle.fips.approved_only=true",
433+
"-Djava.security.properties=${fipsSecurityFile}"
434+
]
426435
}
427436
}
428437
}
@@ -693,14 +702,6 @@ allprojects {
693702
plugins.withId('lifecycle-base') {
694703
checkPart1.configure { dependsOn 'check' }
695704
}
696-
697-
plugins.withId('opensearch.testclusters') {
698-
testClusters.configureEach {
699-
if (BuildParams.inFipsJvm) {
700-
keystorePassword 'notarealpasswordphrase'
701-
}
702-
}
703-
}
704705
}
705706

706707
subprojects {

buildSrc/build.gradle

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ dependencies {
133133
integTestImplementation('org.spockframework:spock-core:2.4-M6-groovy-4.0') {
134134
exclude module: "groovy"
135135
}
136+
// Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform -
137+
// part of JUnit 5) - https://spockframework.org/spock/docs/2.4-M6/modules.html
138+
integTestImplementation('org.spockframework:spock-junit4:2.4-M6-groovy-4.0') {
139+
exclude module: "groovy"
140+
}
141+
integTestImplementation(platform("org.junit:junit-bom:${props.getProperty('junit5')}"))
142+
integTestRuntimeOnly("org.junit.platform:junit-platform-launcher")
143+
integTestRuntimeOnly("org.junit.vintage:junit-vintage-engine")
136144
}
137145

138146
configurations.all {
@@ -185,7 +193,7 @@ if (project != rootProject) {
185193
disableTasks('forbiddenApisMain', 'forbiddenApisTest', 'forbiddenApisIntegTest', 'forbiddenApisTestFixtures')
186194
jarHell.enabled = false
187195
thirdPartyAudit.enabled = false
188-
if (org.opensearch.gradle.info.BuildParams.inFipsJvm) {
196+
if (org.opensearch.gradle.info.BuildParams.isInFipsJvm()) {
189197
// We don't support running gradle with a JVM that is in FIPS 140 mode, so we don't test it.
190198
// WaitForHttpResourceTests tests would fail as they use JKS/PKCS12 keystores
191199
test.enabled = false
@@ -253,9 +261,10 @@ if (project != rootProject) {
253261
}
254262

255263
tasks.register("integTest", Test) {
264+
useJUnitPlatform()
256265
inputs.dir(file("src/testKit")).withPropertyName("testkit dir").withPathSensitivity(PathSensitivity.RELATIVE)
257266
systemProperty 'test.version_under_test', version
258-
onlyIf { org.opensearch.gradle.info.BuildParams.inFipsJvm == false }
267+
onlyIf { org.opensearch.gradle.info.BuildParams.isInFipsJvm() == false }
259268
maxParallelForks = System.getProperty('tests.jvms', org.opensearch.gradle.info.BuildParams.defaultParallel.toString()) as Integer
260269
testClassesDirs = sourceSets.integTest.output.classesDirs
261270
classpath = sourceSets.integTest.runtimeClasspath

buildSrc/src/integTest/groovy/org/opensearch/gradle/DistributionDownloadPluginFuncTest.groovy

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
package org.opensearch.gradle
3131

3232

33+
import org.opensearch.gradle.Architecture
3334
import org.opensearch.gradle.fixtures.AbstractGradleFuncTest
3435
import org.opensearch.gradle.transform.SymbolicLinkPreservingUntarTransform
3536
import org.gradle.testkit.runner.TaskOutcome
@@ -56,23 +57,25 @@ class DistributionDownloadPluginFuncTest extends AbstractGradleFuncTest {
5657
where:
5758
version | platform | distType
5859
VersionProperties.getOpenSearch() | OpenSearchDistribution.Platform.LINUX | "current"
59-
"8.1.0-SNAPSHOT" | OpenSearchDistribution.Platform.LINUX | "bwc"
60-
"7.0.0" | OpenSearchDistribution.Platform.WINDOWS | "released"
60+
"2.19.0-SNAPSHOT" | OpenSearchDistribution.Platform.LINUX | "bwc"
61+
"3.3.0" | OpenSearchDistribution.Platform.WINDOWS | "released"
6162
}
6263

6364

6465
def "transformed versions are kept across builds"() {
6566
given:
6667
def version = VersionProperties.getOpenSearch()
6768
def platform = OpenSearchDistribution.Platform.LINUX
69+
def arch = Architecture.current().name().toLowerCase()
6870

6971
buildFile << applyPluginAndSetupDistro(version, platform)
7072
buildFile << """
7173
apply plugin:'base'
7274
"""
7375

7476
when:
75-
def runner = gradleRunner('clean', 'setupDistro', '-i')
77+
def customGradleUserHome = testProjectDir.newFolder().absolutePath;
78+
def runner = gradleRunner('clean', 'setupDistro', '-i', '-g', customGradleUserHome)
7679
def result = withMockedDistributionDownload(version, platform, runner) {
7780
// initial run
7881
build()
@@ -82,15 +85,18 @@ class DistributionDownloadPluginFuncTest extends AbstractGradleFuncTest {
8285

8386
then:
8487
result.task(":setupDistro").outcome == TaskOutcome.SUCCESS
85-
assertOutputContains(result.output, "Skipping ${SymbolicLinkPreservingUntarTransform.class.simpleName}")
88+
result.output.count("Unpacking opensearch-${version}-linux-${arch}.tar.gz " +
89+
"using SymbolicLinkPreservingUntarTransform.") == 0
8690
}
8791

8892
def "transforms are reused across projects"() {
8993
given:
9094
def version = VersionProperties.getOpenSearch()
9195
def platform = OpenSearchDistribution.Platform.LINUX
96+
def arch = Architecture.current().name().toLowerCase()
9297

9398
3.times {
99+
testProjectDir.newFolder("sub-$it")
94100
settingsFile << """
95101
include ':sub-$it'
96102
"""
@@ -119,7 +125,7 @@ class DistributionDownloadPluginFuncTest extends AbstractGradleFuncTest {
119125

120126
then:
121127
result.tasks.size() == 3
122-
result.output.count("Unpacking opensearch-${version}-linux-x64.tar.gz " +
128+
result.output.count("Unpacking opensearch-${version}-linux-${arch}.tar.gz " +
123129
"using SymbolicLinkPreservingUntarTransform.") == 1
124130
}
125131

buildSrc/src/integTest/groovy/org/opensearch/gradle/JdkDownloadPluginFuncTest.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class JdkDownloadPluginFuncTest extends AbstractGradleFuncTest {
108108
def mockRepoUrl = urlPath(jdkVendor, jdkVersion, platform)
109109
def mockedContent = filebytes(jdkVendor, platform)
110110
3.times {
111+
testProjectDir.newFolder("sub-$it")
111112
settingsFile << """
112113
include ':sub-$it'
113114
"""
@@ -193,7 +194,7 @@ class JdkDownloadPluginFuncTest extends AbstractGradleFuncTest {
193194
}
194195

195196
then:
196-
assertOutputContains(result.output, "Skipping $transformType")
197+
result.output.count("Unpacking ${platform}-12.0.2-x64.tar.gz using ${transformType}.") == 0
197198

198199
where:
199200
platform | transformType
@@ -246,6 +247,7 @@ class JdkDownloadPluginFuncTest extends AbstractGradleFuncTest {
246247
p.repositories.all { repo ->
247248
if(repo.name == "jdk_repo_${jdkVendor}_${jdkVersion}") {
248249
repo.setUrl('${server.baseUrl()}')
250+
repo.setAllowInsecureProtocol(true)
249251
}
250252
}
251253
}"""

buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
package org.opensearch.gradle.fixtures
3131

3232

33+
import org.opensearch.gradle.Architecture
3334
import org.opensearch.gradle.OpenSearchDistribution
3435
import org.opensearch.gradle.Version
3536
import org.opensearch.gradle.VersionProperties
@@ -66,11 +67,12 @@ class DistributionDownloadFixture {
6667
private static String urlPath(String version, OpenSearchDistribution.Platform platform) {
6768
String fileType = ((platform == OpenSearchDistribution.Platform.LINUX ||
6869
platform == OpenSearchDistribution.Platform.DARWIN)) ? "tar.gz" : "zip"
70+
String arch = Architecture.current().name().toLowerCase()
6971
if (Version.fromString(version).onOrAfter(Version.fromString("1.0.0"))) {
7072
if (version.contains("SNAPSHOT")) {
71-
return "/snapshots/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64-latest.$fileType"
73+
return "/snapshots/core/opensearch/${version}/opensearch-min-${version}-${platform}-${arch}-latest.$fileType"
7274
}
73-
return "/releases/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64.$fileType"
75+
return "/releases/core/opensearch/${version}/opensearch-min-${version}-${platform}-${arch}.$fileType"
7476
} else {
7577
return "/downloads/elasticsearch/elasticsearch-oss-${version}-${platform}-x86_64.$fileType"
7678
}

buildSrc/src/integTest/groovy/org/opensearch/gradle/internal/InternalDistributionArchiveSetupPluginFuncTest.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ class InternalDistributionArchiveSetupPluginFuncTest extends AbstractGradleFuncT
9898
given:
9999
file('someFile.txt') << "some content"
100100

101+
testProjectDir.newFolder("consumer")
102+
testProjectDir.newFolder("producer-tar")
103+
101104
settingsFile << """
102105
include ':consumer'
103106
include ':producer-tar'

buildSrc/src/integTest/groovy/org/opensearch/gradle/internal/InternalDistributionDownloadPluginFuncTest.groovy

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
package org.opensearch.gradle.internal
3131

32+
import org.opensearch.gradle.Architecture
3233
import org.opensearch.gradle.VersionProperties
3334
import org.opensearch.gradle.fixtures.AbstractGradleFuncTest
3435
import org.gradle.testkit.runner.GradleRunner
@@ -59,7 +60,8 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
5960
def "resolves current version from local build"() {
6061
given:
6162
internalBuild()
62-
localDistroSetup()
63+
def archive = archiveTask()
64+
localDistroSetup(archive)
6365
def distroVersion = VersionProperties.getOpenSearch()
6466
buildFile << """
6567
apply plugin: 'opensearch.internal-distribution-download'
@@ -82,7 +84,7 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
8284
def result = gradleRunner("setupDistro", '-g', testProjectDir.newFolder('GUH').path).build()
8385

8486
then:
85-
result.task(":distribution:archives:linux-tar:buildExpanded").outcome == TaskOutcome.SUCCESS
87+
result.task(":distribution:archives:${archive}:buildExpanded").outcome == TaskOutcome.SUCCESS
8688
result.task(":setupDistro").outcome == TaskOutcome.SUCCESS
8789
assertExtractedDistroIsCreated("build/distro", 'current-marker.txt')
8890
}
@@ -122,6 +124,8 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
122124
internalBuild()
123125
bwcMinorProjectSetup()
124126
buildFile << """
127+
import org.opensearch.gradle.JavaPackageType
128+
125129
apply plugin: 'opensearch.internal-distribution-download'
126130
127131
opensearch_distributions {
@@ -130,7 +134,7 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
130134
type = "archive"
131135
platform = "linux"
132136
architecture = Architecture.current();
133-
bundledJdk = false
137+
bundledJdk = JavaPackageType.NONE
134138
}
135139
}
136140
tasks.register("createExtractedTestDistro") {
@@ -148,42 +152,47 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
148152
settingsFile << """
149153
include ':distribution:bwc:minor'
150154
"""
155+
def archive = archiveTask()
151156
def bwcSubProjectFolder = testProjectDir.newFolder("distribution", "bwc", "minor")
152157
new File(bwcSubProjectFolder, 'bwc-marker.txt') << "bwc=minor"
153158
new File(bwcSubProjectFolder, 'build.gradle') << """
154159
apply plugin:'base'
155160
156161
// packed distro
157-
configurations.create("linux-tar")
162+
configurations.create("${archive}")
158163
tasks.register("buildBwcTask", Tar) {
159164
from('bwc-marker.txt')
160165
archiveExtension = "tar.gz"
161166
compression = Compression.GZIP
162167
}
163168
artifacts {
164-
it.add("linux-tar", buildBwcTask)
169+
it.add("${archive}", buildBwcTask)
165170
}
166171
167172
// expanded distro
168-
configurations.create("expanded-linux-tar")
173+
configurations.create("expanded-${archive}")
169174
def expandedTask = tasks.register("buildBwcExpandedTask", Copy) {
170175
from('bwc-marker.txt')
171176
into('build/install/opensearch-distro')
172177
}
173178
artifacts {
174-
it.add("expanded-linux-tar", file('build/install')) {
179+
it.add("expanded-${archive}", file('build/install')) {
175180
builtBy expandedTask
176181
type = 'directory'
177182
}
178183
}
179184
"""
180185
}
181186

182-
private void localDistroSetup() {
187+
private String archiveTask() {
188+
return Architecture.current() == Architecture.X64 ? "linux-tar" : "linux-${Architecture.current().name().toLowerCase()}-tar";
189+
}
190+
191+
private void localDistroSetup(def archive) {
183192
settingsFile << """
184-
include ":distribution:archives:linux-tar"
193+
include ":distribution:archives:${archive}"
185194
"""
186-
def bwcSubProjectFolder = testProjectDir.newFolder("distribution", "archives", "linux-tar")
195+
def bwcSubProjectFolder = testProjectDir.newFolder("distribution", "archives", "${archive}")
187196
new File(bwcSubProjectFolder, 'current-marker.txt') << "current"
188197
new File(bwcSubProjectFolder, 'build.gradle') << """
189198
import org.gradle.api.internal.artifacts.ArtifactAttributes;

0 commit comments

Comments
 (0)