Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The ci docker images fail to build with a gradle error #318

Closed
f-galland opened this issue Jul 18, 2024 · 1 comment · Fixed by #319
Closed

[BUG] The ci docker images fail to build with a gradle error #318

f-galland opened this issue Jul 18, 2024 · 1 comment · Fixed by #319
Assignees
Labels
level/task Task issue request/operational Operational requests type/bug Bug issue

Comments

@f-galland
Copy link
Member

Describe the bug
Trying to run docker/ci/ci.sh up results in the images failing to complete the gradle clean stage with the following error:

 > [wi-build builder 4/4] RUN gradle clean:                                                                                                                                           
0.749 Starting a Gradle Daemon (subsequent builds will be faster)                                                                                                                     
13.55 > Task :buildSrc:reaper:compileJava                                                                                                                                             
13.55 > Task :buildSrc:reaper:processResources NO-SOURCE                                                                                                                              
13.55 > Task :buildSrc:reaper:classes                                                                                                                                                 
13.55 > Task :buildSrc:reaper:jar                                                                                                                                                     
26.85                                                                                                                                                                                 
26.85 > Task :buildSrc:compileJava                                                                                                                                                    
26.85 /home/wazuh-indexer/buildSrc/src/main/java/org/opensearch/gradle/info/GlobalBuildInfoPlugin.java:202: error: constructor InstallationLocation in class InstallationLocation cannot be applied to given types;                                                                                                                                                         
26.85         final InstallationLocation location = new InstallationLocation(javaHome, "Java home");                                                                                  
26.85                                               ^
26.85   required: File,String,boolean,boolean
26.85   found:    File,String
26.85   reason: actual and formal argument lists differ in length
26.85 Note: Some input files use or override a deprecated API.
26.85 Note: Recompile with -Xlint:deprecation for details.
26.85 1 error
26.95 
26.95 > Task :buildSrc:compileJava FAILED
26.95 
26.95 FAILURE: Build failed with an exception.
26.95 
26.95 * What went wrong:
26.95 Execution failed for task ':buildSrc:compileJava'.
26.95 > Compilation failed; see the compiler error output for details.
26.95 
26.95 * Try:
26.95 > Run with --info option to get more log output.
26.95 
26.95 BUILD FAILED in 26s
26.95 3 actionable tasks: 3 executed

To Reproduce

  • Clone the indexer repo and switch to it
  • Go into docker/ci
  • Run ci.sh up

Expected behavior
Docker images should be built and containers brought up that should be capable of building our packages.

@f-galland f-galland added level/task Task issue request/operational Operational requests type/bug Bug issue labels Jul 18, 2024
@f-galland f-galland self-assigned this Jul 18, 2024
@f-galland
Copy link
Member Author

There is a merged PR for this on opensearch's repo, but it's beyond 2.15, so we will have to wait until the next version bump to include it. Otherwise we may risk merging conflicts.

For the time being, I think I can lock the the docker containers to an older version of gradle (8.7).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue request/operational Operational requests type/bug Bug issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant