-
Notifications
You must be signed in to change notification settings - Fork 571
Run AWS Lambda tests locally #3988
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
Merged
Merged
Changes from 39 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
751f1fe
First running dummy function
antonpirker 7bb1a4a
Full working example with layer and sentry server collecting envelopes
antonpirker 01ff491
Cleanup
antonpirker 981562d
Using the actual Sentry Layer
antonpirker 2d4e47d
Cleanup
antonpirker fdd627c
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker e1d0c79
Clearing envelopes between tests
antonpirker 11d7c1b
Moved some stuff into utils file
antonpirker 84ecd5d
Removed unnecessary region parameter
antonpirker 4ea57a0
Removed unnecessary region parameter
antonpirker b34a611
some work on tests
antonpirker 9e357ef
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker 49982a9
Making AWS Lambda invokation work reliabily
antonpirker 3c540a5
Cleanup and some basic tests
antonpirker a57575a
Added init error test
antonpirker aad4396
Make directory name and function name the same
antonpirker a2e3291
Run tests in local python version
antonpirker 02d8ea2
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker 00c1a51
Updated tox config for aws lambda
antonpirker 507a121
Added timetout test
antonpirker 9e7e251
Add test for non dict events
antonpirker a0a9fdd
Porting some tests
antonpirker d9226d6
Some clenaup
antonpirker afc3bf0
More cleanup
antonpirker 0587975
linting
antonpirker 888e943
Fixed requirements
antonpirker 4998927
run the correct tests in ci
antonpirker 3e3ca95
Renamed so the tests are not run
antonpirker 46a080f
Add region
antonpirker ce9e90f
Try to make it work in CI
antonpirker 2576948
Make it work in CI and locally
antonpirker d12abf5
Cleanup
antonpirker 003dd4d
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker a89b3c4
nicer diffs for other pr
antonpirker 4d206a8
Update test mastrix
antonpirker d742102
cleanup
antonpirker 1fa3a6f
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker 2b86d05
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker 38fa8c0
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker bfa0312
Update tox setup for AWS Lambda integration (#4076)
antonpirker 2271253
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker 8cbdfa8
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker 2e75f79
Added tests for testing correct sampling_context given to start_trans…
antonpirker e815a6e
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker a858cdb
More tests
antonpirker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,6 @@ relay | |
| pip-wheel-metadata | ||
| .mypy_cache | ||
| .vscode/ | ||
|
|
||
| # for running AWS Lambda tests using AWS SAM | ||
| sam.template.yaml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,4 @@ socksio | |
| httpcore[http2] | ||
| setuptools | ||
| Brotli | ||
| docker | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| import pytest | ||
|
|
||
| pytest.importorskip("boto3") | ||
| pytest.importorskip("fastapi") | ||
| pytest.importorskip("uvicorn") |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.