Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Mar 17, 2025

Pulls out resource-metadata extraction into a separate API so it can easily be reused in other places.
Also adds support for resource metadata to EvaluateCloudFormationTemplate (internal API) in preparation for a change in hotswap.


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

@mrgrain mrgrain temporarily deployed to integ-approval March 17, 2025 18:51 — with GitHub Actions Inactive
@github-actions github-actions bot added the p2 label Mar 17, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team March 17, 2025 18:52
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.61%. Comparing base (cb8a7e0) to head (389b993).

Files with missing lines Patch % Lines
...ws-cdk/lib/api/evaluate-cloudformation-template.ts 86.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #243      +/-   ##
==========================================
+ Coverage   85.09%   85.61%   +0.51%     
==========================================
  Files         206      206              
  Lines       35215    35202      -13     
  Branches     4535     4584      +49     
==========================================
+ Hits        29966    30137     +171     
+ Misses       5099     4918     -181     
+ Partials      150      147       -3     
Flag Coverage Δ
suite.unit 85.61% <90.47%> (+0.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

feel free to merge once comments are responded to :)

}),

// 9: Bootstrap
// 9: Bootstrap (9xxx)
Copy link
Contributor

Choose a reason for hiding this comment

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

i assume by the way you are "enforcing" this that these are not meant to be strongly enforced at all, and will rely on our attention to detail to ensure we follow.

i feel like we are getting to the point where these rules may be hard to get right when we eventually introduce new message codes.

}

private findMetadataFor(logicalId: string | undefined): ResourceMetadata | undefined {
private findMetadataFor(logicalId: string | undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why delete this? seems like we are still returning the same type

@mrgrain mrgrain added the pr/exempt-integ-test Skips the integ test steps if set. label Mar 18, 2025
@mrgrain
Copy link
Contributor Author

mrgrain commented Mar 18, 2025

bypassing integ tests due to unrelated failure

@mrgrain mrgrain closed this Mar 18, 2025
@mrgrain mrgrain reopened this Mar 18, 2025
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Mar 18, 2025
Merged via the queue into main with commit a139c52 Mar 18, 2025
40 of 42 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/refactor/resource-metadata branch March 18, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2 pr/exempt-integ-test Skips the integ test steps if set.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants