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

Build job-scheduler dependency in CI vs. zip #25

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

dblock
Copy link
Member

@dblock dblock commented Apr 26, 2021

Signed-off-by: dblock dblock@amazon.com

Description

Build and use job-scheduler artifact used in local integration testing instead of having a .zip version checked in. This avoids problems described in #26 and having to always manually add job-scheduler.zip every time we upgrade the dependency.

I switched the order of checkout for code because every time GitHub checkout@v2 runs in a folder it runs a git clean that removes all un-versioned files.

Issues Resolved

Closes #17.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@@ -53,6 +53,12 @@ jobs:
- name: Build job-scheduler
working-directory: ./job-scheduler
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.0.0-alpha1 -Dbuild.snapshot=false
- name: Assemble job-scheduler
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the error of https://github.com/opensearch-project/anomaly-detection/pull/25/checks?check_run_id=2440286543

Could not find com.amazon.opendistroforelasticsearch:opendistro-job-scheduler-spi:1.0.0.0.

We should build job scheduler SPI as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real issue here is that github checkout deletes everything in the current folder when checking out

Deleting the contents of '/home/runner/work/anomaly-detection/anomaly-detection'

@dblock dblock force-pushed the build-job-scheduler branch 2 times, most recently from 7c4838a to bb96479 Compare April 27, 2021 16:34
Signed-off-by: dblock <dblock@amazon.com>
@dblock
Copy link
Member Author

dblock commented Apr 27, 2021

This is ready to review @ylwu-amzn!

@dblock dblock requested a review from ylwu-amzn April 27, 2021 17:03
@dblock dblock changed the title Build job-scheduler in CI. Build job-scheduler dependency in CI vs. zip Apr 27, 2021
Copy link
Collaborator

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the change!

@dblock dblock merged commit 2129809 into opensearch-project:main Apr 27, 2021
@dblock dblock deleted the build-job-scheduler branch April 27, 2021 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Checked in versions of job-scheduler-*-SNAPSHOT.zip
2 participants