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

[BUG] Snapshot build is broken #116

Closed
dblock opened this issue Aug 11, 2021 · 0 comments · Fixed by #121
Closed

[BUG] Snapshot build is broken #116

dblock opened this issue Aug 11, 2021 · 0 comments · Fixed by #121
Labels
bug Something isn't working v1.1.0

Comments

@dblock
Copy link
Member

dblock commented Aug 11, 2021

Describe the bug

Coming from opensearch-project/opensearch-build#189, attempting to build a snapshot version of this plugin:

./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=1.0.0-SNAPSHOT -Dbuild.snapshot=true

Fails to find the non-snapshot depenency. It should be looking for the snapshot dependency of OpenSearch.

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.7/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
mixed cluster flag: false
plugin in the node: /tmp/tmplvhw34rv/src/test/resources/job-scheduler/opensearch-job-scheduler-1.0.0.0.zip
plugin in the node: /tmp/tmplvhw34rv/build/distributions/opensearch-index-management-1.0.0.0-SNAPSHOT.zip
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 6.7
  OS Info               : Linux 5.8.0-1041-aws (amd64)
  JDK Version           : 14 (JDK)
  JAVA_HOME             : /usr/lib/jvm/java-14-openjdk-amd64
  Random Testing Seed   : BAC5F2377C0E57FB
  In FIPS 140 mode      : false
=======================================

> Task :ktlint
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jetbrains.kotlin.com.intellij.util.ReflectionUtil (file:/home/ubuntu/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.4.31/6451ea797cef544e81f507b0d9959cd97ae09c0/kotlin-compiler-embeddable-1.4.31.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :compileKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find org.opensearch:opensearch-job-scheduler-spi:1.0.0.0.
     Searched in the following locations:
       - https://jcenter.bintray.com/org/opensearch/opensearch-job-scheduler-spi/1.0.0.0/opensearch-job-scheduler-spi-1.0.0.0.pom
       - file:/home/ubuntu/.m2/repository/org/opensearch/opensearch-job-scheduler-spi/1.0.0.0/opensearch-job-scheduler-spi-1.0.0.0.pom
     Required by:
         project :

* 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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 14s
2 actionable tasks: 2 executed
Traceback (most recent call last):
  File "./bundle-workflow/python/build.py", line 56, in <module>
    builder.build(manifest.build.version, arch, args.snapshot)
  File "/home/ubuntu/source/opensearch-project/opensearch-build/dblock-opensearch-build/bundle-workflow/python/build_workflow/builder.py", line 39, in build
    self.git_repo.execute(build_command)
  File "/home/ubuntu/source/opensearch-project/opensearch-build/dblock-opensearch-build/bundle-workflow/python/build_workflow/git_repository.py", line 30, in execute
    subprocess.check_call(command, cwd = self.dir.name, shell = True)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/ubuntu/source/opensearch-project/opensearch-build/dblock-opensearch-build/bundle-workflow/python/../scripts/bundle-build/standard-gradle-build/build.sh -v 1.0.0 -a x64 -s true -o artifacts' returned non-zero exit status 1.

Expected behavior
Build to pickup snapshot version of OpenSearch and jobscheduler/spi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.1.0
Projects
None yet
1 participant