Skip to content

Conversation

reedham-aws
Copy link
Contributor

Issue #, if available

N/a

Description of changes

In the integration tests, the companion stack being created is created with a change set. Often times, this change set is empty and ignored; after enough test runs, the stack hits its limit of 1000 changesets, causing create failures in the subsequent runs.

This change will now delete the created change set if it is empty.

Description of how you validated changes

In my personal account, I ran the tests a couple time to build up a couple empty change sets. I then made the change, and continued to run make prepare-companion-stack, manually verifying that there were no new changesets being kept on each test run.

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

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

@reedham-aws reedham-aws requested a review from a team as a code owner August 26, 2025 16:50
Copy link
Member

@roger-zhangg roger-zhangg left a comment

Choose a reason for hiding this comment

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

LGTM

@reedham-aws reedham-aws merged commit 0dea023 into aws:develop Aug 26, 2025
7 checks passed
@reedham-aws reedham-aws deleted the emptyChangeSetFix branch August 26, 2025 22:25
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.

3 participants