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 index-management that requires artifacts from previous components. #249

Closed
wants to merge 2 commits into from

Conversation

dblock
Copy link
Member

@dblock dblock commented Aug 17, 2021

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

Description

Adds the capability for a script to consume previously built components. This is needed for index-management that needs a job-scheduler and notifications plugin to build.

If you know a way to disable certain tests in that one to avoid needing these, I'd probably prefer that.

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.

Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

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

I am approving, but that is a lot of copypasta - I wish I knew a better way

@dblock
Copy link
Member Author

dblock commented Aug 18, 2021

I am approving, but that is a lot of copypasta - I wish I knew a better way

I know :(

@dblock dblock requested a review from mch2 August 18, 2021 15:02
…ent.

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
@dblock dblock changed the title Build index-management that requires artifacts from a previous component. Build index-management that requires artifacts from previous components. Aug 18, 2021
echo "error: missing $ZIP, $plugin must be built first"
exit 1
fi
cp $ZIP src/test/resources/$plugin
Copy link
Member

Choose a reason for hiding this comment

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

Is this only required for a test gradle task? In our build here we are skipping tests and relying on test steps to be run on merge/pr and later after a bundle is assembled during the test workflow.

Copy link
Member Author

@dblock dblock Aug 18, 2021

Choose a reason for hiding this comment

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

Yes. I suppose I should spend a bit more time trying to figure out how to disable that before introducing a whole feature :)

@dblock
Copy link
Member Author

dblock commented Aug 19, 2021

Both these projects decided to continue checking in the .zips, and this was needed to run integration tests only, so we don't need this.

opensearch-project/index-management#121
opensearch-project/reporting#140

@dblock dblock closed this Aug 19, 2021
@dblock dblock deleted the build-artifacts branch August 19, 2021 21:13
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.

3 participants