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]: OpenSearch-2.0.0 snapshot build is failing due to common-utils #1790

Closed
vamshin opened this issue Mar 21, 2022 · 7 comments · Fixed by #1793
Closed

[Bug]: OpenSearch-2.0.0 snapshot build is failing due to common-utils #1790

vamshin opened this issue Mar 21, 2022 · 7 comments · Fixed by #1793
Labels
bug Something isn't working untriaged Issues that have not yet been triaged v2.0.0

Comments

@vamshin
Copy link
Member

vamshin commented Mar 21, 2022

Describe the bug

OpenSearch-2.0.0 snapshot build is failing since March 9th
https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/opensearch/2.0.0-SNAPSHOT/

To reproduce

https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/opensearch/2.0.0-SNAPSHOT/

Expected behavior

New snapshot available with latest Main branch changes of OpenSearch core

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

No response

Additional context

No response

Relevant log output

No response

@vamshin vamshin added bug Something isn't working untriaged Issues that have not yet been triaged labels Mar 21, 2022
@dblock
Copy link
Member

dblock commented Mar 21, 2022

@praveensameneni

@dblock dblock added the v2.0.0 label Mar 21, 2022
@praveensameneni
Copy link
Member

@getsaurabh02 is looking into the issue

@bbarani
Copy link
Member

bbarani commented Mar 21, 2022

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'common-utils'.

Could not resolve all files for configuration ':classpath'.
Could not find org.opensearch.gradle:build-tools:2.0.0.
Searched in the following locations:
- file:/usr/share/opensearch/.m2/repository/org/opensearch/gradle/build-tools/2.0.0/build-tools-2.0.0.pom
- https://repo.maven.apache.org/maven2/org/opensearch/gradle/build-tools/2.0.0/build-tools-2.0.0.pom
- https://plugins.gradle.org/m2/org/opensearch/gradle/build-tools/2.0.0/build-tools-2.0.0.pom
- https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/gradle/build-tools/2.0.0/build-tools-2.0.0.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.

@getsaurabh02
Copy link
Member

Hi @vamshin @bbarani
Looked into the code change for 2.0 version change for common-utils and they seem to be complete. However from the failure above, it looks like the opensearch_version being expected here is 2.0.0-SNAPSHOT and not just 2.0.0, which seems to be the cause of the issue in this case. This has been a standard so far. Can we confirm this once by updating the build argument, and discuss if there are any change in the expectation here.

cc: @lezzago

@bbarani
Copy link
Member

bbarani commented Mar 21, 2022

@getsaurabh02 I think it needs to point to opensearch 2.0.0-alpha1-SNAPSHOT as this is not a GA release. @dblock @peterzhuamazon Can you confirm?

Reference: https://github.com/opensearch-project/opensearch-build/blob/main/manifests/2.0.0/opensearch-2.0.0.yml#L10

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Mar 21, 2022

The issue is related to recently changing to 2.0.0-alpha1 in the revision.

+ ./gradlew build -x test -Dopensearch.version=2.0.0-SNAPSHOT -Dbuild.snapshot=true -Dbuild.version_qualifier=
+ ./gradlew build -x test -Dopensearch.version=2.0.0 -Dbuild.snapshot=false -Dbuild.version_qualifier=

New plugins needs to allow their qualifier to have 2.0.0 the opensearch.version, they also need to change their qualifier to alpha1.

-Dopensearch.version=2.0.0-alpha1 -Dbuild.version_qualifier=alpha1

Also need to make sure their

opensearch_version = System.getProperty("opensearch.version", "2.0.0-alpha1-SNAPSHOT")

Thanks.

@peterzhuamazon
Copy link
Member

I have figured out the common-utils issue will send PR.

@peterzhuamazon peterzhuamazon changed the title [Bug]: OpenSearch-2.0.0 snapshot build is failing [Bug]: OpenSearch-2.0.0 snapshot build is failing due to common-utils Mar 21, 2022
@peterzhuamazon peterzhuamazon linked a pull request Mar 21, 2022 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Issues that have not yet been triaged v2.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants