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

Use start-opensearch and setup-opensearch-dashboards actions #1783

Merged

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Feb 14, 2024

Description

This PR generalizes the setup and build of Opensearch and OpenSearch Dashboards into a runnable binary into an action that can be used by other plugins to build and install their plugin into OSD and verify it comes up healthy.

Category

Enhancement

Why these changes are required?

What is the old behavior before changes and new behavior after changes?

Issues Resolved

Fix: #1785

Testing

Testing completed by github actions remaining successful

Check List

  • New functionality includes testing
  • New functionality has been documented
  • 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

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.41%. Comparing base (0f1efc2) to head (b6d7780).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1783   +/-   ##
=======================================
  Coverage   67.41%   67.41%           
=======================================
  Files          94       94           
  Lines        2409     2409           
  Branches      321      321           
=======================================
  Hits         1624     1624           
  Misses        707      707           
  Partials       78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@derek-ho derek-ho force-pushed the generalize-binary-install-workflow branch 2 times, most recently from d1257ff to 8e63904 Compare February 20, 2024 19:14
Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho force-pushed the generalize-binary-install-workflow branch from 9a1bbae to e47e12f Compare February 21, 2024 18:27
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Copy link
Collaborator

@RyanL1997 RyanL1997 left a comment

Choose a reason for hiding this comment

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

Hi @derek-ho , thanks for taking this on. I just left some early reviews on this.

.github/workflows/cypress-test.yml Show resolved Hide resolved
.github/workflows/integration-test.yml Show resolved Hide resolved
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho mentioned this pull request Feb 23, 2024
3 tasks
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho changed the title Break out installing backend plugin into separate action Use start-opensearch and setup-opensearch-dashboards actions Feb 23, 2024
…rds-plugin into generalize-binary-install-workflow
@derek-ho derek-ho marked this pull request as ready for review February 23, 2024 18:33
@derek-ho derek-ho added the backport 2.x backport to 2.x branch label Feb 23, 2024
Signed-off-by: Derek Ho <dxho@amazon.com>
@cwperks cwperks merged commit 9516bea into opensearch-project:main Feb 26, 2024
15 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-1783-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 9516bea862e407df5da2c53ff3e9bb5303716963
# Push it to GitHub
git push --set-upstream origin backport/backport-1783-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-1783-to-2.x.

derek-ho added a commit to derek-ho/security-dashboards-plugin that referenced this pull request Feb 26, 2024
…rch-project#1783)

* Revert to old version

Signed-off-by: Derek Ho <dxho@amazon.com>

* Fix order

Signed-off-by: Derek Ho <dxho@amazon.com>

* Revert deletion of custom dashboards file

Signed-off-by: Derek Ho <dxho@amazon.com>

* Replace other instances of the backend workflow

Signed-off-by: Derek Ho <dxho@amazon.com>

* Add file prefix

Signed-off-by: Derek Ho <dxho@amazon.com>

* Also add env variable references in workflow

Signed-off-by: Derek Ho <dxho@amazon.com>

* Try the branch that adds settings for security dashboards ci support

Signed-off-by: Derek Ho <dxho@amazon.com>

* Update workflow to v2

Signed-off-by: Derek Ho <dxho@amazon.com>

* Use setup opensearch dashboards workflow

Signed-off-by: Derek Ho <dxho@amazon.com>

* Remove duplciate functionality in binary installation

Signed-off-by: Derek Ho <dxho@amazon.com>

* Unsaved local changes

Signed-off-by: Derek Ho <dxho@amazon.com>

* install zip as true

Signed-off-by: Derek Ho <dxho@amazon.com>

* Consolidate writing yml file

Signed-off-by: Derek Ho <dxho@amazon.com>

* Remove duplicate install

Signed-off-by: Derek Ho <dxho@amazon.com>

* Modify workflow to pass in built plugin artifact name

Signed-off-by: Derek Ho <dxho@amazon.com>

* Use latest version of workflow and use directory output

Signed-off-by: Derek Ho <dxho@amazon.com>

* Fix syntax issue

Signed-off-by: Derek Ho <dxho@amazon.com>

* Run start dashboards command in correct directory

Signed-off-by: Derek Ho <dxho@amazon.com>

* Use v1 release

Signed-off-by: Derek Ho <dxho@amazon.com>

* Remove cats and rename config files

Signed-off-by: Derek Ho <dxho@amazon.com>

---------

Signed-off-by: Derek Ho <dxho@amazon.com>
(cherry picked from commit 9516bea)
Signed-off-by: Derek Ho <dxho@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Generalize Build/Install Plugin From Zip Workflow
5 participants