-
Notifications
You must be signed in to change notification settings - Fork 65
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
Fix: correct gradle file function name and comment #795
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,8 +159,8 @@ task pullBwcPlugin { | |
} | ||
} | ||
|
||
// Task to unzip ml-commons plugin from archive | ||
task unZipBwcMlCommonsPlugin(type: Zip) { | ||
// Task to zip ml-commons plugin from archive | ||
task zipBwcMlCommonsPlugin(type: Zip) { | ||
dependsOn "pullMlCommonsBwcPlugin" | ||
from(Path.of(tmp_dir.absolutePath, "opensearch-ml")) | ||
destinationDirectory = tmp_dir | ||
|
@@ -170,10 +170,10 @@ task unZipBwcMlCommonsPlugin(type: Zip) { | |
} | ||
} | ||
|
||
// Task to unzip knn plugin from archive | ||
task unZipBwcKnnPlugin(type: Zip) { | ||
// Task to zip knn plugin from archive | ||
task zipBwcKnnPlugin(type: Zip) { | ||
dependsOn "pullKnnBwcPlugin" | ||
dependsOn "unZipBwcMlCommonsPlugin" | ||
dependsOn "zipBwcMlCommonsPlugin" | ||
from(Path.of(tmp_dir.absolutePath, "opensearch-knn")) | ||
destinationDirectory = tmp_dir | ||
archiveFileName = "opensearch-knn-${neural_search_bwc_version_no_qualifier}.zip" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know where is this archiveFileName used? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Used to define file for plugin installation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did some research and find that this parameter is inhereted from the "zip" task, and is used to indicate the final file of "zip" task There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can check AbstractArchiveTask for gradle: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html |
||
|
@@ -182,9 +182,9 @@ task unZipBwcKnnPlugin(type: Zip) { | |
} | ||
} | ||
|
||
// Task to unzip neural search plugin from archive | ||
task unZipBwcPlugin(type: Zip) { | ||
dependsOn "unZipBwcKnnPlugin" | ||
// Task to zip neural search plugin from archive | ||
task zipBwcPlugin(type: Zip) { | ||
dependsOn "zipBwcKnnPlugin" | ||
dependsOn "pullBwcPlugin" | ||
from(Path.of(tmp_dir.absolutePath, "opensearch-neural-search")) | ||
destinationDirectory = tmp_dir | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please provide more details about why we're zip it instead of unzip? For my previous understanding, we fetch the zip archive from the CI website and unzip it to build the cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions are actually doing zipping instead of unzipping. This PR does not change any code logic and just fix comments and function names to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my expression maybe not clear enough. My question is, how we're doing the zip? Could you please describe the whole execution process of the zip* or unzip* function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used to install plugin with zip, you can check the gradle file in restart upgrade and rolling upgrade.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the steps:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense