opensearch-build: [Bug]: OpenSearch Dashboards needs to rebuild core every time (make --component work)
Describe the bug
OpenSearch dashboards requires to rebuild core every single time to build any of the components, which makes it very slow to debug component build problems.
To reproduce
./build-workflow/build.sh manifests/1.1.0/openseach-dashboards-1.1.0.yml
Succeeds for all components.
./build-workflow/build.sh manifests/1.1.0/openseach-dashboards-1.1.0.yml --component=alertingDashboards
Fails with
+ PLUGIN_NAME=alertingDashboards
+ cp -r ../alertingDashboards/ ../OpenSearch-Dashboards/plugins
cp: cannot create directory '../OpenSearch-Dashboards/plugins': No such file or directory
2021-09-27 14:17:21 ERROR Error building alertingDashboards, retry with: ./bundle-workflow/build.sh manifests/1.1.0/opensearch-dashboards-1.1.0.yml --component alertingDashboards
Traceback (most recent call last):
File "./bundle-workflow/src/run_build.py", line 80, in <module>
sys.exit(main())
File "./bundle-workflow/src/run_build.py", line 66, in main
builder.build(target)
File "/home/ubuntu/source/opensearch-project/opensearch-build/dblock-opensearch-build/bundle-workflow/src/build_workflow/builder.py", line 41, in build
self.git_repo.execute(build_command)
File "/home/ubuntu/source/opensearch-project/opensearch-build/dblock-opensearch-build/bundle-workflow/src/git/git_repository.py", line 70, in execute
subprocess.check_call(command, cwd=cwd, shell=True)
File "/home/ubuntu/.pyenv/versions/3.7.11/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/ubuntu/source/opensearch-project/opensearch-build/dblock-opensearch-build/bundle-workflow/scripts/default/build.sh -v 1.1.0 -a x64 -s false -o artifacts -d true' returned non-zero exit status 1.
Expected behavior
We could adopt something similar to how OpenSearch builds into ~/.m2 for dependencies with npm local, so that the output from the dashboards core could be published and preserved.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 2
- Comments: 16 (16 by maintainers)
Commits related to this issue
- Copy the OpenSearch-Dashboards git package to ~/.cache folder when building the OpenSearch-Dashboards component. Also create the load_dashboard_from_cache function for plugin build to reuse OpenSearch... — committed to Tengda-He/opensearch-build by Tengda-He 5 years ago
- Copy the OpenSearch-Dashboards git package to ~/.cache folder when building the OpenSearch-Dashboards component. Also create the load_dashboard_from_cache function for plugin build to reuse OpenSearch... — committed to Tengda-He/opensearch-build by Tengda-He 5 years ago
- Copy the OpenSearch-Dashboards git package to ~/.cache folder when building the OpenSearch-Dashboards component. Also create the load_dashboard_from_cache function for plugin build to reuse OpenSearch... — committed to Tengda-He/opensearch-build by Tengda-He 5 years ago
- Copy the OpenSearch-Dashboards git package to ~/.cache folder when building the OpenSearch-Dashboards component. Also create the load_dashboard_from_cache function for plugin build to reuse OpenSearch... — committed to Tengda-He/opensearch-build by Tengda-He 5 years ago
- Copy the OpenSearch-Dashboards git package to ~/.cache folder when building the OpenSearch-Dashboards component. Also create the load_dashboard_from_cache function for plugin build to reuse OpenSearch... — committed to Tengda-He/opensearch-build by Tengda-He 5 years ago
This problem is about developers, not Jenkins, see description of the issue. I don’t think it should be closed.