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

feat: Setup workspace workflow file. #1145

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

yubonluo
Copy link
Collaborator

@yubonluo yubonluo commented Mar 13, 2024

Description

We are going to onboard a new dashboards plugin dashboards-workspace to FTRepo, this is the initial PR to setup basic workflow file. Test cases will be included in following PRs.

Issues Resolved

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.

Signed-off-by: yubonluo <yubonluo@amazon.com>
uses: ./.github/workflows/release-e2e-workflow-template.yml
with:
test-name: dashboards workspace
test-command: env CYPRESS_DASHBOARDS_WORKSPACE_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/dashboards-workspace/*'
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be cypress:run-without-security?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I will correct it.

with:
test-name: dashboards workspace
test-command: env CYPRESS_DASHBOARDS_WORKSPACE_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/dashboards-workspace/*'
osd-serve-args: --workspace.enabled=true --savedObjects.permission.enabled=true
Copy link
Collaborator

Choose a reason for hiding this comment

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

--savedObjects.permission.enabled=false for without security case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will correct it.

Copy link
Member

Choose a reason for hiding this comment

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

Should we move this file to cypress/integration/core-opensearch-dashboards/opensearch-dashboards as workspace is a plugin in core repo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I will move the integration test file to cypress/integration/core-opensearch-dashboards/opensearch-dashboards.

cypress.json Outdated
@@ -21,6 +21,7 @@
"DATASOURCE_MANAGEMENT_ENABLED": false,
"ML_COMMONS_DASHBOARDS_ENABLED": true,
"WAIT_FOR_LOADER_BUFFER_MS": 0,
"DASHBOARDS_ASSISTANT_ENABLED": false
"DASHBOARDS_ASSISTANT_ENABLED": false,
"DASHBOARDS_WORKSPACE_ENABLED": false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shall we need start with DASHBOARDS? I think workspace is not direct related dashboard.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, I will delete the prefix DASHBOARDS .

Signed-off-by: yubonluo <yubonluo@amazon.com>
Copy link
Member

@SuZhou-Joe SuZhou-Joe left a comment

Choose a reason for hiding this comment

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

Nice setup for workspace plugin! Left a comment

with:
filters: |
tests:
- 'cypress/**/dashboards-workspace/**'
Copy link
Member

Choose a reason for hiding this comment

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

The test pattern should match cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin I think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, I will fix the filters.

Signed-off-by: yubonluo <yubonluo@amazon.com>
@SuZhou-Joe SuZhou-Joe merged commit 736a788 into opensearch-project:main Mar 14, 2024
38 of 42 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 23, 2024
* feat: enable workspace plugin setup

Signed-off-by: yubonluo <yubonluo@amazon.com>

* feat: fix some details

Signed-off-by: yubonluo <yubonluo@amazon.com>

* feat: fix file filters

Signed-off-by: yubonluo <yubonluo@amazon.com>

---------

Signed-off-by: yubonluo <yubonluo@amazon.com>
(cherry picked from commit 736a788)
tianleh pushed a commit that referenced this pull request Apr 24, 2024
* feat: enable workspace plugin setup

Signed-off-by: yubonluo <yubonluo@amazon.com>

* feat: fix some details

Signed-off-by: yubonluo <yubonluo@amazon.com>

* feat: fix file filters

Signed-off-by: yubonluo <yubonluo@amazon.com>

---------

Signed-off-by: yubonluo <yubonluo@amazon.com>
(cherry picked from commit 736a788)
SuZhou-Joe pushed a commit that referenced this pull request Apr 25, 2024
* feat: enable workspace plugin setup

Signed-off-by: yubonluo <yubonluo@amazon.com>

* feat: fix some details

Signed-off-by: yubonluo <yubonluo@amazon.com>

* feat: fix file filters

Signed-off-by: yubonluo <yubonluo@amazon.com>

---------

Signed-off-by: yubonluo <yubonluo@amazon.com>
(cherry picked from commit 736a788)

Co-authored-by: yuboluo <15242088755@163.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.

5 participants