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

Sphinx job failing in CI due to duplication of sympy.sets.sets #25541

Open
brocksam opened this issue Aug 17, 2023 · 12 comments · Fixed by #25542
Open

Sphinx job failing in CI due to duplication of sympy.sets.sets #25541

brocksam opened this issue Aug 17, 2023 · 12 comments · Fixed by #25542
Labels
CI GitHub Actions Related to the GitHub Actions CI setup. Do not use for test failures unless they are GHA specific.

Comments

@brocksam
Copy link
Contributor

All Sphinx jobs are failing with the error message /home/runner/work/sympy/sympy/doc/src/modules/sets.rst:29: WARNING: duplicate object description of sympy.sets.sets, other instance in modules/sets, use :no-index: for one of them

@brocksam brocksam added GitHub Actions Related to the GitHub Actions CI setup. Do not use for test failures unless they are GHA specific. CI labels Aug 17, 2023
@moorepants
Copy link
Member

There may also be something breaking with the furo them and the new sphinx release:

Extension error (furo):
Handler <function _html_page_context at 0x7fa40d613160> for event 'html-page-context' threw an exception (exception: This documentation is not using `furo.css` as the stylesheet. If you have set `html_style` in your conf.py file, remove it.)
make[1]: *** [Makefile:69: _html] Error 2
The docs build failed with the following errors:
/home/moorepants/src/sympy/doc/src/modules/sets.rst:29: WARNING: duplicate object description of sympy.sets.sets, other instance in modules/sets, use :no-index: for one of them

Extension error (furo):
Handler <function _html_page_context at 0x7fa40d613160> for event 'html-page-context' threw an exception (exception: This documentation is not using `furo.css` as the stylesheet. If you have set `html_style` in your conf.py file, remove it.)

@moorepants
Copy link
Member

If I downgrade sphinx to the version 7.1.2 then the build passes (version 7.2.0 was released today).

@oscarbenjamin
Copy link
Contributor

The error message says to use :no-index: but :noindex: is used:

.. module:: sympy.sets.sets
:noindex:

There are a few places using :noindex: around but I don't see any :no-index:.

@oscarbenjamin
Copy link
Contributor

The other error message says

If you have set `html_style` in your conf.py file, remove it.

I guess that is referring to this which is commented out:

# html_style = 'default.css'

Or possibly this which is not commented out:
html_style = 'default.css'

@oscarbenjamin
Copy link
Contributor

Looks like :noindex: was renamed:

sphinx-doc/sphinx#11533

These all need to be changed as well:

$ git grep ':noindex:'
doc/src/explanation/gotchas.rst:   :noindex:
doc/src/modules/assumptions/index.rst:   :noindex:
doc/src/modules/assumptions/index.rst:   :noindex:
doc/src/modules/assumptions/index.rst:   :noindex:
doc/src/modules/functions/index.rst:   :noindex:
doc/src/modules/matrices/dense.rst:   :noindex:
doc/src/modules/polys/agca.rst:   :noindex:
doc/src/modules/polys/agca.rst:   :noindex:
doc/src/modules/polys/agca.rst:   :noindex:
doc/src/modules/rewriting.rst:   :noindex:

@oscarbenjamin
Copy link
Contributor

The furo problem is something else. I tried commenting out the html_style line but that did not fix the problem.

@oscarbenjamin
Copy link
Contributor

Looks like there is an issue with furo:

pradyunsg/furo#693

@moorepants
Copy link
Member

Do you want to merge this for now #25542? Or can we merge other PRs even though the Sphinx test is failing.

@oscarbenjamin
Copy link
Contributor

I've pushed the :noindex: fix to the PR as well so at least we can get that fixed now. I think it is a Sphinx bug because according to sphinx-doc/sphinx#11533 :noindex: should still work.

Actually though I have just realised that can't work because previous versions of sphinx would not work with that change...

@oscarbenjamin
Copy link
Contributor

The furo bug is just an upstream bug so I guess we pinning the version is all we can do for now.

@moorepants
Copy link
Member

I'll leave this open.

@moorepants
Copy link
Member

Looks like sphinx just released a bug fix: https://www.sphinx-doc.org/en/master/changes.html#release-7-2-2-released-aug-17-2023 some things seem to be related to the errors we are seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI GitHub Actions Related to the GitHub Actions CI setup. Do not use for test failures unless they are GHA specific.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants