Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load AWS Lambda secrets in Github CI #2153

Merged
merged 67 commits into from
Oct 30, 2023
Merged

Conversation

antonpirker
Copy link
Member

@antonpirker antonpirker commented Jun 6, 2023

Make sure our AWS Lambda test setup is correct and the tests work as expected and also in a timely manner.

We run our test in AWS Lambda and then parse the log output to see what events/envelopes where sent. Because Lambda truncates this log output to 4kb, I had to change the tests to make the events/envelopes smaller in size to get the whole event/envelop in the log output.

When the AWS env vars where not set, the tests where skipped but it looked like they where successful. I made them now fail loudly in that case, so we see if they do not run.

Also made the code easier to comprehend.

Somehow related docs PR: getsentry/sentry-docs#8246

If this has been merged AND released, this PR in sentry can be merged: getsentry/sentry#58321

@sentrivana sentrivana changed the title Fix AWS Lambda secrects in Github CI Fix AWS Lambda secrets in Github CI Jun 7, 2023
@antonpirker antonpirker changed the title Fix AWS Lambda secrets in Github CI Load AWS Lambda secrets in Github CI Jun 7, 2023
@github-actions
Copy link

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@antonpirker antonpirker marked this pull request as ready for review October 24, 2023 15:06
Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Awesome that you've fixed this. 🎖️
Left a few small comments.

.craft.yml Outdated Show resolved Hide resolved
scripts/aws-deploy-local-layer.sh Outdated Show resolved Hide resolved
tests/integrations/aws_lambda/client.py Outdated Show resolved Hide resolved
tests/integrations/aws_lambda/client.py Outdated Show resolved Hide resolved
tests/integrations/aws_lambda/client.py Outdated Show resolved Hide resolved
tests/integrations/aws_lambda/client.py Outdated Show resolved Hide resolved
tests/integrations/aws_lambda/client.py Show resolved Hide resolved
@antonpirker antonpirker merged commit 552017a into master Oct 30, 2023
284 checks passed
@antonpirker antonpirker deleted the antonpirker/fix-aws-secrects branch October 30, 2023 13:20
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.

None yet

3 participants