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

Add workflow to build and install binary to catch run time issues #1467

Merged
merged 10 commits into from
Mar 22, 2024

Conversation

derek-ho
Copy link
Collaborator

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

Description

I have observed some issues within other plugins of issues being only caught at run time. This is because several things can go wrong during the build process, which may not be caught in a dev setup. This adds a workflow to verify that building and installing into OSD works on every PR.

Related issues:
opensearch-project/security-dashboards-plugin#1709
opensearch-project/security-analytics-dashboards-plugin#875

There was also an issue in this repo that was fixed when we caught a similar issue during release testing. Context is here: #309. Here is a test run proving this PR would have caught that issue during RC testing: https://github.com/opensearch-project/dashboards-observability/actions/runs/8024893403/job/21924379904

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • 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.

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 changed the title Binary install Add workflow to build and install binary to catch run time issues Feb 23, 2024
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.75%. Comparing base (b4fd35e) to head (d80930b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1467   +/-   ##
=======================================
  Coverage   57.75%   57.75%           
=======================================
  Files         367      367           
  Lines       13825    13825           
  Branches     3627     3627           
=======================================
  Hits         7985     7985           
  Misses       5777     5777           
  Partials       63       63           
Flag Coverage Δ
dashboards-observability 57.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@derek-ho derek-ho marked this pull request as draft February 23, 2024 20:13
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho marked this pull request as ready for review February 23, 2024 20:59
@derek-ho derek-ho added enhancement New feature or request backport 2.x labels Feb 23, 2024
@Swiddis Swiddis added infrastructure and removed enhancement New feature or request labels Mar 14, 2024
@derek-ho derek-ho merged commit 4e1e0e5 into opensearch-project:main Mar 22, 2024
15 of 21 checks passed
@derek-ho derek-ho deleted the binary-install branch March 22, 2024 14:26
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 22, 2024
)

* Add binary install workflow

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

* Fix plugin zip name

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

* Revert performance now change

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

* Revert "Revert performance now change"

This reverts commit c75fe26.

* Bump version and provide suffix

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

* Revert "Revert "Revert performance now change""

This reverts commit 933e576.

* Revert "Revert "Revert "Revert performance now change"""

This reverts commit 170122e.

* remove security referneces

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

---------

Signed-off-by: Derek Ho <dxho@amazon.com>
Co-authored-by: Simeon Widdis <sawiddis@gmail.com>
(cherry picked from commit 4e1e0e5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
derek-ho pushed a commit that referenced this pull request Mar 22, 2024
) (#1611)

* Add binary install workflow



* Fix plugin zip name



* Revert performance now change



* Revert "Revert performance now change"

This reverts commit c75fe26.

* Bump version and provide suffix



* Revert "Revert "Revert performance now change""

This reverts commit 933e576.

* Revert "Revert "Revert "Revert performance now change"""

This reverts commit 170122e.

* remove security referneces



---------



(cherry picked from commit 4e1e0e5)

Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simeon Widdis <sawiddis@gmail.com>
RyanL1997 pushed a commit to RyanL1997/dashboards-observability that referenced this pull request Apr 18, 2024
…1467)

Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
(cherry picked from commit 497c7f157b85d73e6000a7a10a2ad24eb3ba6db8)

Co-authored-by: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants