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

chore: AWS model files renamed without version #1634

Merged
merged 4 commits into from
Jul 16, 2024

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented Jul 15, 2024

Issue #

#1635

Description of changes

smithy-json model files contained in codegen/sdk-codegen/aws-models are no longer named with <sdkID>.<version>.json; they are now named <sdkID>.json. Version is now omitted for:
(1) simplicity; and
(2) version is not a required field and a service recently shipped without version set.

To make this change:

  • The updatemodels.sh script has been updated to write model files to the new filename.
  • sdk.properties and other places that specific model identifiers are configured have been updated to drop version from the model identifiers.

Models and service clients have been updated with the new updatemodels.sh script so that the new configuration may be tested in CI.

For comparison, other SDKs do not name their models with version either:

New/existing dependencies impact assessment, if applicable

No new dependencies were added to this change.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins changed the title chore: Don't include version in smithy-json model filename anymore chore: Fix the updatemodels.sh script to not rely on model version Jul 15, 2024
@jbelkins jbelkins marked this pull request as ready for review July 15, 2024 22:59
@jbelkins jbelkins requested review from sichanyoo and dayaffe July 15, 2024 23:03
@@ -1,2 +1,2 @@
# Only include services needed for running integration tests
onlyIncludeModels=kinesis.2013-12-02,s3.2006-03-01,sso-admin.2020-07-20,transcribe-streaming.2017-10-26,sqs.2012-11-05,mediaconvert.2017-08-29,sts.2011-06-15,cognito-identity.2014-06-30,iam.2010-05-08,ec2.2016-11-15,ecs.2014-11-13,cloudwatch-logs.2014-03-28,s3-control.2018-08-20,eventbridge.2015-10-07,cloudfront.2020-05-31,cloudfront-keyvaluestore.2022-07-26,route-53.2013-04-01,glacier.2012-06-01
onlyIncludeModels=kinesis,s3,sso-admin,transcribe-streaming,sqs,mediaconvert,sts,cognito-identity,iam,ec2,ecs,cloudwatch-logs,s3-control,eventbridge,cloudfront,cloudfront-keyvaluestore,route-53,glacier
Copy link
Contributor

Choose a reason for hiding this comment

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

this is so much nicer

@jbelkins jbelkins merged commit bce9336 into main Jul 16, 2024
29 checks passed
@jbelkins jbelkins deleted the jbe/no_version_in_model_filename branch July 16, 2024 20:41
@jbelkins jbelkins changed the title chore: Fix the updatemodels.sh script to not rely on model version chore: AWS model files renamed without version Jul 16, 2024
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.

2 participants