Skip to content

Load AWS Lambda secrets in Github CI - #2153

Merged
antonpirker merged 67 commits into
masterfrom
antonpirker/fix-aws-secrects
Oct 30, 2023
Merged

antonpirker merged 67 commits into
masterfrom
antonpirker/fix-aws-secrects

Conversation

@antonpirker

@antonpirker antonpirker commented Jun 6, 2023 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@sentrivana sentrivana left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread .craft.yml Resolved
Comment thread scripts/aws-deploy-local-layer.sh Resolved
Comment thread tests/integrations/aws_lambda/client.py Resolved
Comment thread tests/integrations/aws_lambda/client.py Resolved
Comment thread tests/integrations/aws_lambda/client.py Resolved
Comment thread tests/integrations/aws_lambda/client.py Resolved
Comment thread tests/integrations/aws_lambda/client.py Resolved
Comment thread aws-lambda-layer-requirements.txt Resolved
@antonpirker
antonpirker merged commit 552017a into master Oct 30, 2023
@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.

3 participants