Skip to content

Temporary/throwaway PR to recheck that the resource warning for DB reuse is still active with current version #131

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

Closed
wants to merge 3 commits into from

Conversation

mbhutton
Copy link
Contributor

Before committing to backing out that connection reuse commit, reassert that the CI test failure is still active with the current version of Python, things.py, and its dependencies.

If this still fails tests in CI, I'll delete/discard this PR. Otherwise, I'll suggest leaving the connection reuse commit in place.

This reverts commit 0ed2f9d.

This addresses a CI test warning: 'ResourceWarning: unclosed database'.
@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.12%. Comparing base (ff54025) to head (cca936f).
Report is 40 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
- Coverage   99.34%   99.12%   -0.22%     
==========================================
  Files           3        3              
  Lines         455      458       +3     
==========================================
+ Hits          452      454       +2     
- Misses          3        4       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mbhutton mbhutton marked this pull request as draft February 22, 2025 22:29
@mbhutton mbhutton force-pushed the temp/do-reuse-db-connection branch 3 times, most recently from 26bbbb4 to b3badf7 Compare February 22, 2025 22:39
@mbhutton mbhutton force-pushed the temp/do-reuse-db-connection branch from b3badf7 to 0b26463 Compare February 22, 2025 22:41
@mbhutton
Copy link
Contributor Author

Closing this PR in favour of a better approach using weakref.finalize

@mbhutton mbhutton closed this Feb 22, 2025
@mbhutton mbhutton deleted the temp/do-reuse-db-connection branch February 22, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants