Repository navigation
fix: preserve async query cancellation on Python 3.10 - #739
karel-rehor merged 3 commits into
Conversation
|
The CI failures exposed an interaction in the added regression test: On Python 3.10 and 3.12, the parser tests plus four subsequent client-construction tests now pass together (31 tests and three subtests); all eight real loopback cancellation/completion scenarios also still pass on each version. The full CircleCI rerun is now green: all 13 checks passed, including the database-backed test jobs for Python 3.7–3.12 and the nightly/without-ciso8601 variants. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #739 +/- ##
==========================================
+ Coverage 90.64% 90.75% +0.11%
==========================================
Files 41 41
Lines 3591 3591
==========================================
+ Hits 3255 3259 +4
+ Misses 336 332 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
500f927 to
386e929
Compare
386e929 to
7f52dd7
Compare
7f52dd7 to
ada6345
Compare
There was a problem hiding this comment.
@Solarboaters Thank you for this contribution!
N.B. As a first time contributor please be aware that there are some nits that Influxdata likes to be sure are covered in PRs. To save a little time I've gone ahead and covered them already...
- All commit messages need to be semantic e.g. see gist
- The Checklist needs to be included in the description. This should have been in the PR template, so I'm not sure why it was not in the original description.
- Bug fixes, feature improvements and new features need to be added to CHANGELOG.md with a link to the PR that introduces them.
- Ideally the CLA should be signed, but with smaller changes like this one, it's not usually a blocker.
The additional check that an Exception actually has the add_note() method is a great help in maintaining stability with earlier python releases.
All tests are passing.
Looks good to me. 🚴 🏁
Cancelling an async CSV query on Python 3.10 raises
AttributeErrorinstead of preservingCancelledError, because exception notes were introduced in Python 3.11. Only add the optional timeout hint when the exception supports it; keep re-raising the original exception and closing the response.Adds a regression covering cancellation, timeout and ordinary parsing errors, checking exception identity, response cleanup, and notes on supported Python versions.
Validation (Linux, baseline 9a0910f):
Fixes #736. Thanks @Rajatendu1 for the detailed reproducer.
Checklist