Skip to content

Conversation

@skinny85
Copy link
Contributor

@skinny85 skinny85 commented Jan 14, 2021

We were missing a few cases where we did not validate that a package had the correct maturity set:

  • A package with L2s could still have a maturity of 'cfn-only'
  • A package with only L1s could still have a non-'cfn-only' maturity

Fix that in the linter, along with the violations discovered.


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

We were missing a few cases where we did not validate that a package had the correct `maturity` set:

- A package with L2s could still have a `matuirty` of 'cfn-only'
- A package with only L1s could still have a non-'cfn-only' maturity

Fix that in the linter, along with the violations discovered.
@gitpod-io
Copy link

gitpod-io bot commented Jan 14, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 14, 2021
@skinny85 skinny85 changed the title chore(pkglint): validate the package maturity is correct chore(pkglint): validate that package maturity is correct Jan 14, 2021
"node": ">= 10.13.0 <13 || >=13.7.0"
},
"stability": "experimental",
"maturity": "cfn-only",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?
Looks like it only have an l1

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the certificate-authority.ts definitely makes it an L2.

@mergify
Copy link
Contributor

mergify bot commented Jan 15, 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
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: a7f356f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Jan 15, 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 mergify bot merged commit 4ba0644 into aws:master Jan 15, 2021
@skinny85 skinny85 deleted the feat/lint-cfn-only branch January 15, 2021 18:59
mohanrajendran pushed a commit to mohanrajendran/aws-cdk that referenced this pull request Jan 24, 2021
We were missing a few cases where we did not validate that a package had the correct `maturity` set:

- A package with L2s could still have a `maturity` of 'cfn-only'
- A package with only L1s could still have a non-'cfn-only' `maturity`

Fix that in the linter, along with the violations discovered.

----

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

5 participants