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

Support upcoming Sphinx warning-error changes #1043

Merged
merged 4 commits into from
Oct 6, 2024

Conversation

jdknight
Copy link
Member

@jdknight jdknight commented Oct 6, 2024

A series of retry events when publishing can report certain events as warnings. The prospect Sphinx v8.1.x release reworks how warnings can trigger a fail state and skip_warningiserror becomes deprecated with these changes. This can cause issues for users who wish to run with warnings-as-failure but may experience publishing issues that can be recovered on during a run. To prevent issues, updating a series of warning messages to be informational messages.

Sphinx has also updated it's implementation to no longer generate exceptions on an immediate warning by default [1]. This is desired for this extension's tests so the Sphinx application will enable this capability. The skip_warningiserror call is obsolete. With exception-on-warning enabled, a series of tests need to be updated to operate with a relaxed state; updating.

[1]: sphinx-doc/sphinx#12743

A series of retry events when publishing can report certain events as
warnings. The prospect Sphinx v8.1.x release reworks how warnings can
trigger a fail state and `skip_warningiserror` becomes deprecated with
these changes. This can cause issues for users who wish to run with
warnings-as-failure but may experience publishing issues that can be
recovered on during a run. To prevent issues, updating a series of
warning messages to be informational messages.

Signed-off-by: James Knight <[email protected]>
Updating how named arguments are passed into the Sphinx application
instance built for testing. The changes should result in the same
implementation, but is being made to prepare for an upcoming change for
conditional arguments.

Signed-off-by: James Knight <[email protected]>
When building a mock Sphinx application to prepare a logger outside of
the context of a Sphinx run, include an `_exception_on_warning`
attribute. The upstream Sphinx logging implementation can use this hint
to drive what logging filters and is needed to ensure an expected setup.

Signed-off-by: James Knight <[email protected]>
Sphinx's development branch has updated it's implementation to no longer
generate exceptions on an immediate warning by default [1]. This is
desired for this extension's tests so the Sphinx application will enable
this capability.

In addition, the `skip_warningiserror` call is obsolete. With
exception-on-warning enabled, a series of tests need to be updated to
operate with a relaxed state; updating.

[1]: sphinx-doc/sphinx#12743

Signed-off-by: James Knight <[email protected]>
@jdknight jdknight merged commit 8d2b4df into main Oct 6, 2024
26 checks passed
@jdknight jdknight deleted the support-upcoming-sphinx-warnerr-changes branch October 6, 2024 01:37
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