Sort the build recorder on plugin list so plugins can be installed by order#6175
Conversation
… order Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6175 +/- ##
=======================================
Coverage 96.62% 96.62%
=======================================
Files 405 405
Lines 19025 19039 +14
=======================================
+ Hits 18383 18397 +14
Misses 642 642 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
expani
left a comment
There was a problem hiding this comment.
Thanks for helping with this @peterzhuamazon
| cp -v "$plugin"/build/distributions/"$PLUGIN_ARTIFACT_BUILD_NAME" "${OUTPUT}"/plugins/ | ||
| if [ "$PLUGIN_NAME" = "analytics-engine" ]; then | ||
| PLUGIN_NAME=$INSTALL_ORDER-$PLUGIN_NAME | ||
| INSTALL_ORDER=$((INSTALL_ORDER + 1)) |
There was a problem hiding this comment.
Given that this needs to be a DAG eventually and the order of determination will be hierarchical in nature.
Should we consider moving this to buidler_from_source for easy maintenance in Python compared to Shell scripts ?
There was a problem hiding this comment.
This needs proper planning before make it to python. The python code is for general builds. Previously we never require a core plugin to be installed before a third party plugin in the released bundle. This means either we still follow that behavior, or we decided to install a small set of core plugin beforehand. Until that decision is made and all the datafusion code officially made it to main, we will not onboard that logic to python code.
There was a problem hiding this comment.
The DAG is being introduced here: #6190. This is for component level though and builds the graph based on depends_on. We can see where this dependency tree needs to be (manifest or core build.gradle)
7d81538
into
opensearch-project:main
Description
Sort the build recorder on plugin list so plugins can be installed by order
Issues Resolved
#5810
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.