octopus: admin/doc-requirements: bump sphinx to 4.4.0#45972
octopus: admin/doc-requirements: bump sphinx to 4.4.0#45972ljflores merged 8 commits intoceph:octopusfrom
Conversation
bump sphinx to latest stable. to address following build failure ERROR: sphinx-autodoc-typehints 1.17.0 has requirement Sphinx>=4, but you'll have sphinx 3.5.4 which is incompatible. ERROR: sphinx-substitution-extensions 2022.2.16 has requirement sphinx>=4.0.0, but you'll have sphinx 3.5.4 which is incompatible. also bump bump sphinx-rtd-theme, otherwise we'd have following build failure: ERROR: sphinx-rtd-theme 0.5.2 has requirement docutils<0.17, but you'll have docutils 0.17.1 which is incompatible. Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit 0a5fab5) Conflicts: admin/doc-requirements.txt - `sphinx_rtd_theme` was not present in Octopus
Looks like this backport is dependent on other changes, such as 1704216. Currently looking into the chronology of changes and seeing what else needs to happen to help the docs check pass. |
|
readthedocs is still failing because of this: But I think that is a separate issue. |
|
jenkins test make check |
|
@idryomov tagging you in this in case you have any opinions. |
Yeah, it is being addressed in #45839. |
|
@tchaikov thanks, I'll address that unnecessary import. |
this allows the "rpc"ized methods of OrchestratorClientMixin to have the docstring defined by the original methods. Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit d0db2ae) Conflicts: src/pybind/mgr/orchestrator/_interface.py - Removed some typing imports that were not present in Octopus
this helps to silence the warning from sphinx, like src/pybind/mgr/orchestrator/_interface.py:docstring of orchestrator._interface.Orchestrator.remove_osds:9: WARNING: Field list ends without a blank line; unexpected unindent. Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit d9b8e38) Conflicts: src/pybind/mgr/orchestrator/_interface.py - `:param zap:` did not exist in Octopus; removed this from the param list.
breathe calls doxygen for extracting/generating docs from code. while doxygen complains at seeing undocumented fields/func. these warnings could fail the sphinx-build command, if it takes warnings as errors. in this change, these warnings are silenced. Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit 8891d65)
so it can be rendered by sphinx in a better way. Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit ba3ccee)
add an empty line before a doctest block would help sphinx to tell where the session starts. see also https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#doctest-blocks Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit 8685fff)
otherwise sphinx takes "Typical use" and the following line as a field. see also https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#field-lists Signed-off-by: Kefu Chai <tchaikov@gmail.com> (cherry picked from commit 05798f0)
to address following warning: jenkins-build/build/workspace/ceph-pr-docs/doc/conf.py:102: RemovedInSphinx40Warning: The app.add_javascript() is deprecated. Please use app.add_js_file() instead. Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 1704216)
a86235b to
7f781e2
Compare
|
@yuriw hey Yuri, could you please prioritize your test to include this PR in your next batch. it is blocking quite a few octopus backports. |
|
jenkins retest this please |
|
I'm getting started on testing this. Here is the shaman build link if someone gets to it before I do: https://shaman.ceph.com/builds/ceph/wip-55077-octopus/ I'm thinking a regular rados suite run will work for this, with orchestrator approval. Rados run: http://pulpito.front.sepia.ceph.com/lflores-2022-05-04_18:59:38-rados-wip-55077-octopus-distro-default-smithi/ |
Summarized RADOS failures. Most failures in the initial run were due to fixes that have not yet been backported to Octopus. The rerun was almost all green, except for one job that failed because of trackers listed below. With Orch approval of the failures, this will be okay to merge. @adk3798: Failures, unrelated: Details: |
|
Orch approved. |
backport tracker: https://tracker.ceph.com/issues/55077
backport of #45266 (and 1704216)
parent tracker: https://tracker.ceph.com/issues/55050
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh
Note: 1704216 needed to be included in this backport since
add_javascript()is depreciated in Sphinx 4.4.0.