Skip to content
Merged
Show file tree
Hide file tree
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 Jan 22, 2025
7bb1a4a
Full working example with layer and sentry server collecting envelopes
antonpirker Jan 22, 2025
01ff491
Cleanup
antonpirker Jan 22, 2025
981562d
Using the actual Sentry Layer
antonpirker Jan 22, 2025
2d4e47d
Cleanup
antonpirker Jan 22, 2025
fdd627c
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Jan 27, 2025
e1d0c79
Clearing envelopes between tests
antonpirker Jan 27, 2025
11d7c1b
Moved some stuff into utils file
antonpirker Jan 27, 2025
84ecd5d
Removed unnecessary region parameter
antonpirker Jan 27, 2025
4ea57a0
Removed unnecessary region parameter
antonpirker Jan 27, 2025
b34a611
some work on tests
antonpirker Feb 17, 2025
9e357ef
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Feb 17, 2025
49982a9
Making AWS Lambda invokation work reliabily
antonpirker Feb 18, 2025
3c540a5
Cleanup and some basic tests
antonpirker Feb 18, 2025
a57575a
Added init error test
antonpirker Feb 18, 2025
aad4396
Make directory name and function name the same
antonpirker Feb 18, 2025
a2e3291
Run tests in local python version
antonpirker Feb 18, 2025
02d8ea2
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Feb 18, 2025
00c1a51
Updated tox config for aws lambda
antonpirker Feb 18, 2025
507a121
Added timetout test
antonpirker Feb 18, 2025
9e7e251
Add test for non dict events
antonpirker Feb 18, 2025
a0a9fdd
Porting some tests
antonpirker Feb 18, 2025
d9226d6
Some clenaup
antonpirker Feb 18, 2025
afc3bf0
More cleanup
antonpirker Feb 18, 2025
0587975
linting
antonpirker Feb 18, 2025
888e943
Fixed requirements
antonpirker Feb 18, 2025
4998927
run the correct tests in ci
antonpirker Feb 18, 2025
3e3ca95
Renamed so the tests are not run
antonpirker Feb 19, 2025
46a080f
Add region
antonpirker Feb 19, 2025
ce9e90f
Try to make it work in CI
antonpirker Feb 19, 2025
2576948
Make it work in CI and locally
antonpirker Feb 19, 2025
d12abf5
Cleanup
antonpirker Feb 19, 2025
003dd4d
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Feb 19, 2025
a89b3c4
nicer diffs for other pr
antonpirker Feb 19, 2025
4d206a8
Update test mastrix
antonpirker Feb 19, 2025
d742102
cleanup
antonpirker Feb 19, 2025
1fa3a6f
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Feb 19, 2025
2b86d05
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Feb 24, 2025
38fa8c0
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Feb 24, 2025
bfa0312
Update tox setup for AWS Lambda integration (#4076)
antonpirker Feb 24, 2025
2271253
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Mar 3, 2025
8cbdfa8
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Mar 10, 2025
2e75f79
Added tests for testing correct sampling_context given to start_trans…
antonpirker Mar 10, 2025
e815a6e
Merge branch 'master' into antonpirker/better-aws-tests
antonpirker Mar 12, 2025
a858cdb
More tests
antonpirker Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/test-integrations-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ on:
# XXX: We are using `pull_request_target` instead of `pull_request` because we want
# this to run on forks with access to the secrets necessary to run the test suite.
# Prefer to use `pull_request` when possible.
pull_request_target:
types: [labeled, opened, reopened, synchronize]
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
Expand Down Expand Up @@ -61,7 +60,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
python-version: ["3.8","3.9","3.11","3.13"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ relay
pip-wheel-metadata
.mypy_cache
.vscode/

# for running AWS Lambda tests using AWS SAM
sam.template.yaml
1 change: 1 addition & 0 deletions requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ socksio
httpcore[http2]
setuptools
Brotli
docker
7 changes: 6 additions & 1 deletion scripts/populate_tox/tox.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ envlist =
# The aws_lambda tests deploy to the real AWS and have their own
# matrix of Python versions to run the test lambda function in.
# see `lambda_runtime` fixture in tests/integrations/aws_lambda.py
{py3.9}-aws_lambda
{py3.8,py3.9,py3.11,py3.13}-aws_lambda

# Beam
{py3.7}-beam-v{2.12}
Expand Down Expand Up @@ -250,7 +250,12 @@ deps =
asyncpg: pytest-asyncio

# AWS Lambda
aws_lambda: aws-cdk-lib
aws_lambda: aws-sam-cli
aws_lambda: boto3
aws_lambda: fastapi
aws_lambda: requests
aws_lambda: uvicorn

# Beam
beam-v2.12: apache-beam~=2.12.0
Expand Down
2 changes: 2 additions & 0 deletions tests/integrations/aws_lambda/__init__.py
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")
Loading
Loading