getsentry / sentry-python

The official Python SDK for Sentry.io
https://sentry.io/for/python/
MIT License
1.93k stars 509 forks source link

Fix AWS Lambda tests #3770

Closed antonpirker closed 1 week ago

antonpirker commented 1 week ago

Our AWS Lambda tests rely on outputting our events as JSON to stdout and parsing this output. AWS Lambda limits the amount of stdout it returns.

So by reducing the size of the events we can fix the tests, that where broken by printing to much data to stdout so the output is truncated and can not be parsed into actual JSON structures again.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.33%. Comparing base (417be9f) to head (1d291dc). Report is 1 commits behind head on master.

:white_check_mark: All tests successful. No failed tests found.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3770 +/- ## ========================================== + Coverage 84.26% 84.33% +0.06% ========================================== Files 136 136 Lines 14418 14418 Branches 2429 2429 ========================================== + Hits 12150 12159 +9 + Misses 1516 1507 -9 Partials 752 752 ``` [see 4 files with indirect coverage changes](https://app.codecov.io/gh/getsentry/sentry-python/pull/3770/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry)