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 #9175/756fae80 backport][3.11] Speed up finding the reason if its unset #9213

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Sep 21, 2024

This is a backport of PR #9175 as merged into master (756fae8).

What do these changes do?

Previously a new enum object had to be created and the reason phase looked up. Since there are a limited number of codes, we can pre-build a dict with all the phases which makes the runtime code much simpler

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

related issue #2779

init request

before
init_request_before

after
init_request_after

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 756fae8)
@bdraco bdraco enabled auto-merge (squash) September 21, 2024 19:48
Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.79%. Comparing base (0408ba6) to head (9ffbe1c).
Report is 514 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.11    #9213   +/-   ##
=======================================
  Coverage   97.79%   97.79%           
=======================================
  Files         108      108           
  Lines       34801    34806    +5     
  Branches     4144     4145    +1     
=======================================
+ Hits        34035    34040    +5     
  Misses        573      573           
  Partials      193      193           
Flag Coverage Δ
CI-GHA 97.69% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.37% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.97% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.07% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.16% <100.00%> (+<0.01%) ⬆️
Py-3.10.15 97.10% <100.00%> (+<0.01%) ⬆️
Py-3.11.10 97.00% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 97.06% <100.00%> (+<0.01%) ⬆️
Py-3.12.6 97.42% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 97.06% <100.00%> (+<0.01%) ⬆️
Py-3.9.20 97.00% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.16 96.60% <100.00%> (+<0.01%) ⬆️
VM-macos 97.07% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.37% <100.00%> (+<0.01%) ⬆️
VM-windows 94.97% <100.00%> (+<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.

@bdraco bdraco merged commit e232f61 into 3.11 Sep 21, 2024
29 of 30 checks passed
@bdraco bdraco deleted the patchback/backports/3.11/756fae80b824bf1606235962bd2b460b63da4da0/pr-9175 branch September 21, 2024 20:17
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.

1 participant