Skip to content

Commit e8e6b43

Browse files
authored
Merge branch '9.0' into backport-9.0
2 parents 07f6457 + aac29cc commit e8e6b43

File tree

388 files changed

+1452
-2557
lines changed

Some content is hidden

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

388 files changed

+1452
-2557
lines changed

.buildkite/pipelines/intake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ steps:
5656
timeout_in_minutes: 300
5757
matrix:
5858
setup:
59-
BWC_VERSION: ["8.16.5", "8.17.3", "8.18.0", "9.0.0"]
59+
BWC_VERSION: ["8.16.5", "8.17.4", "8.18.0", "9.0.0"]
6060
agents:
6161
provider: gcp
6262
image: family/elasticsearch-ubuntu-2004
@@ -76,7 +76,7 @@ steps:
7676
ES_VERSION:
7777
- "9.0.0"
7878
ES_COMMIT:
79-
- "10352e57d85505984582616e1e38530d3ec6ca59" # update to match last commit before lucene bump / head of combat-lucene-10-0-0
79+
- "b2cc9d9b8f00ee621f93ddca07ea9c671aab1578" # update to match last commit before lucene bump
8080
agents:
8181
provider: gcp
8282
image: family/elasticsearch-ubuntu-2004

.buildkite/pipelines/periodic-packaging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ steps:
303303
env:
304304
BWC_VERSION: 8.16.5
305305

306-
- label: "{{matrix.image}} / 8.17.3 / packaging-tests-upgrade"
307-
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.17.3
306+
- label: "{{matrix.image}} / 8.17.4 / packaging-tests-upgrade"
307+
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.17.4
308308
timeout_in_minutes: 300
309309
matrix:
310310
setup:
@@ -317,7 +317,7 @@ steps:
317317
machineType: custom-16-32768
318318
buildDirectory: /dev/shm/bk
319319
env:
320-
BWC_VERSION: 8.17.3
320+
BWC_VERSION: 8.17.4
321321

322322
- label: "{{matrix.image}} / 8.18.0 / packaging-tests-upgrade"
323323
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.18.0

.buildkite/pipelines/periodic.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ steps:
325325
- signal_reason: agent_stop
326326
limit: 3
327327

328-
- label: 8.17.3 / bwc
329-
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.17.3#bwcTest
328+
- label: 8.17.4 / bwc
329+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.17.4#bwcTest
330330
timeout_in_minutes: 300
331331
agents:
332332
provider: gcp
@@ -335,7 +335,7 @@ steps:
335335
buildDirectory: /dev/shm/bk
336336
preemptible: true
337337
env:
338-
BWC_VERSION: 8.17.3
338+
BWC_VERSION: 8.17.4
339339
retry:
340340
automatic:
341341
- exit_status: "-1"
@@ -448,7 +448,7 @@ steps:
448448
setup:
449449
ES_RUNTIME_JAVA:
450450
- openjdk21
451-
BWC_VERSION: ["8.16.5", "8.17.3", "8.18.0", "9.0.0"]
451+
BWC_VERSION: ["8.16.5", "8.17.4", "8.18.0", "9.0.0"]
452452
agents:
453453
provider: gcp
454454
image: family/elasticsearch-ubuntu-2004
@@ -490,7 +490,7 @@ steps:
490490
ES_RUNTIME_JAVA:
491491
- openjdk21
492492
- openjdk23
493-
BWC_VERSION: ["8.16.5", "8.17.3", "8.18.0", "9.0.0"]
493+
BWC_VERSION: ["8.16.5", "8.17.4", "8.18.0", "9.0.0"]
494494
agents:
495495
provider: gcp
496496
image: family/elasticsearch-ubuntu-2004

.ci/bwcVersions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ BWC_VERSION:
1616
- "8.14.3"
1717
- "8.15.5"
1818
- "8.16.5"
19-
- "8.17.3"
19+
- "8.17.4"
2020
- "8.18.0"
2121
- "9.0.0"

