Skip to content

Treat warnings as errors in doc builds + MG ANNs Python API doc update#1350

Merged
rapids-bot[bot] merged 6 commits intorapidsai:branch-25.10from
viclafargue:update-mg-python-doc
Sep 29, 2025
Merged

Treat warnings as errors in doc builds + MG ANNs Python API doc update#1350
rapids-bot[bot] merged 6 commits intorapidsai:branch-25.10from
viclafargue:update-mg-python-doc

Conversation

@viclafargue
Copy link
Copy Markdown
Contributor

@viclafargue viclafargue commented Sep 22, 2025

This PR :

  • updates doc build to treat warnings as errors
  • fixes an issue in the MG ANNs Python API doc
  • fixes several doc issues that resulted in warnings

Closes #1382

@viclafargue viclafargue requested a review from a team as a code owner September 22, 2025 09:47
@cjnolet cjnolet added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 23, 2025
@cjnolet cjnolet moved this from Todo to In Progress in Unstructured Data Processing Sep 23, 2025
Copy link
Copy Markdown
Contributor

@benfred benfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me -

I tried to make the docs build fail on warnings w/ #1301 so that these kind of errors wouldn't happen in the future. I think I just updated ./build.sh in that PR - and it looks like I also needed to update ci\build_docs.sh in the same way ( sphinx-build -W) to get CI to treat docs warnings as errors.

Can we also change the ci/docs_build.sh to enable warnings as errors in this PR, so that this kind of error won't happen again in the future?

@viclafargue viclafargue requested review from a team as code owners September 25, 2025 08:54
@viclafargue viclafargue requested a review from bdice September 25, 2025 08:54
Copy link
Copy Markdown
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one suggestion for your consideration.

Please also update the PR title and add a short description, so others finding this from search and the git history can understand what its purpose was.

I think it is something like "treat warnings as errors in doc builds".

Approving so you don't need another review from me to merge, but please @ me if you have any questions.

Comment thread ci/build_docs.sh Outdated
rapids-logger "Build Python docs"
pushd docs
sphinx-build -b dirhtml source _html
sphinx-build -W -b dirhtml source _html
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider putting this into the Makefile and using make dirhtml in any scripts where you want to build the docs:

SPHINXOPTS =

That way, the settings would apply still if you switched from dirhtml to html, and you wouldn't have to keep this in sync with this other use:

cuvs/build.sh

Line 520 in c07ab70

sphinx-build -W -b html source _html

See how cudf does this for an example:

https://github.com/rapidsai/cudf/blob/1504ddc2ebb39b3be0847e680b8d76e8cc37a7a1/docs/cudf/Makefile#L5

https://github.com/rapidsai/cudf/blob/1504ddc2ebb39b3be0847e680b8d76e8cc37a7a1/ci/build_docs.sh#L56

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viclafargue do you mind creating a Github issue for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I created #1382.

@viclafargue viclafargue requested a review from a team as a code owner September 26, 2025 08:39
@viclafargue viclafargue changed the title Update to MG Python API doc Treat warnings as errors in doc builds + MG ANNs Python API doc update Sep 26, 2025
Copy link
Copy Markdown
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! This looks like what I was expecting, and the preview at https://downloads.rapids.ai/ci/cuvs/pull-request/1350/750f577/docs/cuvs/html/ all looks OK to me.

@jameslamb
Copy link
Copy Markdown
Member

One Java test failed:

Error:  Failures: 
Error:    CagraRandomizedIT.testResultsTopKWithRandomValues:55->tmpResultsTopKWithRandomValues:181->CuVSTestCase.compareResults:114 Not found in expected list: 7106

(build link)

That's unlikely to be related to these changes, and I've seen that test be flaky before (#1326 (comment)), so I re-ran that job for you. Hopefully we'll see it pass.

@cjnolet
Copy link
Copy Markdown
Member

cjnolet commented Sep 29, 2025

/merge

@rapids-bot rapids-bot Bot merged commit fdb8bfb into rapidsai:branch-25.10 Sep 29, 2025
162 of 164 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Unstructured Data Processing Sep 29, 2025
enp1s0 pushed a commit to enp1s0/cuvs that referenced this pull request Oct 22, 2025
rapidsai#1350)

This PR :
- updates doc build to treat warnings as errors
- fixes an issue in the MG ANNs Python API doc
- fixes several doc issues that resulted in warnings

Closes rapidsai#1382

Authors:
  - Victor Lafargue (https://github.com/viclafargue)

Approvers:
  - Ben Frederickson (https://github.com/benfred)
  - James Lamb (https://github.com/jameslamb)
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#1350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEA] Treat warnings as errors in doc builds

4 participants