Skip to content
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

Merged
merged 12 commits into from
Oct 3, 2024
Merged

Add scripts to generate Release note #484

merged 12 commits into from
Oct 3, 2024

Conversation

TRNWWZ
Copy link
Contributor

@TRNWWZ TRNWWZ commented Oct 2, 2024

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.

help="Specify the target patch version for which the release needs to be generated.",
)
package_release_parser.add_argument(
"--image-type",
Copy link
Contributor

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?

Copy link
Contributor Author

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

@@ -0,0 +1,27 @@
class ImageVersion:
def __init__(self, image_full_version: str, image_type: str):
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this point

Copy link
Contributor Author

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",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@@ -0,0 +1,27 @@
class ImageVersion:
def __init__(self, image_full_version: str, image_type: str):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this point

@TRNWWZ TRNWWZ merged commit 9932945 into aws:main Oct 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants