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

Support CI for Windows and MacOS #1164

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

peternied
Copy link
Member

@peternied peternied commented Oct 27, 2022

Description

Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.

Issues Resolved

Note: follow up pull request will convert the integration test job to be multi-platform

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.

Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.

Signed-off-by: Peter Nied <petern@amazon.com>
@peternied peternied requested a review from a team October 27, 2022 21:59
@peternied peternied added backport 2.x backport to 2.x branch v2.4.0 'Issues and PRs related to version v2.4.0' labels Oct 27, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2022

Codecov Report

Merging #1164 (c71fe93) into main (7c8ede6) will decrease coverage by 1.83%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1164      +/-   ##
==========================================
- Coverage   73.90%   72.07%   -1.84%     
==========================================
  Files          86       88       +2     
  Lines        1901     1959      +58     
  Branches      251      258       +7     
==========================================
+ Hits         1405     1412       +7     
- Misses        439      490      +51     
  Partials       57       57              
Impacted Files Coverage Δ
...ashboards-plugin/public/services/chrome_wrapper.ts
...y-dashboards-plugin/public/utils/storage-utils.tsx
...tion/panels/role-edit/cluster-permission-panel.tsx
...dashboards-plugin/public/apps/translation-utils.ts
...tion/panels/role-view/cluster-permission-panel.tsx
...ublic/apps/configuration/utils/combo-box-utils.tsx
...configuration/utils/delete-confirm-modal-utils.tsx
...ublic/apps/configuration/utils/auth-view-utils.tsx
...uration/panels/permission-tree/permission-tree.tsx
...lic/apps/configuration/panels/expression-modal.tsx
... and 164 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link

@davidlago davidlago left a comment

Choose a reason for hiding this comment

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

Nice refactoring, thanks for taking care of this

@cwperks
Copy link
Member

cwperks commented Oct 28, 2022

@peternied Looks like we have to modify the required checks similar to what @cliu123 did for this PR: opensearch-project/security#2161 (comment)

Copy link
Member

@cwperks cwperks left a comment

Choose a reason for hiding this comment

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

Great work @peternied!

steps:
- id: determine-dashboards-directory
run: echo "dashboards-directory=OpenSearch-Dashboards" >> $GITHUB_OUTPUT
shell: bash
Copy link
Member

Choose a reason for hiding this comment

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

Looks like bash is available on all platforms according to this: https://dev.to/pwd9000/github-actions-all-the-shells-581h

Nice use of a composite action! 🙌

- uses: actions/checkout@v2

- id: install-dashboards
uses: ./.github/actions/install-dashboards
Copy link
Member

Choose a reason for hiding this comment

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

+1 for re-usability!

@peternied peternied merged commit a21c7be into opensearch-project:main Oct 28, 2022
@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-1164-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a21c7be155c082ede6bb24b9a691805ff1431f03
# Push it to GitHub
git push --set-upstream origin backport/backport-1164-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-1164-to-2.x.

@peternied
Copy link
Member Author

FYI The backport to 2.x #1167

@peternied peternied deleted the build-action branch October 28, 2022 17:03
peternied added a commit that referenced this pull request Oct 31, 2022
Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit a21c7be)
peternied added a commit that referenced this pull request Nov 1, 2022
* Support CI for Windows and MacOS (#1164)

Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit a21c7be)

* Support checkout out #.X branch types

Signed-off-by: Peter Nied <petern@amazon.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 1, 2022
* Support CI for Windows and MacOS (#1164)

Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit a21c7be)

* Support checkout out #.X branch types

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit a8278c1)
peternied added a commit that referenced this pull request Nov 2, 2022
* Support CI for Windows and MacOS (#1164)

Creates a github action to install and configure Dashboards that is reused within the workflows of this repository, its multi-platform safe.

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit a21c7be)

* Support checkout out #.X branch types

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit a8278c1)

Co-authored-by: Peter Nied <petern@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 v2.4.0 'Issues and PRs related to version v2.4.0'
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants