Skip to content

chore(aws-cdk-lib): refactor submodule gen#25543

Merged
mergify[bot] merged 8 commits intomainfrom
mrgrain/fix/new-service-gen
May 11, 2023
Merged

chore(aws-cdk-lib): refactor submodule gen#25543
mergify[bot] merged 8 commits intomainfrom
mrgrain/fix/new-service-gen

Conversation

@mrgrain
Copy link
Copy Markdown
Contributor

@mrgrain mrgrain commented May 11, 2023

Submodule generation is split between cfn2ts and aws-cdk-lib/scripts/gen.ts.
This PR re-organizes the responsibilities between the packages.
cfn2ts is now only responsible for generating L1 files (including Canned Metrics and Augmentations).
Any further code gen related to the specific submodule setup in aws-cdk-lib has been moved there.
This will make it easier to replace cfn2ts with a new version.

Also fixes a few minor issue on the way:

  • use alphabetical order in all generated artifacts (previously was ordered by Unicode code point)
  • update lazy-index.ts again
  • move submodule specific code gen in one place
  • add README to submodules

With this clean-up version in place, we can now go and add submodule generation as a step of the spec update.
Additionally, spec patches can now be less strict and will continue even on failure.
This is to facilitate the spec bump job, which will do that.
PR builds continue to be strict and will fail.


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

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented May 11, 2023

@aws-cdk-automation aws-cdk-automation requested a review from a team May 11, 2023 17:33
@github-actions github-actions bot added the p2 label May 11, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label May 11, 2023
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label May 11, 2023
@Naumel Naumel added the pr/do-not-merge This PR should not be merged at this time. label May 11, 2023
Copy link
Copy Markdown
Contributor

@Naumel Naumel left a comment

Choose a reason for hiding this comment

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

Code looks good to me, adding the label in case a second pair of eyes is needed

@mrgrain mrgrain removed the pr/do-not-merge This PR should not be merged at this time. label May 11, 2023
@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label May 11, 2023
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented May 11, 2023

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).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: c134632
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit cab8623 into main May 11, 2023
@mergify mergify bot deleted the mrgrain/fix/new-service-gen branch May 11, 2023 23:16
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented May 11, 2023

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).

corymhall added a commit that referenced this pull request May 12, 2023
This is a backport of #25543 with changes specific to v1.

- Spec update won't fail in the bump job (it will fail in the PR build)
- New modules are generated again
mergify bot pushed a commit that referenced this pull request May 12, 2023
This is a backport of #25543 with changes specific to v1.

- Spec update won't fail in the bump job (it will fail in the PR build)
- New modules are generated again



----

*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

contribution/core This is a PR that came from AWS. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants