Build Fails on fresh machine ubuthu 20.04 / Docker . On latest code base
Describe the bug
Task :conductor-os-persistence:spotlessJavaCheck FAILED 256.4 256.4 FAILURE: Build failed with an exception. 256.4 256.4 * What went wrong: 256.4 Execution failed for task ':conductor-os-persistence:spotlessJavaCheck'. 256.4 > The following files had format violations: 256.4 src/test/java/com/netflix/conductor/os/dao/index/OpenSearchRestDaoBaseTest.java 256.4 @@ -16,15 +16,14 @@ 256.4 import·java.io.IOException; 256.4 import·java.io.InputStreamReader; 256.4 import·java.io.Reader; 256.4 -import·java.util.regex.Pattern; 256.4 256.4 import·org.apache.http.HttpHost; 256.4 +import·org.junit.After; 256.4 +import·org.junit.Before; 256.4 import·org.opensearch.client.Request; 256.4 import·org.opensearch.client.Response; 256.4 import·org.opensearch.client.RestClient; 256.4 import·org.opensearch.client.RestClientBuilder; 256.4 -import·org.junit.After; 256.4 -import·org.junit.Before; 256.4 import·org.springframework.retry.support.RetryTemplate; 256.4 256.4 public·abstract·class·OpenSearchRestDaoBaseTest·extends·OpenSearchTest·{ 256.4 src/test/java/com/netflix/conductor/os/dao/index/OpenSearchTest.java 256.4 @@ -12,22 +12,22 @@ 256.4 ·*/ 256.4 package·com.netflix.conductor.os.dao.index; 256.4 256.4 -import·com.netflix.conductor.os.config.OpenSearchProperties; 256.4 import·org.junit.AfterClass; 256.4 import·org.junit.BeforeClass; 256.4 import·org.junit.runner.RunWith; 256.4 +import·org.opensearch.testcontainers.OpensearchContainer; 256.4 import·org.springframework.beans.factory.annotation.Autowired; 256.4 import·org.springframework.context.annotation.Bean; 256.4 import·org.springframework.context.annotation.Configuration; 256.4 import·org.springframework.test.context.ContextConfiguration; 256.4 import·org.springframework.test.context.TestPropertySource; 256.4 import·org.springframework.test.context.junit4.SpringRunner; 256.4 -import·org.opensearch.testcontainers.OpensearchContainer; 256.4 +import·org.testcontainers.utility.DockerImageName; 256.4 256.4 import·com.netflix.conductor.common.config.TestObjectMapperConfiguration; 256.4 +import·com.netflix.conductor.os.config.OpenSearchProperties; 256.4 256.4 import·com.fasterxml.jackson.databind.ObjectMapper; 256.4 -import·org.testcontainers.utility.DockerImageName; 256.4 256.4 @ContextConfiguration( 256.4 ········classes·=·{TestObjectMapperConfiguration.class,·OpenSearchTest.TestConfiguration.class}) 256.4 @@ -46,7 +46,10 @@ 256.4 ····} 256.4 256.4 ····protected·static·OpensearchContainer<?>·container·= 256.4 ... (8 more lines that didn't fit) 256.4 Violations also present in: 256.4 src/test/java/com/netflix/conductor/os/dao/index/TestBulkRequestBuilderWrapper.java 256.4 Run './gradlew :conductor-os-persistence:spotlessApply' to fix these violations. 256.4 256.4 * Try: 256.4 > Run with --stacktrace option to get the stack trace. 256.4 > Run with --info or --debug option to get more log output. 256.4 > Get more help at https://help.gradle.org. 256.4 256.4 Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. 256.4 256.4 You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. 256.5 256.5 For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 256.5 256.5 BUILD FAILED in 4m 16s 256.5 196 actionable tasks: 196 executed 256.7 256.7 Publishing build scan... 257.4 https://gradle.com/s/toqeestjbgmha 257.4
failed to solve: process "/bin/sh -c ./gradlew build -x test" did not complete successfully: exit code: 1
Details Conductor version: Latest Not building using docker-compose -f docker/docker-compose.yaml up
In the readme it is mentioned as docker composer , i changed it to "docker-compose"
To Reproduce Steps to reproduce the behavior:
- Go to '...' https://conductor-oss.org/ git clone https://github.com/conductor-oss/conductor.git
cd conductor docker-compose -f docker/docker-compose.yaml up
Pull the latest release tag instead and it will work.
Or you can try to run ./gradlew spotlessApply and it should fix the issue and then build your image.