Skip to content

fix test

a220aa9
Select commit
Loading
Failed to load commit list.
Closed

fix(ai): truncate long message histories #4885

fix test
a220aa9
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 15, 2025 in 1s

66.72% (-18.06%) compared to 55e903e

View this Pull Request on Codecov

66.72% (-18.06%) compared to 55e903e

Details

Codecov Report

❌ Patch coverage is 41.73913% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.72%. Comparing base (55e903e) to head (a220aa9).
⚠️ Report is 20 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sentry_sdk/integrations/langchain.py 0.00% 15 Missing ⚠️
sentry_sdk/ai/utils.py 75.00% 12 Missing and 2 partials ⚠️
sentry_sdk/client.py 11.11% 7 Missing and 1 partial ⚠️
sentry_sdk/integrations/langgraph.py 11.11% 8 Missing ⚠️
sentry_sdk/integrations/litellm.py 0.00% 6 Missing ⚠️
sentry_sdk/integrations/openai_agents/utils.py 0.00% 5 Missing ⚠️
sentry_sdk/integrations/anthropic.py 0.00% 4 Missing ⚠️
...k/integrations/openai_agents/spans/invoke_agent.py 0.00% 4 Missing ⚠️
sentry_sdk/scope.py 50.00% 1 Missing and 1 partial ⚠️
sentry_sdk/integrations/openai.py 66.66% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (55e903e) and HEAD (a220aa9). Click for more details.

HEAD has 43 uploads less than BASE
Flag BASE (55e903e) HEAD (a220aa9)
87 44
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4885       +/-   ##
===========================================
- Coverage   84.78%   66.72%   -18.06%     
===========================================
  Files         160      165        +5     
  Lines       16774    17104      +330     
  Branches     2920     3012       +92     
===========================================
- Hits        14221    11413     -2808     
- Misses       1695     5046     +3351     
+ Partials      858      645      -213     
Files with missing lines Coverage Δ
sentry_sdk/integrations/openai.py 5.85% <66.66%> (-78.75%) ⬇️
sentry_sdk/scope.py 87.94% <50.00%> (-0.62%) ⬇️
sentry_sdk/integrations/anthropic.py 8.57% <0.00%> (-75.01%) ⬇️
...k/integrations/openai_agents/spans/invoke_agent.py 0.00% <0.00%> (-87.88%) ⬇️
sentry_sdk/integrations/openai_agents/utils.py 0.00% <0.00%> (-88.10%) ⬇️
sentry_sdk/integrations/litellm.py 0.00% <0.00%> (-77.15%) ⬇️
sentry_sdk/client.py 82.45% <11.11%> (-1.71%) ⬇️
sentry_sdk/integrations/langgraph.py 6.25% <11.11%> (-71.17%) ⬇️
sentry_sdk/ai/utils.py 57.54% <75.00%> (-30.46%) ⬇️
sentry_sdk/integrations/langchain.py 3.71% <0.00%> (-65.34%) ⬇️

... and 61 files with indirect coverage changes