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] OS Distribution Build Failed for security-3.0.0 #2149

Closed
opensearch-ci-bot opened this issue Oct 8, 2022 · 2 comments · Fixed by #2151
Closed

[AUTOCUT] OS Distribution Build Failed for security-3.0.0 #2149

opensearch-ci-bot opened this issue Oct 8, 2022 · 2 comments · Fixed by #2151
Labels
autocut triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. v3.0.0

Comments

@opensearch-ci-bot
Copy link
Collaborator

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

@peternied
Copy link
Member

New compilation failures from OS 3.0.0 - this will start impacting our main builds

+ ./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=3.0.0-SNAPSHOT -Dbuild.snapshot=true -Dbuild.version_qualifier=
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.5.1
  OS Info               : Mac OS X 12.4 (x86_64)
  JDK Version           : 17 (Eclipse Temurin JDK)
  JAVA_HOME             : /private/var/jenkins/tools/hudson.model.JDK/openjdk-17
  Random Testing Seed   : 50D1B03295D5A43C
  In FIPS 140 mode      : false
=======================================

> Task :compileJava
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/action/configupdate/TransportConfigUpdateAction.java:37: error: cannot find symbol
import org.opensearch.action.support.nodes.BaseNodeRequest;
                                          ^
  symbol:   class BaseNodeRequest
  location: package org.opensearch.action.support.nodes
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/action/configupdate/TransportConfigUpdateAction.java:75: error: cannot find symbol
    public static class NodeConfigUpdateRequest extends BaseNodeRequest {
                                                        ^
  symbol:   class BaseNodeRequest
  location: class TransportConfigUpdateAction
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/configuration/ClusterInfoHolder.java:111: error: cannot find symbol
        return state.nodes().getMinNodeVersion().before(LegacyESVersion.V_7_0_0);
                                                                       ^
  symbol:   variable V_7_0_0
  location: class LegacyESVersion
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/configuration/ClusterInfoHolder.java:118: error: cannot find symbol
            if (indexMetadata.getCreationVersion().before(LegacyESVersion.V_7_0_0)) {
                                                                         ^
  symbol:   variable V_7_0_0
  location: class LegacyESVersion
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/configuration/ConfigurationLoaderSecurity7.java:130: error: cannot find symbol
                if(cs.state().metadata().index(securityIndex).getCreationVersion().before(LegacyESVersion.V_7_0_0)) {
                                                                                                         ^
  symbol:   variable V_7_0_0
  location: class LegacyESVersion
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/action/configupdate/TransportConfigUpdateAction.java:54: error: type argument NodeConfigUpdateRequest is not within bounds of type-variable NodeRequest
TransportNodesAction<ConfigUpdateRequest, ConfigUpdateResponse, TransportConfigUpdateAction.NodeConfigUpdateRequest, ConfigUpdateNodeResponse> {
                                                                                           ^
  where NodeRequest is a type-variable:
    NodeRequest extends TransportRequest declared in class TransportNodesAction
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/action/configupdate/TransportConfigUpdateAction.java:88: error: method does not override or implement a method from a supertype
        @Override
        ^
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/action/configupdate/TransportConfigUpdateAction.java:90: error: non-static variable super cannot be referenced from a static context
            super.writeTo(out);
            ^
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/action/configupdate/TransportConfigUpdateAction.java:90: error: cannot find symbol
            super.writeTo(out);
                 ^
  symbol: method writeTo(StreamOutput)
/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpi8qsn7jg/security/src/main/java/org/opensearch/security/dlic/rest/api/MigrateApiAction.java:103: error: cannot find symbol
        if(oldestNodeVersion.before(LegacyESVersion.V_7_0_0)) {
                                                   ^
  symbol:   variable V_7_0_0
  location: class LegacyESVersion
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
10 errors

> Task :compileJava FAILED

@davidlago davidlago added the untriaged Require the attention of the repository maintainers and may need to be prioritized label Oct 10, 2022
@vinayak15
Copy link
Contributor

[Triage] @cwperks Can you follow up with @opensearch-project/engineering-effectiveness regarding this issue .

@davidlago davidlago added triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. and removed untriaged Require the attention of the repository maintainers and may need to be prioritized labels Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. v3.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants