-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add scripts to generate Release note #484
Conversation
help="Specify the target patch version for which the release needs to be generated.", | ||
) | ||
package_release_parser.add_argument( | ||
"--image-type", |
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.
Are we doing 2 separate github releases, 1 for each image type?
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, it was decided in meeting with PM. Reason is in the future we may have release for other platform like trainium
src/image_version.py
Outdated
@@ -0,0 +1,27 @@ | |||
class ImageVersion: | |||
def __init__(self, image_full_version: str, image_type: str): |
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.
can we accomplish this functionality using the semver Version class ? I just think it might be a little confusing to be using both in different places in the package
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.
+1 to this point
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.
good point, updated
src/main.py
Outdated
@@ -442,6 +443,21 @@ def get_arg_parser(): | |||
required=True, | |||
help="Specify the target patch version for which the package dependency report needs to be generated.", | |||
) | |||
package_release_parser = subparsers.add_parser( | |||
"generate-version-release", |
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.
Can we rename this command to be "generate-version-release-note"? It's a little confusing to me because it could indicate generating build artifacts for a new image version
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.
updated
src/image_version.py
Outdated
@@ -0,0 +1,27 @@ | |||
class ImageVersion: | |||
def __init__(self, image_full_version: str, image_type: str): |
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.
+1 to this point
Issue #, if available:
N/A
Description of changes:
Add scripts to generate Release note, it's part of auto notification task. Will make change to these content if PM shares feedback later.
Test
Unit test and Example release: https://github.com/aws/sagemaker-distribution/releases/tag/1.11.0-gpu
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.