opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.68k stars 1.79k forks source link

[AUTOCUT] OS Distribution Build Failed for OpenSearch-2.7.0 #6702

Closed opensearch-ci-bot closed 1 year ago

opensearch-ci-bot commented 1 year ago

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

minalsha commented 1 year ago

@owaiskazi19 could you please look into this issue? Thanks

owaiskazi19 commented 1 year ago

Says k-NN failed for 2.7 Component k-NN failed, creating github issue. Not sure why autocut created in OpenSearch repo. May be @gaiksaya @prudhvigodithi has more idea here.


OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.5.1
  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   : 83992287BF509BD2
  In FIPS 140 mode      : false
=======================================

> Task :compileTestJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileTestJava'.
> Could not resolve all dependencies for configuration ':testCompileClasspath'.
   > Conflict(s) found for the following module(s):
       - net.bytebuddy:byte-buddy between versions 1.14.2 and 1.12.22
     Run with:
         --scan or
         :dependencyInsight --configuration testCompileClasspath --dependency net.bytebuddy:byte-buddy
     to get more insight on how to solve the conflict.

* 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.
gaiksaya commented 1 year ago

OpenSearch failed for macos snapshot. See the error here https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/7296/pipeline/111 (scroll to the bottom of the page)

The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=5d290419-2e43-4883-b765-98086a425da6, currentDir=/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpt0blaoos/OpenSearch}
Attempting to read last messages from the daemon log...
Daemon pid: 75424
  log file: /Users/ec2-user/.gradle/daemon/8.0.2/daemon-75424.out.log
----- Last  20 lines from daemon log file - daemon-75424.out.log -----
2023-03-16T01:37:16.019+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
2023-03-16T01:37:16.019+0000 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=5d290419-2e43-4883-b765-98086a425da6, currentDir=/private/var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpt0blaoos/OpenSearch}. Dispatching build started information...
2023-03-16T01:37:16.019+0000 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 23: dispatching org.gradle.launcher.daemon.protocol.BuildStarted@7f98162a
2023-03-16T01:37:16.019+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: [PATH, RUN_DISPLAY_URL, CREATE_GITHUB_ISSUE, HUDSON_HOME, RUN_CHANGES_DISPLAY_URL, JOB_URL, INTEG_TEST_JOB_NAME, HUDSON_COOKIE, JENKINS_NODE_COOKIE, IMAGE_DEB, UPDATE_LATEST_URL, MAIL, JAVA_MAIN_CLASS_75188, JENKINS_SERVER_COOKIE, LOGNAME, RUN_TESTS_DISPLAY_URL, PWD, PIP_PYTHON_PATH, JENKINS_URL, IMAGE_RPM, SONATYPE_STAGING_PROFILE_ID, JENKINS_HOME_PATH, BUILD_TAG, SHELL, STAGE_NAME, PIP_DISABLE_PIP_VERSION_CHECK, JENKINS_HOME, INPUT_MANIFEST, TMPDIR, VIRTUAL_ENV, NODE_NAME, BUILD_DISPLAY_NAME, REPO_URL, JOB_DISPLAY_URL, BWC_TEST_JOB_NAME, __CF_USER_TEXT_ENCODING, GIT_BRANCH, library.jenkins.version, LC_CTYPE, SHLVL, PUBLISH_NOTIFICATION, WORKSPACE_TMP, PERF_TEST_CONFIG_LOCATION, BUILD_PLATFORM, GIT_PREVIOUS_COMMIT, JAVA_HOME, GITHUB_BOT_TOKEN_NAME, BUILD_ID, TEST_MANIFEST, JOB_NAME, JAVA_MAIN_CLASS_76212, GIT_PREVIOUS_SUCCESSFUL_COMMIT, NODE_LABELS, HUDSON_URL, STAGING_PROFILE_ID, WORKSPACE, PUBLIC_ARTIFACT_URL, PIPENV_ACTIVE, GIT_COMMIT, CI, EXECUTOR_NUMBER, PIPENV_PIPFILE, SSH_CLIENT, HUDSON_SERVER_COOKIE, JOB_BASE_NAME, USER, PYTHONDONTWRITEBYTECODE, BUILD_DOCKER, BUILD_NUMBER, SSH_CONNECTION, BUILD_URL, BUILD_TIMESTAMP, RUN_ARTIFACTS_DISPLAY_URL, GIT_URL, AGENT_X64, HOME, AGENT_ARM64]
2023-03-16T01:37:16.020+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
2023-03-16T01:37:16.020+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 75424). The daemon log file: /Users/ec2-user/.gradle/daemon/8.0.2/daemon-75424.out.log
2023-03-16T01:37:16.020+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogAndCheckHealth] Starting 6th build in daemon [uptime: 4 mins 35.698 secs, performance: 100%, GC rate: 0.00/s, heap usage: 0% of 3 GiB]
2023-03-16T01:37:16.020+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build.
2023-03-16T01:37:16.020+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=d3910110-34d1-4962-a648-d949d533615e,javaHome=/private/var/jenkins/tools/hudson.model.JDK/openjdk-17,daemonRegistryDir=/Users/ec2-user/.gradle/daemon,pid=75424,idleTimeout=10800000,priority=NORMAL,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xss2m,--add-exports,jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED,--add-exports,jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED,--add-exports,jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED,--add-exports,jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED,--add-exports,jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED,--add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx3g,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]

Cannot add task 'destructiveDistroTest.docker' as a task with that name already exists.

=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 8.0.2
  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   : F1091F1177F4CDF1
  In FIPS 140 mode      : false
=======================================
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
----- End of the daemon log -----

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* 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/
> Task :distribution:archives:buildDarwinTar
2023-03-16 01:37:29 ERROR    Error building OpenSearch, retry with: ./build.sh manifests/2.7.0/opensearch-2.7.0.yml --component OpenSearch --snapshot
2023-03-16 01:37:29 INFO     Removing /var/folders/2g/jjj_bgln5qn8c6t1szz_fmmc0000gn/T/tmpt0blaoos

k-NN error is for other stages. You can ignore that. This error applies to only macos snapshot creation.

gaiksaya commented 1 year ago

The recent build which was 2hrs ago was successful: https://build.ci.opensearch.org/job/distribution-build-opensearch/7299/ Closing the issue. Might be some transient issue