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

[AUTOCUT] Distribution Build Failed for anomaly-detection-3.0.0 #980

Closed
opensearch-ci-bot opened this issue Aug 16, 2023 · 6 comments
Closed

Comments

@opensearch-ci-bot
Copy link
Collaborator

Received Error: Error building anomaly-detection, retry with: ./build.sh manifests/3.0.0/opensearch-3.0.0.yml --component anomaly-detection.
The distribution build for anomaly-detection has failed for version: 3.0.0.
Please see build log at https://build.ci.opensearch.org/job/distribution-build-opensearch/8259/consoleFull

@kaituo
Copy link
Collaborator

kaituo commented Aug 16, 2023

@gaiksaya

I just built AD 3.0.0 without problems.

I saw the error is:

* What went wrong:
Could not open settings generic class cache for settings file '/tmp/tmpnnchbo3y/anomaly-detection/settings.gradle' (/usr/share/opensearch/.gradle/caches/7.6.1/scripts/f2pbr3693ueh1pzcvl0sbr014).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64

* 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/

BUILD FAILED in 2s
2023-08-16 01:40:06 ERROR    Error building anomaly-detection, retry with: ./build.sh manifests/3.0.0/opensearch-3.0.0.yml --component anomaly-detection

What does "settings generic class cache" mean?

@zelinh
Copy link
Member

zelinh commented Aug 16, 2023

I think we are now using JDK20 (https://github.com/opensearch-project/opensearch-build/blob/aa65a8ecd69f77c3d3104043dd1c48dff708bffa/manifests/3.0.0/opensearch-3.0.0.yml#L9) and gradle version 7.6.1. It looks like the current gradle version doesn't support JDK20.
https://docs.gradle.org/current/userguide/compatibility.html

@zelinh
Copy link
Member

zelinh commented Aug 16, 2023

@kaituo Could you help upgrade the gradle version so it starts to support Java 20 for the main branch?

distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip

Also make sure we include java 20 in your CI matrix.

@opensearch-ci-bot
Copy link
Collaborator Author

Received Error: Error building anomaly-detection, retry with: ./build.sh manifests/3.0.0/opensearch-3.0.0.yml --component anomaly-detection.
The distribution build for anomaly-detection has failed for version: 3.0.0.
Please see build log at https://build.ci.opensearch.org/job/distribution-build-opensearch/8263/consoleFull

@opensearch-ci-bot
Copy link
Collaborator Author

Received Error: Error building anomaly-detection, retry with: ./build.sh manifests/3.0.0/opensearch-3.0.0.yml --component anomaly-detection.
The distribution build for anomaly-detection has failed for version: 3.0.0.
Please see build log at https://build.ci.opensearch.org/job/distribution-build-opensearch/8272/consoleFull

@opensearch-ci-bot
Copy link
Collaborator Author

Closing the issue as the distribution build for anomaly-detection has passed for version: 3.0.0.
Please see build log at https://build.ci.opensearch.org/job/distribution-build-opensearch/8275/consoleFull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants