Skip to content
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

[PR #8089/dc38630b backport][3.9] 💅 Propagate error causes via asyncio protocols #8162

Conversation

webknjaz
Copy link
Member

This is a backport of PR #8089 as merged into master (dc38630).

This is supposed to unify setting exceptions on the future objects, allowing to also attach their causes whenever available. It'll make possible for the end-users to see more detailed tracebacks.

It's also supposed to help with tracking down what's happening with #4581.

PR #8089

Co-Authored-By: J. Nick Koston nick@koston.org
Co-Authored-By: Sam Bull aa6bs0@sambull.org
(cherry picked from commit dc38630)

@webknjaz webknjaz self-assigned this Feb 16, 2024
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Feb 16, 2024
…a asyncio protocols

This is supposed to unify setting exceptions on the future objects,
allowing to also attach their causes whenever available. It'll make
possible for the end-users to see more detailed tracebacks.

It's also supposed to help with tracking down what's happening
with aio-libs#4581.

PR aio-libs#8089

Co-Authored-By: J. Nick Koston <nick@koston.org>
Co-Authored-By: Sam Bull <aa6bs0@sambull.org>
(cherry picked from commit dc38630)
@webknjaz webknjaz force-pushed the patchback/backports/3.9/dc38630b168a169139974617d75e176530c91696/pr-8089 branch from 7af2680 to b3a5b6c Compare February 16, 2024 04:17
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (e45da11) 97.29% compared to head (b3a5b6c) 97.37%.

Files Patch % Lines
aiohttp/client_reqrep.py 88.88% 0 Missing and 1 partial ⚠️
aiohttp/web_ws.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              3.9    #8162      +/-   ##
==========================================
+ Coverage   97.29%   97.37%   +0.07%     
==========================================
  Files         108      108              
  Lines       32611    32628      +17     
  Branches     3873     3875       +2     
==========================================
+ Hits        31730    31770      +40     
+ Misses        673      654      -19     
+ Partials      208      204       -4     
Flag Coverage Δ
CI-GHA 97.28% <97.26%> (+0.06%) ⬆️
OS-Linux 96.96% <94.52%> (+0.06%) ⬆️
OS-Windows 94.48% <97.18%> (+0.01%) ⬆️
OS-macOS 96.59% <93.15%> (-0.11%) ⬇️
Py-3.10.11 94.37% <97.18%> (+<0.01%) ⬆️
Py-3.10.13 96.74% <94.52%> (-0.01%) ⬇️
Py-3.11.7 ?
Py-3.11.8 96.47% <94.52%> (-0.01%) ⬇️
Py-3.8.10 94.36% <97.18%> (+0.01%) ⬆️
Py-3.8.18 96.68% <94.52%> (-0.01%) ⬇️
Py-3.9.13 94.36% <97.18%> (+<0.01%) ⬆️
Py-3.9.18 96.73% <94.52%> (+0.03%) ⬆️
Py-pypy7.3.15 96.27% <94.52%> (?)
VM-macos 96.59% <93.15%> (-0.11%) ⬇️
VM-ubuntu 96.96% <94.52%> (+0.06%) ⬆️
VM-windows 94.48% <97.18%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@webknjaz webknjaz merged commit 87e0697 into aio-libs:3.9 Feb 16, 2024
25 of 31 checks passed
@webknjaz webknjaz deleted the patchback/backports/3.9/dc38630b168a169139974617d75e176530c91696/pr-8089 branch April 19, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant