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

allow find build script by repo component #2934

Merged

Conversation

junqiu-lei
Copy link
Member

Signed-off-by: Junqiu Lei junqiu@amazon.com

Description

At dashboards-maps repo, it has two OSD plugins, raising this PR in order to allow find correct plugin build script.

Issues Resolved

opensearch-project/dashboards-maps#83

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: Junqiu Lei <junqiu@amazon.com>
@junqiu-lei junqiu-lei requested a review from a team as a code owner November 23, 2022 16:50
Copy link
Member

@zelinh zelinh left a comment

Choose a reason for hiding this comment

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

I don't think this is actually needed. We could specify the working directory in the input manifest so the build workflow would know where to find each plugin directory even for a single repo.
e.g.

working_directory: dashboards-reports

@junqiu-lei
Copy link
Member Author

Thanks @zelinh's help, I know the working_directory is work for plugin directory, but not sure for the build script directory, can I know what directory we need put build scripts to for the plugin in the plugin repo? Currently we have custom_import_map, and will release another maps_dashboards plugin at 2.5.0 also under this repo root path.

@peterzhuamazon
Copy link
Member

I don't think this is actually needed. We could specify the working directory in the input manifest so the build workflow would know where to find each plugin directory even for a single repo. e.g.

working_directory: dashboards-reports

We need this, the build script calling is not controlled by working directory as the working directory is just a param to the build script.

@peterzhuamazon peterzhuamazon merged commit 913f9e7 into opensearch-project:main Nov 28, 2022
@dblock
Copy link
Member

dblock commented Nov 28, 2022

This was merged too fast.

In 2.5 we agreed to #2188 whereas all projects that ship multiple plugins from a monorepo are splitting them to avoid this and a series of other problems. Please don't create more nonorepos and revert this change @junqiu-lei.

@peterzhuamazon
Copy link
Member

This was merged too fast.

In 2.5 we agreed to #2188 whereas all projects that ship multiple plugins from a monorepo are splitting them to avoid this and a series of other problems. Please don't create more nonorepos and revert this change @junqiu-lei.

Hi @dblock.

The reason I merged this change is due to 3.0/2.4.1 would get blocked in maps, and this change does not seems to alter the initial behavior while adding a new way to allow repo owners to customize their scripts.

If there is much concern on the approach, I am happy to approve the revert once @junqiu-lei raise it.
Thanks.

@dblock
Copy link
Member

dblock commented Nov 30, 2022

I am generally against hacks that keep "unblocking" us in the last hour before a release, but that said I would feel better if this PR came with required tests and documentation. I've opened #2945, I'd like to ask to quick follow with tests and docs now, and we can defer the reverting of this feature to later.

@junqiu-lei
Copy link
Member Author

Hi @dblock , I just raised the PR to add tests and docs to it, thanks! #2952

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.

4 participants