Skip to content

chore(testing): use stackEventPollingInterval option, drop CDK patch - #5447

Merged
dreamorosi merged 2 commits into
mainfrom
chore/remove-cdk-polling-patch
Jul 10, 2026
Merged

dreamorosi merged 2 commits into
mainfrom
chore/remove-cdk-polling-patch

Conversation

@svozza

@svozza svozza commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

@aws-cdk/toolkit-lib now exposes a public stackEventPollingInterval option (via aws/aws-cdk-cli#1710), so the interim monkey-patch that reached into the toolkit's internals to slow CloudFormation stack-event polling is no longer needed. This replaces the fragile patch with the supported option, removing the risk that a future release silently moves the internal module and re-exposes e2e runs to Throttling: Rate exceeded errors.

Changes

  • Bumped @aws-cdk/toolkit-lib from ^1.32.0 to ^1.33.0 (first release including the stackEventPollingInterval option)
  • Deleted packages/testing/src/patchCdkStackEventPolling.ts and its import/call in TestStack.ts
  • Passed stackEventPollingInterval: 10_000 to the deploy() and destroy() options in TestStack.ts, preserving the previous 10s polling interval

Issue number: closes #5410


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added the size/M PR between 30-99 LOC label Jul 10, 2026
@powertools-for-aws-oss-automation powertools-for-aws-oss-automation Bot added size/M PR between 30-99 LOC and removed size/M PR between 30-99 LOC labels Jul 10, 2026
@svozza
svozza marked this pull request as ready for review July 10, 2026 09:12
@svozza
svozza requested a review from dreamorosi July 10, 2026 09:12
@dreamorosi
dreamorosi merged commit 47bbb3b into main Jul 10, 2026
42 checks passed
@dreamorosi
dreamorosi deleted the chore/remove-cdk-polling-patch branch July 10, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR between 30-99 LOC

2 participants