Skip to content

Commit 2ba546e

Browse files
committed
Merge remote-tracking branch 'elastic/master' into geosql
2 parents 584b74c + 8add000 commit 2ba546e

File tree

1,007 files changed

+23436
-16309
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,007 files changed

+23436
-16309
lines changed

TESTING.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ sudo bash $PACKAGING_TESTS/run-tests.sh
498498
499499
# run specific test cases
500500
sudo bash $PACKAGING_TESTS/run-tests.sh \
501-
org.elasticsearch.packaging.test.DefaultZipTests \
502-
org.elasticsearch.packaging.test.OssZipTests
501+
org.elasticsearch.packaging.test.DefaultWindowsZipTests \
502+
org.elasticsearch.packaging.test.OssWindowsZipTests
503503
--------------------------------------------
504504

505505
or on Windows, from a terminal running as Administrator
@@ -510,8 +510,8 @@ powershell -File $Env:PACKAGING_TESTS/run-tests.ps1
510510
511511
# run specific test cases
512512
powershell -File $Env:PACKAGING_TESTS/run-tests.ps1 `
513-
org.elasticsearch.packaging.test.DefaultZipTests `
514-
org.elasticsearch.packaging.test.OssZipTests
513+
org.elasticsearch.packaging.test.DefaultWindowsZipTests `
514+
org.elasticsearch.packaging.test.OssWindowsZipTests
515515
--------------------------------------------
516516

517517
Note that on Windows boxes when running from inside the GUI, you may have to log out and

benchmarks/src/main/java/org/elasticsearch/benchmark/time/RoundingBenchmark.java

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

buildSrc/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
import org.gradle.util.GradleVersion
2020

21+
import java.util.regex.Matcher
22+
2123
plugins {
2224
id 'java-gradle-plugin'
2325
id 'groovy'
@@ -226,7 +228,10 @@ if (project != rootProject) {
226228
systemProperty 'test.local-test-repo-path', "${rootProject.buildDir}/local-test-repo"
227229
systemProperty 'test.local-test-downloads-path', localDownloads
228230
systemProperty 'test.version_under_test', version
229-
systemProperty 'test.lucene-snapshot-revision', (versions.lucene =~ /\w+-snapshot-([a-z0-9]+)/)[0][1]
231+
Matcher isLuceneSnapshot = (/\w+-snapshot-([a-z0-9]+)/ =~ versions.lucene)
232+
if (isLuceneSnapshot) {
233+
systemProperty 'test.lucene-snapshot-revision', isLuceneSnapshot[0][1]
234+
}
230235
}
231236
check.dependsOn(integTest)
232237

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ class ClusterFormationTasks {
115115
String elasticsearchVersion
116116
if (i < config.numBwcNodes) {
117117
elasticsearchVersion = config.bwcVersion.toString()
118-
if (project.bwcVersions.unreleased.contains(config.bwcVersion)) {
118+
if (project.bwcVersions.unreleased.contains(config.bwcVersion) &&
119+
(project.version != elasticsearchVersion)) {
119120
elasticsearchVersion += "-SNAPSHOT"
120121
}
121122
distro = bwcDistro
@@ -690,6 +691,13 @@ class ClusterFormationTasks {
690691
env(key: 'JAVA_HOME', value: project.runtimeJavaHome)
691692
}
692693
node.args.each { arg(value: it) }
694+
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
695+
// Having no TMP on Windows defaults to C:\Windows and permission errors
696+
// Since we configure ant to run with a new environment above, we need to set this to a dir we have access to
697+
File tmpDir = new File(node.baseDir, "tmp")
698+
tmpDir.mkdirs()
699+
env(key: "TMP", value: tmpDir.absolutePath)
700+
}
693701
}
694702
}
695703

buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/VagrantTestPlugin.groovy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,15 @@ class VagrantTestPlugin implements Plugin<Project> {
6060
'packages:rpm',
6161
'packages:oss-rpm',
6262
'packages:deb',
63-
'packages:oss-deb'
63+
'packages:oss-deb',
64+
'archives:no-jdk-linux-tar',
65+
'archives:oss-no-jdk-linux-tar',
66+
'archives:no-jdk-windows-zip',
67+
'archives:oss-no-jdk-windows-zip',
68+
'packages:no-jdk-rpm',
69+
'packages:oss-no-jdk-rpm',
70+
'packages:no-jdk-deb',
71+
'packages:oss-no-jdk-deb'
6472
])
6573

6674
/** Packages onboarded for upgrade tests **/

buildSrc/src/test/java/org/elasticsearch/gradle/ConcatFilesTaskTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public void testConcatenationWithUnique() throws IOException {
6666
file2.getParentFile().mkdirs();
6767
file1.createNewFile();
6868
file2.createNewFile();
69-
Files.write(file1.toPath(), "Hello\nHello".getBytes());
70-
Files.write(file2.toPath(), "Hello\nनमस्ते".getBytes());
69+
Files.write(file1.toPath(), ("Hello" + System.lineSeparator() + "Hello").getBytes(StandardCharsets.UTF_8));
70+
Files.write(file2.toPath(), ("Hello" + System.lineSeparator() + "नमस्ते").getBytes(StandardCharsets.UTF_8));
7171

7272
concatFilesTask.setFiles(project.fileTree(file1.getParentFile().getParentFile()));
7373

buildSrc/version.properties

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
elasticsearch = 8.0.0
2-
lucene = 8.0.0-snapshot-ff9509a8df
2+
lucene = 8.0.0
33

4-
bundled_jdk = 11.0.2+9
4+
bundled_jdk = 12+33
55

66
# optional dependencies
77
spatial4j = 0.7
@@ -23,6 +23,12 @@ jna = 4.5.1
2323
netty = 4.1.32.Final
2424
joda = 2.10.1
2525

26+
# when updating this version, you need to ensure compatibility with:
27+
# - plugins/ingest-attachment (transitive dependency, check the upstream POM)
28+
# - distribution/tools/plugin-cli
29+
# - x-pack/plugin/security
30+
bouncycastle = 1.61
31+
2632
# test dependencies
2733
randomizedrunner = 2.7.1
2834
junit = 4.12

0 commit comments

Comments
 (0)