.ci/snapshotBwcVersions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BWC_VERSION:
22
- "8.16.5"
3-
- "8.17.3"
3+
- "8.17.4"
44
- "8.18.0"
55
- "9.0.0"

.github/workflows/docs-preview-links.yml

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

build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/ElasticsearchTestBasePluginFuncTest.groovy

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,55 @@ import org.gradle.testkit.runner.TaskOutcome
1414

1515
class ElasticsearchTestBasePluginFuncTest extends AbstractGradleFuncTest {
1616

17-
def setup() {
18-
// see https://github.com/gradle/gradle/issues/24172
19-
configurationCacheCompatible = false
17+
def "can disable assertions via cmdline param"() {
18+
given:
19+
file("src/test/java/acme/SomeTests.java").text = """
20+
public class SomeTests {
21+
@org.junit.Test
22+
public void testAsserts() {
23+
assert false;
24+
}
25+
}
26+
"""
27+
buildFile.text = """
28+
plugins {
29+
id 'java'
30+
id 'elasticsearch.test-base'
31+
}
32+
33+
repositories {
34+
mavenCentral()
35+
}
36+
37+
dependencies {
38+
testImplementation 'junit:junit:4.12'
39+
}
40+
"""
41+
42+
when:
43+
def result = gradleRunner("test").buildAndFail()
44+
then:
45+
result.task(':test').outcome == TaskOutcome.FAILED
46+
47+
when:
48+
result = gradleRunner("test", "-Dtests.asserts=false").build()
49+
then:
50+
result.task(':test').outcome == TaskOutcome.SUCCESS
51+
52+
when:
53+
result = gradleRunner("test", "-Dtests.jvm.argline=-da").build()
54+
then:
55+
result.task(':test').outcome == TaskOutcome.SUCCESS
56+
57+
when:
58+
result = gradleRunner("test", "-Dtests.jvm.argline=-disableassertions").build()
59+
then:
60+
result.task(':test').outcome == TaskOutcome.SUCCESS
61+
62+
when:
63+
result = gradleRunner("test", "-Dtests.asserts=false", "-Dtests.jvm.argline=-da").build()
64+
then:
65+
result.task(':test').outcome == TaskOutcome.SUCCESS
2066
}
2167

2268
def "can configure nonInputProperties for test tasks"() {

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchTestBasePlugin.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,15 @@ public void execute(Task t) {
137137
test.jvmArgs((Object[]) argline.split(" "));
138138
}
139139

140-
if (Util.getBooleanProperty("tests.asserts", true)) {
141-
test.jvmArgs("-ea", "-esa");
140+
// Check if "tests.asserts" is false or "tests.jvm.argline" contains the "-da" flag.
141+
boolean disableAssertions = Util.getBooleanProperty("tests.asserts", true) == false
142+
|| (argline != null && (argline.contains("-da")))
143+
|| (argline != null && (argline.contains("-disableassertions")));
144+
145+
if (disableAssertions) {
146+
System.out.println("disable assertions");
147+
test.setEnableAssertions(false);
142148
}
143-
144149
Map<String, String> sysprops = Map.of(
145150
"java.awt.headless",
146151
"true",

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/JarApiComparisonTask.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ private String getPath() {
111111
List<String> classNames() throws IOException {
112112
Pattern classEnding = Pattern.compile(".*\\.class$");
113113
try (JarFile jf = new JarFile(this.path)) {
114-
return jf.stream().map(ZipEntry::getName).filter(classEnding.asMatchPredicate()).collect(Collectors.toList());
114+
return jf.stream()
115+
.map(ZipEntry::getName)
116+
.filter(classEnding.asMatchPredicate())
117+
.filter(c -> c.startsWith("org/elasticsearch/logging/internal/") == false)
118+
.collect(Collectors.toList());
115119
}
116120
}
117121

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ opensaml = 4.3.0
2929

3030
# client dependencies
3131
httpclient = 4.5.14
32-
httpcore = 4.4.13
32+
httpcore = 4.4.16
3333
httpasyncclient = 4.1.5
3434
commonslogging = 1.2
3535
commonscodec = 1.15

0 commit comments

Comments
 (0)