opensearch-project / opensearch-project/performance-analyzer

[BUG] Build broken on Windows

Open
#74 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement help wanted Priority-Medium roadmap windows
Dominant language
Java
Stars
48
Forks
78
Avg merge
1d 2h
Merged PRs (30d)
5

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with ./gradlew build -Dbuild.snapshot=true on the reported Windows Server 2019, JDK 14, and Msys environment. Start with the buildRca and updateShas tasks named in the output, and use the referenced opensearch-build issue for context. Done means the Windows build completes without either task failing.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.