fix(mypyc): isolate compiled async exception state - #710
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #710 +/- ##
=======================================
Coverage 76.64% 76.65%
=======================================
Files 488 488
Lines 69508 69524 +16
Branches 9613 9615 +2
=======================================
+ Hits 53275 53294 +19
+ Misses 12803 12800 -3
Partials 3430 3430
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
cofin
marked this pull request as ready for review
August 17, 2026 19:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #702.
Compiled async operations could inherit an exception already being handled by the caller, causing a successful query to re-raise that ambient exception. This isolates affected operations in a fresh asyncio task while preserving async-only exception-handler mapping, pass-through, observability, cache, bulk, script, and streaming behavior across compiled adapters.
Also fixes Oracle guarded-import warnings in the documentation build and prepares the 0.61.1 patch release.
Validated with focused exception/smoke tests, Ruff, mypy, a warnings-as-errors Sphinx build, and the 179-module mypyc smoke.