Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

This PR provides a minimal reproduction for issue #4657, where the clickhouse-driver integration prematurely consumes generators when send_default_pii is enabled.

The reproduction includes:

  • simple_reproduce.py: A clear demonstration of the generator consumption.
  • reproduce_issue.py: A comprehensive script showing behavior with and without Sentry.
  • test_generator_issue.py: A pytest-compatible test case to verify the fix.
  • README.md: Instructions and details on the bug's location.

Thank you for contributing to sentry-python! Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval.


Open in Cursor Open in Web

Learn more about Cursor Agents

@antonpirker
Copy link
Contributor

@szokeasaurusrex can this PR be closed?

@szokeasaurusrex
Copy link
Member Author

Closed, thanks @antonpirker!

@codecov
Copy link

codecov bot commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.03%. Comparing base (84adbb7) to head (eee390f).
⚠️ Report is 72 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4662      +/-   ##
==========================================
- Coverage   85.09%   85.03%   -0.06%     
==========================================
  Files         156      156              
  Lines       15797    15797              
  Branches     2671     2671              
==========================================
- Hits        13442    13433       -9     
- Misses       1578     1589      +11     
+ Partials      777      775       -2     

see 5 files with indirect coverage changes

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.

4 participants