Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't emit examples larger than 500 lines #272

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jun 14, 2023

Currently, the aws-quicksight library would produce an example that is 30,000 lines. There is no real point to this and in fact blows up the size of the Python source file by quite a lot, so refuse to generate examples that are too large.

In the future we may choose to do this eliding more intelligently (for example, by skipping optional properties and/or limiting recursion depth), but this is a multidimensional optimization problem that may not be so simple to solve as it seems at first. Most important thing is to stop the bleeding.

Fixes #

Currently, the `aws-quicksight` library would produce an example that is
30,000 lines. There is no real point to this and in fact blows up the
size of the Python source file by quite a lot, so refuse to generate
examples that are too large.

In the future we may choose to do this eliding more intelligently (for
example, by skipping optional properties and/or limiting recursion
depth), but this is a multidimensional optimization problem that may
not be so simple to solve as it seems at first. Most important thing
is to stop the bleeding.
Merged via the queue into main with commit 8873805 Jun 14, 2023
@rix0rrr rix0rrr deleted the huijbers/max-example-size branch June 15, 2023 06:52
rix0rrr added a commit to aws/aws-cdk that referenced this pull request Jun 15, 2023
Bump the version of this package to obtain the following fix: cdklabs/cdk-generate-synthetic-examples#272
mergify bot pushed a commit to aws/aws-cdk that referenced this pull request Jun 15, 2023
Bump the version of this package to obtain the following fix: cdklabs/cdk-generate-synthetic-examples#272


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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