-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[release-automation] Step to build update version binary into zip and store as artifact #45363
Changes from 9 commits
1ac8cc5
eeea5ba
1631d61
b4793f0
a7f3f07
ccbfc79
5186cc8
1114da7
4e6ea21
6ebbc1a
3683976
1713b75
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 |
---|---|---|
@@ -1,28 +1,25 @@ | ||
import os | ||
|
||
import click | ||
|
||
from ci.ray_ci.automation.update_version_lib import ( | ||
get_current_version, | ||
update_file_version, | ||
) | ||
|
||
bazel_workspace_dir = os.environ.get("BUILD_WORKSPACE_DIRECTORY", "") | ||
|
||
|
||
Comment on lines
-10
to
-11
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. can we also make this still working? like can we use this as the default value, and errors when it is empty? 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. Oh yes that should be the default behavior for running locally 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. updated to use bazel workspace dir as default when |
||
@click.command() | ||
@click.option("--root_dir", required=True, type=str) | ||
@click.option("--new_version", required=True, type=str) | ||
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. what should be the 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. root_dir would be the path to Ray repository that user would want the changes to be on. For automation bot, it would clone Ray repo now and pass the path to the repo as root_dir here. If user ran the script locally, root_dir would be their Bazel workspace path. |
||
def main(new_version: str): | ||
def main(root_dir: str, new_version: str): | ||
""" | ||
Update the version in the files to the specified version. | ||
""" | ||
main_version, java_version = get_current_version(bazel_workspace_dir) | ||
main_version, java_version = get_current_version(root_dir) | ||
|
||
update_file_version( | ||
main_version, | ||
java_version, | ||
new_version, | ||
bazel_workspace_dir, | ||
root_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.
will you upload the binaries somewhere after this step? if so do you plan to automate that step too?
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.
I think the bot will just use buildkite API to download this from the pipeline.
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.
The binaries would not be uploaded anywhere else besides the build artifacts. And yes the automation bot would download this artifact using the Buildkite API (we already have a helper function just for that)