Skip to content

Do not allow failed patching to stop execution#907

Merged
4383 merged 1 commit intoeventlet:masterfrom
jayofdoom:jay/PatchGracefully
Jan 30, 2024
Merged

Do not allow failed patching to stop execution#907
4383 merged 1 commit intoeventlet:masterfrom
jayofdoom:jay/PatchGracefully

Conversation

@jayofdoom
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Before:
image

After:
image

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

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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 jayofdoom force-pushed the jay/PatchGracefully branch from cdf1fa6 to 2f6b114 Compare January 30, 2024 17:25
@jayofdoom
Copy link
Copy Markdown
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.
@jayofdoom jayofdoom force-pushed the jay/PatchGracefully branch from 6540155 to 48b1ad1 Compare January 30, 2024 17:55
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.

2 participants