Skip to content

[CI] JarHellTaskIT Jar Hell not detected #35204

@davidkyle

Description

@davidkyle

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+release-tests/50/console

Reproduces with

./gradlew :build-tools:integTest
org.elasticsearch.gradle.precommit.JarHellTaskIT > testJarHellDetected STANDARD_ERROR
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/var/lib/jenkins/.gradle/caches/4.10/generated-gradle-jars/gradle-api-4.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/var/lib/jenkins/.gradle/caches/modules-2/files-2.1/org.gradle/gradle-logging/4.3/d2e47d6a87e11fceddaeb08bbcf7fe1e79e10621/gradle-logging-4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext]

org.elasticsearch.gradle.precommit.JarHellTaskIT > testJarHellDetected FAILED
    java.lang.AssertionError: Expected the following line in output:

    java.lang.IllegalStateException: jar hell!

There is a second error in the log, I'm not clear if this is the cause of the first:

* What went wrong:
Could not resolve all files for configuration ':loggerUsagePlugin'.
> Could not find org.elasticsearch.test:logger-usage:7.0.0-alpha1.
  Searched in the following locations:
    - https://repo.maven.apache.org/maven2/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.pom
    - https://repo.maven.apache.org/maven2/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.jar
    - https://artifacts.elastic.co/maven/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.pom
    - https://artifacts.elastic.co/maven/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.jar
    - http://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/7d0a7782fa/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.pom
    - http://s3.amazonaws.com/download.elasticsearch.org/lucenesnapshots/7d0a7782fa/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.jar
    - file:/var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/build/local-test-repo/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.pom
    - file:/var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/build/local-test-repo/org/elasticsearch/test/logger-usage/7.0.0-alpha1/logger-usage-7.0.0-alpha1.jar
  Required by:
      project 

Metadata

Metadata

Assignees

Labels

:Delivery/BuildBuild or test infrastructure>test-failureTriaged test failures from CITeam:DeliveryMeta label for Delivery team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions