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

[Distribution Build Failure] Alerting build failing due to missing org.opensearch:common-utils:1.1.0.0-SNAPSHOT #410

Closed
peternied opened this issue Sep 8, 2021 · 6 comments
Assignees
Labels
beta Issues specific to the OpenSearch Beta bug Something isn't working untriaged Issues that have not yet been triaged

Comments

@peternied
Copy link
Member

peternied commented Sep 8, 2021

Describe the bug
Alerting failed to build because org.opensearch:common-utils:1.1.0.0-SNAPSHOT was missing, it looks like common-utils was not built with the snapshot postfix.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':alerting-core:compileKotlin'.
> Could not resolve all files for configuration ':alerting-core:compileClasspath'
....
Searched in the following locations:
  - file:/Users/petern/.m2/repository/org/opensearch/common-utils/1.1.0.0-SNAPSHOT/maven-metadata.xml
  - file:/Users/petern/.m2/repository/org/opensearch/common-utils/1.1.0.0-SNAPSHOT/common-utils-1.1.0.0-SNAPSHOT.pom
  - https://repo.maven.apache.org/maven2/org/opensearch/common-utils/1.1.0.0-SNAPSHOT/maven-metadata.xml
  - https://repo.maven.apache.org/maven2/org/opensearch/common-utils/1.1.0.0-SNAPSHOT/common-utils-1.1.0.0-SNAPSHOT.pom
  - https://jcenter.bintray.com/org/opensearch/common-utils/1.1.0.0-SNAPSHOT/maven-metadata.xml
  - https://jcenter.bintray.com/org/opensearch/common-utils/1.1.0.0-SNAPSHOT/common-utils-1.1.0.0-SNAPSHOT.pom
Required by:
    project :alerting-core
...
2021-09-08 11:31:16 ERROR    Error building alerting, retry with: ./bundle-workflow/build.sh manifests/opensearch-1.1.0.yml --component alerting --snapshot
ls /Users/petern/.m2/repository/org/opensearch/common-utils/1.1.0.0 
common-utils-1.1.0.0-javadoc.jar
common-utils-1.1.0.0-sources.jar
common-utils-1.1.0.0.jar
common-utils-1.1.0.0.pom

To Reproduce

  1. Flush maven local with rm -rf ~/.m2/
  2. ./bundle-workflow/build.sh manifests/opensearch-1.1.0.yml --component common-utils --snapshot
  3. ls .m2/repository/org/opensearch/common-utils/
  4. Verify that the directory that is created is named X.X.X.X-SNAPSHOT and not X.X.X.X
@peternied peternied added bug Something isn't working untriaged Issues that have not yet been triaged beta Issues specific to the OpenSearch Beta labels Sep 8, 2021
@peternied peternied self-assigned this Sep 8, 2021
@peternied peternied changed the title [Distrobution Build Failure] Alerting build failing due to missing org.opensearch:common-utils:1.1.0.0-SNAPSHOT [Distribution Build Failure] Alerting build failing due to missing org.opensearch:common-utils:1.1.0.0-SNAPSHOT Sep 8, 2021
@peternied
Copy link
Member Author

Reproduces locally, inspecting the last passing build to see why this worked

@dblock
Copy link
Member

dblock commented Sep 8, 2021

@peternied Did you build common-utils first? Otherwise it will fail with the repro command above, which is expected.

@peternied
Copy link
Member Author

Found it, PRs to support snapshots was lost when branch was moved to from main->1.1. Creating pull requests...

@peternied
Copy link
Member Author

I am going to back out the branch update to 1.1 and have the common-utils team switch back when its ready.

@peternied
Copy link
Member Author

Snapshot build is passing, waiting on completed build cycle

@peternied
Copy link
Member Author

This issue is confirmed as no longer blocking the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Issues specific to the OpenSearch Beta bug Something isn't working untriaged Issues that have not yet been triaged
Projects
None yet
Development

No branches or pull requests

2 participants