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

Do not allow failed patching to stop execution #907

Merged
merged 1 commit into from Jan 30, 2024

Conversation

jayofdoom
Copy link
Contributor

There are some cases where monkey_patching cannot always be performed early enough; such as sphinx autodoc importing. To help handle these cases, exceptions during patching are logged and execution is allowed to continue.

This fixed an issue in OpenStack Manila docs generation caused by an upgrade to eventlet 0.35.0.

@jayofdoom jayofdoom force-pushed the jay/PatchGracefully branch 2 times, most recently from 7884b94 to cdf1fa6 Compare January 30, 2024 16:38
@jayofdoom
Copy link
Contributor Author

Before:
image

After:
image

Example from https://zuul.opendev.org/t/openstack/build/63914f9dc9e24e1180eea22bfd92e13c but screenshot posted since that link will bitrot :)

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d467343) 56% compared to head (48b1ad1) 56%.

Additional details and impacted files
@@          Coverage Diff          @@
##           master   #907   +/-   ##
=====================================
  Coverage      56%    56%           
=====================================
  Files          89     89           
  Lines        9717   9722    +5     
  Branches     1810   1810           
=====================================
+ Hits         5457   5462    +5     
  Misses       3885   3885           
  Partials      375    375           
Flag Coverage Δ
ipv6 23% <0%> (-1%) ⬇️
py310asyncio 53% <100%> (+<1%) ⬆️
py310epolls 53% <100%> (+<1%) ⬆️
py310poll 53% <100%> (+<1%) ⬆️
py310selects 53% <100%> (+<1%) ⬆️
py311asyncio 53% <100%> (+<1%) ⬆️
py311epolls 53% <100%> (+<1%) ⬆️
py312asyncio 50% <100%> (+<1%) ⬆️
py312epolls 51% <100%> (+<1%) ⬆️
py37asyncio 50% <100%> (+<1%) ⬆️
py37epolls 51% <100%> (+<1%) ⬆️
py38asyncio 51% <100%> (+<1%) ⬆️
py38epolls 53% <100%> (+<1%) ⬆️
py38openssl 52% <100%> (+<1%) ⬆️
py38poll 53% <100%> (+<1%) ⬆️
py38selects 53% <100%> (+<1%) ⬆️
py39asyncio 51% <100%> (+<1%) ⬆️
py39dnspython1 51% <100%> (-1%) ⬇️
py39epolls 53% <100%> (+<1%) ⬆️
py39poll 53% <100%> (+<1%) ⬆️
py39selects 53% <100%> (+<1%) ⬆️

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.

Copy link
Member

@4383 4383 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jayofdoom
Copy link
Contributor Author

Pushed something that should make the coverage job a little happier :)

@jayofdoom jayofdoom force-pushed the jay/PatchGracefully branch 2 times, most recently from f231d0f to 6540155 Compare January 30, 2024 17:33
There are some cases where monkey_patching cannot always be performed
early enough; such as sphinx autodoc importing. To help handle these
cases, exceptions during patching are logged and execution is allowed
to continue.

This fixed an issue in OpenStack Manila docs generation caused by an
upgrade to eventlet 0.35.0.
@4383 4383 merged commit 3f8c9e4 into eventlet:master Jan 30, 2024
27 checks passed
@4383 4383 mentioned this pull request Jan 30, 2024
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.

None yet

2 participants