Skip to content

test(metrics): verify cold starts per invocation - #6020

Open
svozza wants to merge 1 commit into
mainfrom
fix/metrics-e2e-cold-start
Open

svozza wants to merge 1 commit into
mainfrom
fix/metrics-e2e-cold-start

Conversation

@svozza

@svozza svozza commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

The decorator e2e test failed when CloudWatch reported two cold-start samples even though the function logs showed a single emission. The test now verifies each invocation against Lambda’s own initialization report.

Changes

  • Expect one ColdStart value of 1 when the Lambda REPORT includes Init Duration, and zero emissions on a warm invocation.
  • Keep the CloudWatch dimension check. Both decorator e2e tests passed on Node.js 24 arm64.

Issue number: closes #6018


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR between 30-99 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: Make the Metrics decorator cold-start e2e assertion reliable

1 participant