fix(cli): excessive stack event polling during deployment #32196
fix(cli): excessive stack event polling during deployment #32196
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
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.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #32196 +/- ##
==========================================
+ Coverage 77.18% 77.19% +0.01%
==========================================
Files 105 105
Lines 7161 7166 +5
Branches 1312 1314 +2
==========================================
+ Hits 5527 5532 +5
Misses 1454 1454
Partials 180 180
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
packages/aws-cdk/lib/api/util/cloudformation/stack-event-poller.ts
Outdated
Show resolved
Hide resolved
packages/aws-cdk/lib/api/util/cloudformation/stack-event-poller.ts
Outdated
Show resolved
Hide resolved
packages/aws-cdk/lib/api/util/cloudformation/stack-event-poller.ts
Outdated
Show resolved
Hide resolved
packages/aws-cdk/lib/api/util/cloudformation/stack-event-poller.ts
Outdated
Show resolved
Hide resolved
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
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). |
|
Comments on closed issues and PRs are hard for our team to see. |
Closes #32186
Reason for this change
The CLI will poll for all stack events from the beginning of time, even though it will end up using only a fraction of them to display in the terminal. This can cause a significant slowdown of
cdk deploy.Description of changes
Moved the pagination to the caller side, so it can decide whether or not to poll the next page. This is how it was before
2.167.0aws-cdk/packages/aws-cdk/lib/api/util/cloudformation/stack-event-poller.ts
Lines 73 to 74 in 7bb9203
Description of how you validated changes
Added unit test.
Notes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license