Maintenance: build Lambda Layers from source during tests #1709
Labels
automation
This item relates to automation
completed
This item is complete and has been merged/shipped
internal
PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
layers
Items related to the Lambda Layers pipeline
Summary
Currently the
LayerPublisher
construct that we use to deploy Lambda Layers during integration tests and new releases always defaults to installing the Powertools utilities from npmjs.com. This means that we don't have any way to testing the code that we haven't released in Lambda Layers.This issue proposes to introduce a way to run the integration tests for the
layers
workspace using Powertools utilities that are build from source rather than downloaded from npmjs.com (see "Solution" section below for visual representation of the proposal).This will allow us to easily test changes that we make to:
Without the change above we have no way of covering these cases unless we make a release first.
Why is this needed?
Up until now our Lambda Layers usage was fairly straightforward as it involved only our core utilities (Tracer, Metrics, Logger) which always shipped with their own dependencies.
In the past couple of weeks alone however the complexity has increased significantly due to separate work streams that involve deploying unpublished versions:
For this reason we should have a way to run integration tests for the
layer
workspace using Powertools utilities built from source rather then the ones from the last published release.Which area does this relate to?
Automation
Solution
Visual representation of current process:
Visual representation of proposed process:
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: