feat(lib): allow disabling creation stacks#215
Conversation
512dc9a to
905459e
Compare
|
Found a couple pieces from the AWS CDK that make me wonder if we should just take this further:
Basically, they flat out removed them from tokens. That would be a breaking change, though I wonder if anyone would actually miss the behavior. |
|
For aws/aws-cdk#11170, it looks like they added a But then in aws/aws-cdk#37642, they removed the stack traces completely. I am fine removing them from cdktn as well, if that's what the consensus decides. But like you say, it's more of a breaking change. The change in this PR is non-breaking. |
I expect we'll have a release with breaking changes in the next month (potentially the next release), so I don't mind a breaking change. It is probably worth writing up a bit of detail on what we'd lose and post to slack to see if there's any pushback before going forward with that path though. |
|
Should we merge this PR and then discuss whether it makes sense to remove the stack traces completely? I'd hate for this to get blocked indefinitely while we figure out if we can delete the stack traces. But if you think we can come to a quick consensus, that's fine. |
|
In any case, here's a PR to delete creations stacks completely: #219 I will start a discussion on Slack. |
so0k
left a comment
There was a problem hiding this comment.
LGTM, only tagged this PR in the config surface tracking issue - but it's a new capability in CDKTN so feels fine to use the CDKNT_ prefix
I agree that merging this (potentially for a performance improving patch release with the fast stringify?)
Allow setting `CDKTN_DISABLE_CREATION_STACK` environment variable to disable capturing stack traces when constructing IResolvables. Capturing stack traces is fairly slow in Node, so disabling them saves a lot of time when synthing large stacks. Fixes open-constructs#209
905459e to
83fe106
Compare
## 0.23.3 ### chore - chore(gha): run integration tests on Depot runners [\#238](#238) - chore(deps): bump typescript to 5.9.3 across the repo [\#231](#231) - chore: Upgrade jsii [\#223](#223) - chore: Revise README links to documentation and language support [\#221](#221) - chore: Pin node version to 22.22.2 via .nvmrc [\#212](#212) - chore: Add gradle cache to the examples and integration CI workflows [\#211](#211) - chore: Add PR workflow concurrency group and CI Label Filter job [\#204](#204) - chore(tests): add verdaccio to package.json [\#202](#202) - chore(tests): don't require other language builds [\#201](#201) - chore(tests): Ensure we terminate Verdaccio [\#199](#199) - chore: rewrite https://cdk.tf links [\#197](#197) - chore: Update examples help files [\#194](#194) ### feat - feat: faster JSON stringify [\#224](#224) - feat(lib): allow disabling creation stacks [\#215](#215) ### fix - fix(lib): surface stderr/stdout on exec() failures via toString() [\#207](#207) --------- Co-authored-by: so0k <vincent.drl@gmail.com> Co-authored-by: sakul-learning <lucas@sheesh.host>
Allow setting
CDKTN_DISABLE_CREATION_STACKenvironment variable to disable capturing stack traces when constructing IResolvables.Capturing stack traces is fairly slow in Node, so disabling them saves a lot of time when synthing large stacks.
Related issue
Fixes #209
Description
Don't capture stack traces if the
CDKTN_DISABLE_CREATION_STACKenv var is set.Checklist