fix(core): correct nested stack metadata collection boundary#36893
fix(core): correct nested stack metadata collection boundary#36893Ashutosh0x wants to merge 2 commits intoaws:mainfrom
Conversation
There was a problem hiding this comment.
The pull request linter fails with the following errors:
❌ Fixes must contain a change to an integration test file and the resulting snapshot.
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.
✅ A exemption request has been requested. Please wait for a maintainer's review.
|
Exemption Request I have added a unit test metadata from nested stack is not collected in parent stack in |
This PR fixes an issue where metadata from nested stacks was not being correctly collected or was leaking into the parent stack's artifact.
Problem
The collectStackMetadata function was traversing into nested stacks, causing incorrect metadata association and potential duplication in the cloud assembly.
Solution
Corrects the collectStackMetadata traversal to respect stack boundaries, ensuring metadata is associated with the correct stack artifact.
Split from #36871