Skip to content

Commit 275efd3

Browse files
committed
Merge branch 'main' into simplify-system-module-detection
2 parents 30efcc6 + 1637303 commit 275efd3

File tree

1,514 files changed

+15139
-4575
lines changed

Some content is hidden

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

1,514 files changed

+15139
-4575
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", "8.19.0", "9.0.0", "9.1.0"]
59+
BWC_VERSION: ["8.16.6", "8.17.4", "8.18.0", "8.19.0", "9.0.0", "9.1.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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ steps:
287287
env:
288288
BWC_VERSION: 8.15.5
289289

290-
- label: "{{matrix.image}} / 8.16.5 / packaging-tests-upgrade"
291-
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.16.5
290+
- label: "{{matrix.image}} / 8.16.6 / packaging-tests-upgrade"
291+
command: ./.ci/scripts/packaging-test.sh -Dbwc.checkout.align=true destructiveDistroUpgradeTest.v8.16.6
292292
timeout_in_minutes: 300
293293
matrix:
294294
setup:
@@ -301,10 +301,10 @@ steps:
301301
machineType: custom-16-32768
302302
buildDirectory: /dev/shm/bk
303303
env:
304-
BWC_VERSION: 8.16.5
304+
BWC_VERSION: 8.16.6
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ steps:
306306
- signal_reason: agent_stop
307307
limit: 3
308308

309-
- label: 8.16.5 / bwc
310-
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.16.5#bwcTest
309+
- label: 8.16.6 / bwc
310+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v8.16.6#bwcTest
311311
timeout_in_minutes: 300
312312
agents:
313313
provider: gcp
@@ -316,7 +316,7 @@ steps:
316316
buildDirectory: /dev/shm/bk
317317
preemptible: true
318318
env:
319-
BWC_VERSION: 8.16.5
319+
BWC_VERSION: 8.16.6
320320
retry:
321321
automatic:
322322
- exit_status: "-1"
@@ -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"
@@ -486,7 +486,7 @@ steps:
486486
setup:
487487
ES_RUNTIME_JAVA:
488488
- openjdk21
489-
BWC_VERSION: ["8.16.5", "8.17.3", "8.18.0", "8.19.0", "9.0.0", "9.1.0"]
489+
BWC_VERSION: ["8.16.6", "8.17.4", "8.18.0", "8.19.0", "9.0.0", "9.1.0"]
490490
agents:
491491
provider: gcp
492492
image: family/elasticsearch-ubuntu-2004
@@ -533,7 +533,7 @@ steps:
533533
ES_RUNTIME_JAVA:
534534
- openjdk21
535535
- openjdk23
536-
BWC_VERSION: ["8.16.5", "8.17.3", "8.18.0", "8.19.0", "9.0.0", "9.1.0"]
536+
BWC_VERSION: ["8.16.6", "8.17.4", "8.18.0", "8.19.0", "9.0.0", "9.1.0"]
537537
agents:
538538
provider: gcp
539539
image: family/elasticsearch-ubuntu-2004

.ci/bwcVersions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ BWC_VERSION:
1515
- "8.13.4"
1616
- "8.14.3"
1717
- "8.15.5"
18-
- "8.16.5"
19-
- "8.17.3"
18+
- "8.16.6"
19+
- "8.17.4"
2020
- "8.18.0"
2121
- "8.19.0"
2222
- "9.0.0"

.ci/snapshotBwcVersions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BWC_VERSION:
2-
- "8.16.5"
3-
- "8.17.3"
2+
- "8.16.6"
3+
- "8.17.4"
44
- "8.18.0"
55
- "8.19.0"
66
- "9.0.0"

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ indent_size = 4
209209
max_line_length = 140
210210
ij_java_class_count_to_use_import_on_demand = 999
211211
ij_java_names_count_to_use_import_on_demand = 999
212-
ij_java_imports_layout = *,|,com.**,|,io.**,|,org.**,|,java.**,|,javax.**,|,$*
212+
# The first '@*,' is a workaround for https://youtrack.jetbrains.com/issue/IDEA-368382/Auto-import-puts-java-imports-first-even-when-Editor-Code-style-Java-Import-layout-puts-them-last
213+
# it should be removed once that is fixed
214+
ij_java_imports_layout = @*,*,|,com.**,|,org.**,|,java.**,|,javax.**,|,$*
213215

214216
[*.json]
215217
indent_size = 2

.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/DockerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public enum DockerBase {
2222
// Chainguard based wolfi image with latest jdk
2323
// This is usually updated via renovatebot
2424
// spotless:off
25-
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:c66fdafe581a6ab1668a962015de4ce4666a60ed601d24f019f03bb4aaab8eeb",
25+
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:15a4191ff8ec8305dcba449365e8a1586c9cda8e016ae838d960b9009c6a5cac",
2626
"-wolfi",
2727
"apk"
2828
),

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",

0 commit comments

Comments
 (0)