Skip to content

chore: stripping stability banners for Cfn constructs on alpha modules#17327

Merged
mergify[bot] merged 3 commits intomasterfrom
otaviom/strip-stability-banner
Nov 4, 2021
Merged

chore: stripping stability banners for Cfn constructs on alpha modules#17327
mergify[bot] merged 3 commits intomasterfrom
otaviom/strip-stability-banner

Conversation

@otaviomacedo
Copy link
Copy Markdown
Contributor

Alpha modules don't have Cfn constructs, so it doesn't make sense to have a stability banner for them on the README.

Fixes #17038.


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

@otaviomacedo otaviomacedo requested a review from a team November 4, 2021 09:35
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Nov 4, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 4, 2021
Copy link
Copy Markdown
Contributor

@njlynch njlynch left a comment

Choose a reason for hiding this comment

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

Looks like the build is failing due to the apigatewayv2 changes. What's different about this README versus the others?

@otaviomacedo
Copy link
Copy Markdown
Contributor Author

Looks like the build is failing due to the apigatewayv2 changes. What's different about this README versus the others?

Yes, pkglint enforces an additional rule for it because it has a features attribute in the package.json. So I added new patterns to look for.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 4, 2021

Thank you for contributing! Your pull request will be updated from master 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: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 77da3cd
  • 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 bc00427 into master Nov 4, 2021
@mergify mergify bot deleted the otaviom/strip-stability-banner branch November 4, 2021 18:18
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 4, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

mergify bot pushed a commit that referenced this pull request Nov 7, 2021
In #17327, we stripped away the stability banner for `Cfn` resources from README's of alpha modules, since these modules don't actually contain L1 resources. 

Problem is that this stripping causes a bunch of `pkglint` violations on the `v2-main` branch, for example:

```console
@aws-cdk/aws-iot-alpha: In package package.json
--
972 | @aws-cdk/aws-iot-alpha: - [package-info/maturity] Missing stability banner for experimental in README.md file (fixable)
973 | @aws-cdk/aws-iot-alpha: Error: Some package.json files had errors
974 | @aws-cdk/aws-iot-alpha:     at main (/codebuild/output/src115445882/src/github.com/aws/aws-cdk/tools/@aws-cdk/pkglint/bin/pkglint.js:30:15)
975 | @aws-cdk/aws-iot-alpha:     at Object.<anonym
```

This PR fixes the transform and makes the necessary changes so that `pkglint` will be happy. 
Note that this was not detected during merge of #17327 into master since on master, these packages are transformed into private packages, and hence are not validated. 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
aws#17327)

Alpha modules don't have Cfn constructs, so it doesn't make sense to have a stability banner for them on the README.

Fixes aws#17038.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
In aws#17327, we stripped away the stability banner for `Cfn` resources from README's of alpha modules, since these modules don't actually contain L1 resources. 

Problem is that this stripping causes a bunch of `pkglint` violations on the `v2-main` branch, for example:

```console
@aws-cdk/aws-iot-alpha: In package package.json
--
972 | @aws-cdk/aws-iot-alpha: - [package-info/maturity] Missing stability banner for experimental in README.md file (fixable)
973 | @aws-cdk/aws-iot-alpha: Error: Some package.json files had errors
974 | @aws-cdk/aws-iot-alpha:     at main (/codebuild/output/src115445882/src/github.com/aws/aws-cdk/tools/@aws-cdk/pkglint/bin/pkglint.js:30:15)
975 | @aws-cdk/aws-iot-alpha:     at Object.<anonym
```

This PR fixes the transform and makes the necessary changes so that `pkglint` will be happy. 
Note that this was not detected during merge of aws#17327 into master since on master, these packages are transformed into private packages, and hence are not validated. 

----

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CDKv2GA]: Remove stability banners for Cfn constructs from alpha modules READMEs

4 participants