Created
September 7, 2023 14:22
-
-
Save macohen/98fb9d40c23242fea334be1d045e0f4c to your computer and use it in GitHub Desktop.
Failing LTR Build on 2.7.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On branch 2.7 | |
Your branch is up to date with 'upstream/2.7'. | |
nothing to commit, working tree clean | |
% ./gradlew -Dopensearch.version=2.7.1 projects | |
> Configure project :opensearch-learning-to-rank-base | |
opensearch_version 2.7.1-SNAPSHOT | |
plugin_version 2.7.1.0-SNAPSHOT | |
Skipping Integ Tests | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/*/OpenSearch/build.gradle' line: 368 | |
* What went wrong: | |
A problem occurred configuring project ':opensearch-learning-to-rank-base'. | |
> Could not get unknown property 'archivesBaseName' for project ':server' of type org.gradle.api.Project. | |
* Try: | |
> Run with --stacktrace option to get the stack trace. | |
> Run with --info or --debug option to get more log output. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 2s | |
8 actionable tasks: 8 up-to-date | |
<-------------> 0% WAITING | |
> IDLE | |
OpenSearch % more +367 build.gradle | |
project.javadoc.dependsOn "${upstreamProject.path}:javadoc" | |
String externalLinkName = upstreamProject.archivesBaseName | |
String artifactPath = dep.group.replaceAll('\\.', '/') + '/' + externalLinkName.replaceAll('\\.', '/') + '/' + dep.version | |
String projectRelativePath = project.relativePath(upstreamProject.buildDir) | |
project.javadoc.options.linksOffline artifactsHost + "/javadoc/" + artifactPath, "${projectRelativePath}/docs/javadoc/" | |
} | |
} | |
boolean hasShadow = project.plugins.hasPlugin(ShadowPlugin) | |
project.configurations.implementation.dependencies | |
.findAll() | |
.toSorted(sortClosure) | |
.each({ c -> depJavadocClosure(hasShadow, c) }) | |
project.configurations.compileOnly.dependencies | |
.findAll() | |
.toSorted(sortClosure) | |
.each({ c -> depJavadocClosure(false, c) }) | |
if (hasShadow) { | |
// include any dependencies for shadow JAR projects that are *not* bundled in the shadow JAR | |
project.configurations.shadow.dependencies | |
.findAll() | |
.toSorted(sortClosure) | |
.each({ c -> depJavadocClosure(false, c) }) | |
} | |
} | |
} | |
} | |
// Ensure similar tasks in dependent projects run first. The projectsEvaluated here is | |
// important because, while dependencies.all will pickup future dependencies, | |
// it is not necessarily true that the task exists in both projects at the time | |
// the dependency is added. | |
gradle.projectsEvaluated { | |
allprojects { | |
project.tasks.withType(JavaForkOptions) { | |
maxHeapSize project.property('options.forkOptions.memoryMaximumSize') | |
} | |
if (project.path == ':test:framework') { | |
// :test:framework:test cannot run before and after :server:test | |
return | |
} | |
if (tasks.findByPath('test') != null && tasks.findByPath('integTest') != null) { | |
integTest.mustRunAfter test | |
} | |
project.tasks.withType(Test) { task -> | |
if (task != null) { | |
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_17) { | |
task.jvmArgs += ["-Djava.security.manager=allow"] | |
} | |
} | |
} | |
configurations.matching { it.canBeResolved }.all { Configuration configuration -> | |
dependencies.matching { it instanceof ProjectDependency }.all { ProjectDependency dep -> | |
Project upstreamProject = dep.dependencyProject | |
if (upstreamProject != null) { | |
if (project.path == upstreamProject.path) { | |
// TODO: distribution integ tests depend on themselves (!), fix that | |
return | |
} | |
for (String taskName : ['test', 'integTest']) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what to make of line 19.