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

chore: lint against constructing lambda handlers #28374

Closed
wants to merge 6 commits into from

Conversation

MrArnoldPalmer
Copy link
Contributor

Adds a custom lint rule that bans construction of constructs that create
lambda handlers. This is to be used within aws-cdk-lib to push authors
towards using our standard way of vending handlers using codegen tools
in @aws-cdk/handler-framework.

NOTE: depends on #28251


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

@aws-cdk-automation aws-cdk-automation requested a review from a team December 14, 2023 23:12
@github-actions github-actions bot added the p2 label Dec 14, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 14, 2023
Adds a custom lint rule that bans construction of constructs that create
lambda handlers. This is to be used within `aws-cdk-lib` to push authors
towards using our standard way of vending handlers using codegen tools
in @aws-cdk/handler-framework.
Copy link
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

Approving since the dependency is merged. Looks like the build is failing though so gotta address that too

@MrArnoldPalmer
Copy link
Contributor Author

working on a small bug here that needs to be addressed for relative imports within aws-cdk-lib.

@paulhcsun
Copy link
Contributor

@MrArnoldPalmer it looks like #28251 has been merged. If you're still working on this could you have a look at the merge conflicts so that this PR can be merged?

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

Copy link
Contributor

@paulhcsun paulhcsun left a comment

Choose a reason for hiding this comment

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

@MrArnoldPalmer looks like a couple integ tests in @aws-cdk/aws-s3objectlambda-alpha violate the new linter rule. Could you have a look and update those files?

@paulhcsun
Copy link
Contributor

Closing this PR for staleness, please open a new PR if you'd like to continue working on this.

@paulhcsun paulhcsun closed this Apr 17, 2024
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.

5 participants