Skip to content

Hash AWS Lambda test functions based on current revision#2557

Merged
sentrivana merged 1 commit into
masterfrom
ivana/aws-lambda-function-hashing
Dec 1, 2023
Merged

Hash AWS Lambda test functions based on current revision#2557
sentrivana merged 1 commit into
masterfrom
ivana/aws-lambda-function-hashing

Conversation

@sentrivana

@sentrivana sentrivana commented Dec 1, 2023

Copy link
Copy Markdown
Contributor

We were using the current SDK version for determining whether an AWS Lambda function should be reused, so e.g. on PRs, this would reuse the existing functions instead of creating new ones with any changes from the PR. Changing this to use the current commit instead.

Also, use a 6 character hash instead of 5 characters, just to lower the chance for collisions a bit.

@sentrivana sentrivana self-assigned this Dec 1, 2023
@sentrivana
sentrivana enabled auto-merge (squash) December 1, 2023 12:00

@antonpirker antonpirker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@sentrivana
sentrivana merged commit f9ffe96 into master Dec 1, 2023
@sentrivana
sentrivana deleted the ivana/aws-lambda-function-hashing branch December 1, 2023 12:05
@HansAarneLiblik

Copy link
Copy Markdown

@antonpirker I'm guessing regarding this, we now get these errors in Sentry UI, if we're deploying our staging code for testing / demo purposes (At least - Have not tested with real production code with a bit different conf). These deploy's send errors to sentry, but do not have

image

@sentrivana

sentrivana commented Dec 13, 2023

Copy link
Copy Markdown
Contributor Author

Hey @HansAarneLiblik, fixing that in: #2591

@sentrivana

Copy link
Copy Markdown
Contributor Author

@HansAarneLiblik SDK version 1.39.1 that should fix this is now available -- thanks for reporting!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants