opensearch-project / index-management

🗃 Automate periodic data operations, such as deleting indices at a certain age or performing a rollover at a certain size
https://opensearch.org/docs/latest/im-plugin/index/
Apache License 2.0
53 stars 111 forks source link

[AUTOCUT] OS Distribution Build Failed for index-management-2.4.0 #593

Closed opensearch-ci-bot closed 1 year ago

opensearch-ci-bot commented 1 year ago

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

peterzhuamazon commented 1 year ago
+ ./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=2.4.0 -Dbuild.snapshot=false -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.4.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.

Daemon will be stopped at the end of the build 

> Configure project :

mixed cluster flag: false

=======================================

OpenSearch Build Hamster says Hello!

  Gradle Version        : 7.4.2

  OS Info               : Linux 5.10.135-122.509.amzn2.x86_64 (amd64)

  JDK Version           : 17 (Eclipse Temurin JDK)

  JAVA_HOME             : /opt/java/openjdk-17

  Random Testing Seed   : 5F547B3B7AE8DA8

  In FIPS 140 mode      : false

=======================================

> Task :ktlint

> Task :opensearch-index-management-spi:compileKotlin

> Task :opensearch-index-management-spi:compileJava NO-SOURCE

> Task :opensearch-index-management-spi:processResources NO-SOURCE

> Task :opensearch-index-management-spi:classes UP-TO-DATE

> Task :opensearch-index-management-spi:shadowJar

> Task :compileKotlin FAILED

e: /tmp/tmp4eamx2f8/index-management/src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/transport/action/indexpolicy/TransportIndexPolicyAction.kt: (122, 90): No value passed for parameter 'p1'

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':compileKotlin'.

> Compilation error. See log for more details

* 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 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 35s

4 actionable tasks: 4 executed

2022-11-03 19:56:34 ERROR    Error building index-management, retry with: ./build.sh manifests/2.4.0/opensearch-2.4.0.yml --component index-management

2022-11-03 19:56:34 INFO     Removing /tmp/tmp4eamx2f8

Traceback (most recent call last):

  File "./src/run_build.py", line 81, in <module>

    sys.exit(main())

  File "./src/run_build.py", line 68, in main

    builder.build(build_recorder)

  File "/var/jenkins/workspace/distribution-build-opensearch@2/src/build_workflow/builder_from_source.py", line 56, in build

    self.git_repo.execute(build_command)

  File "/var/jenkins/workspace/distribution-build-opensearch@2/src/git/git_repository.py", line 85, in execute

    subprocess.check_call(command, cwd=cwd, shell=True)

  File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command 'bash /tmp/tmp4eamx2f8/index-management/scripts/build.sh -v 2.4.0 -p linux -a x64 -s false -o builds' returned non-zero exit status 1.

script returned exit code 1
khushbr commented 1 year ago

The method signature was updated yesterday from public Optional<String> validate(int replicaCount) to public Optional<String> validate(int replicaCount, AutoExpandReplicas autoExpandReplica)

https://github.com/opensearch-project/OpenSearch/commit/e9d33eaaa0fcb85f2cede70451037d31c5795424

peterzhuamazon commented 1 year ago

Confirm fixed now.