-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(cloudformation-diff): use awscdk-service-spec as data source #27813
feat(cloudformation-diff): use awscdk-service-spec as data source #27813
Conversation
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 pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
3ac396d
to
df120c2
Compare
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
bff13b6
to
a103043
Compare
e6d4c09
to
3dc78f7
Compare
5932514
to
97f9dc8
Compare
97f9dc8
to
3bd52d9
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…e_modules/@aws-cdk/integ-runner/lib/workers/db.json.gz'" (#28199) After #27813 the `deploy` action was broken with the above error. This is effectively the same as #27983 . To ensure these kind of issues are not slipping through again, the PR is adding a basic testing harness for `cli-lib` to `@aws-cdk-testing/cli-integtests`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…e_modules/@aws-cdk/integ-runner/lib/workers/db.json.gz'" (aws#28199) After aws#27813 the `deploy` action was broken with the above error. This is effectively the same as aws#27983 . To ensure these kind of issues are not slipping through again, the PR is adding a basic testing harness for `cli-lib` to `@aws-cdk-testing/cli-integtests`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
We already changed the datasource for generated resource to use
@aws-cdk/awscdk-service-spec
.However
cloudformation-diff
was still using the old data source.This PR swaps out the source, with minimal further changes.
Hence no additional tests are required.
Note that this new implementation does not apply
temporary-schemas
defined inspec2cdk
.This is because
temporary-schemas
is a mechanism to unblock development of unreleased features, and not a mechanism to publish schema changes.For the latter, changes must be made in cdklabs/awscdk-service-spec.
I ran a local benchmark and
cdk diff
is now running ~1.03 slower than before.I investigated why and this appears to be mostly due to the gzip compression of the database file.
If we load the DB from an uncompressed source, the new code path performs ~1.07 times faster than the old code path. This trade-off is acceptable.
Compressed package size of
aws-cdk
is reducing with this change from11.7MB
to8.9MB
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license