Skip to content

Maintenance: add ESM builds to integration tests #2346

Closed
@dreamorosi

Description

@dreamorosi

Summary

As part of our automation we run integration tests on the Powertools packages by deploying Lambda functions into an ephemeral infrastructure on AWS.

As of now we test all the features and utilities that directly interact with AWS services and can change their behavior when run in a AWS Lambda execution environment. In doing so, we test all the Node.js versions supported as managed runtimes by Lambda. Additionally, we also run the tests for both x86 and arm64 architectures.

In v2 we released ESM support, but as of now we don't include this build mode in our tests. We should change that.

Why is this needed?

So that we can increase the confidence in our published artifacts.

Which area does this relate to?

Automation

Solution

Switch some of the functions deployed as part of the integration tests to be bundled as ESM and have at least one function for each package using ESM.

Acknowledgment

Future readers

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

Metadata

Metadata

Assignees

Labels

automationThis item relates to automationcompletedThis item is complete and has been merged/shippedinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)testsPRs that add or change tests

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions