Skip to content

Commit 4074432

Browse files
committed
Merge remote-tracking branch 'upstream/main' into entitlements/missing-policies-reindex
2 parents 2836cee + 24c5e5c commit 4074432

File tree

4,397 files changed

+144438
-378000
lines changed

Some content is hidden

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

4,397 files changed

+144438
-378000
lines changed

.buildkite/pipelines/periodic-fwc.template.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ steps:
77
image: family/elasticsearch-ubuntu-2004
88
machineType: n1-standard-32
99
buildDirectory: /dev/shm/bk
10-
preemptible: true
1110
matrix:
1211
setup:
1312
FWC_VERSION: $FWC_LIST
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# This file is auto-generated. See .buildkite/pipelines/periodic-fwc.template.yml
22
steps:
3-
- label: "{{matrix.FWC_VERSION}} / fwc"
4-
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v$$FWC_VERSION#fwcTest -Dtests.bwc.snapshot=false
3+
- label: $FWC_VERSION / fwc
4+
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true v$FWC_VERSION#fwcTest -Dtests.bwc.snapshot=false
55
timeout_in_minutes: 300
66
agents:
77
provider: gcp
88
image: family/elasticsearch-ubuntu-2004
99
machineType: n1-standard-32
1010
buildDirectory: /dev/shm/bk
11-
preemptible: true
1211
matrix:
1312
setup:
1413
FWC_VERSION: []
1514
env:
16-
FWC_VERSION: "{{matrix.FWC_VERSION}}"
15+
FWC_VERSION: $FWC_VERSION

build-tools-internal/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=296742a352f0b20ec14b143fb684965ad66086c7810b7b255dee216670716175
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-all.zip
3+
distributionSha256Sum=fba8464465835e74f7270bbf43d6d8a8d7709ab0a43ce1aa3323f73e9aa0c612
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

build-tools-internal/src/integTest/resources/org/elasticsearch/gradle/internal/fake_git/remote/distribution/archives/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ subprojects {
3434
}
3535

3636
def calculateBranchVersion() {
37-
File f = rootProject.file(".git/refs/heads/origin")
37+
File f = layout.settingsDirectory.file(".git/refs/heads/origin").asFile
3838
def branchName = f.list()?.first().trim()
3939
return branchName + ".1"
4040

build-tools-internal/src/main/groovy/elasticsearch.build-scan.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ develocity {
133133
}
134134
} else {
135135
tag 'LOCAL'
136+
if (providers.systemProperty('idea.active').present) {
137+
tag 'IDEA'
138+
}
136139
}
137140
}
138141
}

build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
179179

180180
// this path is produced by the extractLibs task above
181181
String testLibraryPath = TestUtil.getTestLibraryPath("${elasticsearchProject.left()}/libs/native/libraries/build/platform")
182-
182+
def enableIdeaCC = providers.gradleProperty("org.elasticsearch.idea-configuration-cache").getOrElse("true").toBoolean()
183183
idea {
184184
project {
185185
vcs = 'Git'
@@ -209,6 +209,11 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
209209
}
210210
}
211211
runConfigurations {
212+
defaults(org.jetbrains.gradle.ext.Gradle) {
213+
scriptParameters = enableIdeaCC ? [
214+
'--configuration-cache'
215+
].join(' ') : ''
216+
}
212217
defaults(JUnit) {
213218
vmParameters = [
214219
'-ea',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void apply(Project project) {
3939
project.getPluginManager().apply(JarHellPrecommitPlugin.class);
4040
project.getPluginManager().apply(ElasticsearchJavaPlugin.class);
4141
project.getPluginManager().apply(ClusterFeaturesMetadataPlugin.class);
42-
boolean isCi = project.getRootProject().getExtensions().getByType(BuildParameterExtension.class).isCi();
42+
boolean isCi = project.getRootProject().getExtensions().getByType(BuildParameterExtension.class).getCi();
4343
// Clear default dependencies added by public PluginBuildPlugin as we add our
4444
// own project dependencies for internal builds
4545
// TODO remove once we removed default dependencies from PluginBuildPlugin

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void configureCompile(Project project) {
161161
compileTask.getConventionMapping().map("sourceCompatibility", () -> java.getSourceCompatibility().toString());
162162
compileTask.getConventionMapping().map("targetCompatibility", () -> java.getTargetCompatibility().toString());
163163
compileOptions.getRelease().set(releaseVersionProviderFromCompileTask(project, compileTask));
164-
compileOptions.setIncremental(buildParams.isCi() == false);
164+
compileOptions.setIncremental(buildParams.getCi() == false);
165165
});
166166
// also apply release flag to groovy, which is used in build-tools
167167
project.getTasks().withType(GroovyCompile.class).configureEach(compileTask -> {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void apply(Project project) {
7373
project.getPlugins().apply(JvmToolchainsPlugin.class);
7474
toolChainService = project.getExtensions().getByType(JavaToolchainService.class);
7575
var buildParams = loadBuildParams(project).get();
76-
Boolean isCi = buildParams.isCi();
76+
Boolean isCi = buildParams.getCi();
7777
buildParams.getBwcVersions().forPreviousUnreleased((BwcVersions.UnreleasedVersionInfo unreleasedVersion) -> {
7878
configureBwcProject(
7979
project.project(unreleasedVersion.gradleProjectPath()),
@@ -365,7 +365,7 @@ static void createBuildBwcTask(
365365
} else {
366366
c.getOutputs().files(expectedOutputFile);
367367
}
368-
c.getOutputs().doNotCacheIf("BWC distribution caching is disabled for local builds", task -> buildParams.isCi() == false);
368+
c.getOutputs().doNotCacheIf("BWC distribution caching is disabled for local builds", task -> buildParams.getCi() == false);
369369
c.getArgs().add("-p");
370370
c.getArgs().add(projectPath);
371371
c.getArgs().add(assembleTaskName);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void apply(Project project) {
3030
TestClustersPlugin testClustersPlugin = project.getPlugins().apply(TestClustersPlugin.class);
3131
testClustersPlugin.setRuntimeJava(buildParams.getRuntimeJavaHome());
3232
testClustersPlugin.setIsReleasedVersion(
33-
version -> (version.equals(VersionProperties.getElasticsearchVersion()) && buildParams.isSnapshotBuild() == false)
33+
version -> (version.equals(VersionProperties.getElasticsearchVersion()) && buildParams.getSnapshotBuild() == false)
3434
|| buildParams.getBwcVersions().unreleasedInfo(version) == null
3535
);
3636

0 commit comments

Comments
 (0)