performance-analyzer icon indicating copy to clipboard operation
performance-analyzer copied to clipboard

[BUG] Build broken on Windows

Open dblock opened this issue 4 years ago • 1 comments

What is the bug?

Trying to build PA on Windows fails.

~/source/opensearch-project/performance-analyzer/upstream-performance-analyzer (1.1)$ ./gradlew build -Dbuild.snapshot=true
Picked up _JAVA_OPTIONS: -Xmx4096M
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 6.6.1
  OS Info               : Windows Server 2019 10.0 (amd64)
  JDK Version           : 14 (OpenJDK)
  JAVA_HOME             : C:\Program Files\Java\jdk-14.0.2
  Random Testing Seed   : A49A8F9D76E7894
  In FIPS 140 mode      : false
=======================================
> Task :buildRca FAILED
> Task :updateShas FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildRca'.
> A problem occurred starting process 'command './gradlew''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':updateShas'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not find org.opensearch:performanceanalyzer-rca:1.1.0.0-SNAPSHOT.
     Searched in the following locations:
       - https://jcenter.bintray.com/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/maven-metadata.xml
       - https://jcenter.bintray.com/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/performanceanalyzer-rca-1.1.0.0-SNAPSHOT.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/performanceanalyzer-rca-1.1.0.0-SNAPSHOT.pom
       - file:/C:/Users/Administrator/.m2/repository/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/maven-metadata.xml
       - file:/C:/Users/Administrator/.m2/repository/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/performanceanalyzer-rca-1.1.0.0-SNAPSHOT.pom
       - https://plugins.gradle.org/m2/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/maven-metadata.xml
       - https://plugins.gradle.org/m2/org/opensearch/performanceanalyzer-rca/1.1.0.0-SNAPSHOT/performanceanalyzer-rca-1.1.0.0-SNAPSHOT.pom
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s
3 actionable tasks: 3 executed

What is your host/environment? MINGW64_NT-10.0-17763 EC2AMAZ-4PA8CKB 3.1.7-340.x86_64 2021-10-12 16:29 UTC x86_64 Msys

Do you have any additional context?

Coming from https://github.com/opensearch-project/opensearch-build/issues/33

dblock avatar Oct 26 '21 00:10 dblock

Tracking parent issue: https://github.com/opensearch-project/performance-analyzer/issues/75 Failure is due to RCA package not building on Windows. We need to build ~or bypass~ the package on Windows

kkhatua avatar Oct 27 '22 17:10 kkhatua