-
Notifications
You must be signed in to change notification settings - Fork 2k
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
continuous integration: resolve docutils installation step build failures #11331
continuous integration: resolve docutils installation step build failures #11331
Conversation
… to main unit test workflow
…en warnings about pkg_resources deprecation are encountered during docutils dependency installation
…en any deprecation is encountered during docutils dependency installation This uses a more-permissive check than was originally introduced in 671bc0e (ignoring pkg_resources deprecation warnings). Commits with 671bc0e continue to fail with: DeprecationWarning: Deprecated call to ``pkg_resources.declare_namespace('sphinxcontrib')``
Lowering the severity of the specific |
Instead of suppressing some warnings as errors, why not:
|
Thanks @picnixz - reasonable suggestions. Replying inline:
This doesn't appear to be a bug/problem with
That's worth more consideration, yep. I attempted a precise, single-message filter in 671bc0e, but it turns out that there was a second deprecation warning (also
Perhaps it would be better to provide filters for both of those messages. I did briefly consider a message filter on the single-word string |
…-fail when any deprecation is encountered during docutils dependency installation" This reverts commit c0c428e.
…everity of all DeprecationWarnings during docutils (non-dev) installation, apply two message filters - one each for the warnings encountered so far
Ah, an important detail from the documentation explaining why the message-filtering isn't working as-expected as of 09984f4:
|
@jayaddison trying out at jfbu@b95fc0e (it worked in my local testing). However I escaped the Which was bad. |
@jayaddison Can you cherry-pick jfbu@6bbe3f6 it lets CI pass |
…g-message filter-pattern for non-dev docutils installation must match from the start of the warning text Fixup for commit a49ec48.
Ah, thanks @jfbu! I was experimenting with something similar. Since yours is proven working, let's go with that :) |
(cherry picked from commit 6bbe3f6)
And for completeness to explain why 40e547a didn't work: The documentation mentions that regular expressions are supported during some warning filtering:
... but that excludes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
I hesitated about the added comment as we have very few in such files and I am not sure about our policy here about long lines, but well, this does not undergo linting! And it can always be adjusted later.
Thanks for contribution, I will merge this now because this helps other contributed PRs not end up receiving unjust and unfair red crosses 😄 |
Thanks again @jfbu. About that comment line: My hope is that we can resolve the |
Thanks for the documenting of the rationale behing the comment and other choices. I streamlined the commit message and added hard linebreaks out of habit. Hope ok with you. (I did not do a great job as I forgot entirely about first one of four items for linewrap and the title...) |
Feature or Bugfix
Purpose
Detail
pip
's vendored libraries have begun warning about the deprecation ofpkg_resources
this specific warningdeprecation warnings to occur and be reported-but-not-considered-failure.Relates