-
Notifications
You must be signed in to change notification settings - Fork 4k
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(enum-updater): add enum updater tool #33681
base: main
Are you sure you want to change the base?
Conversation
…for static mapping matching
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #33681 +/- ##
==========================================
+ Coverage 82.21% 82.24% +0.02%
==========================================
Files 119 119
Lines 6876 6875 -1
Branches 1162 1161 -1
==========================================
+ Hits 5653 5654 +1
+ Misses 1120 1118 -2
Partials 103 103
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
{ | ||
"amplify": { | ||
"RedirectStatus": { | ||
"cdk_path": "aws-cdk/packages/@aws-cdk/aws-amplify-alpha/lib/app.ts" | ||
}, | ||
"CustomRule": { | ||
"cdk_path": "aws-cdk/packages/@aws-cdk/aws-amplify-alpha/lib/app.ts" | ||
} | ||
}, |
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 file is not really necessary, but I don't think it hurts to keep track of it. I'm open to removing it or keeping it for reference. It is a list of all the CDK enums that are not mapped.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Description of changes
This tool currently takes in the CDK enums and SDK enums as inputs, creates a static mapping between CDK enums to SDK enums, and then identifies missing values to make code changes to add in the missing values.
Features
Implementation Details
The tool consists of two main components:
static-enum-mapping-updater.ts
: Handles the downloading and processing of enum definitions, creating mappings between CDK and SDK enumsmissing-enums-updater.ts
: Identifies missing enum values by referencing the static-enum-mapping and the CDK and SDK enum datasources and updates the source files.Usage
This tool will be run automatically by a weekly GitHub workflow to keep CDK enums up to date.
Description of how you validated changes
Manual + unit tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license