Skip to content

Maintenance: temporarily remove Zod schema parsing from layer canary #3170

Closed
@dreamorosi

Description

@dreamorosi

Summary

In a recent PR (#3101) we introduced Parser to the Lambda layer we publish for Powertools for AWS Lambda. As part of this effort we added a test that parses the event of the Lambda function using a specific schema (Event Bridge event).

This works for e2e tests since we control the payload sent to the function being tested but doesn't work with the current setup we have for canary tests, which implicitly invoke the function by using a CDK custom resource with provider model.

Why is this needed?

So that we can move forward with the release.

Besides, the current test setup is not really testing the Parser utility as much as it's testing Zod itself, which is besides the point of the test.

Which area does this relate to?

Other

Solution

Temporarily remove the parsing of the event from the test and add it back again once we have refactored the code.

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)layersItems related to the Lambda Layers pipeline

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions