powertools-lambda-typescript icon indicating copy to clipboard operation
powertools-lambda-typescript copied to clipboard

Maintenance: add e2e tests for Batch Processing

Open dreamorosi opened this issue 3 months ago • 1 comments

Summary

Following the v2.26.0 release we introduced a regression that couldn't be detected in unit tests and existing e2e tests.

Because of this, we should add isolated and dedicated test cases for the Batch Processing utility.

Why is this needed?

So that we can increase the confidence that new code in this utility stays backwards compatible and with less chances of regressions.

Which area does this relate to?

Other

Solution

No response

Acknowledgment

Future readers

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

dreamorosi avatar Sep 15 '25 12:09 dreamorosi

I'm going to be adding the Batch Processing utility to the e2e test matrix here and add two test cases:

  • one SQS queue triggering a Lambda function using Batch Processing alone
  • one SQS queue triggering a Lambda function using Batch Processing together with Parser

The first one will catch regressions similar to the one we introduced in the previous release since it's testing the module in isolation while the second should detect regressions related to the integration between the two or specifically related to Parser being used with Batch Processing.

dreamorosi avatar Sep 15 '25 15:09 dreamorosi