-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[ci] make check-docs job compatible with rstcheck 6.x #5388
Conversation
This new version of
I'm going to move this back to "draft". If I can't solve these today, I'll change this PR to putting a ceiling on |
Ok @StrikerRUS could you please enable this branch at readthedocs so we can check? (or add me as an admin there so I don't have to bother you 😛) |
😭 sadly, more CI failures that weren't noticed before because of #5387 . We are getting really unlucky this week 😭 All cuda jobs and several Linux jobs are failing with the following.
traceback (click me)
It looks like those jobs are getting
which hit I'll just pushed 8e4d3a3 pinning to the previous I'll try separately investigating this new issue later tonight or maybe tomorrow (whenever I have time). |
@jameslamb Thanks for working on this. Seems that we can now successfully pass the doc checks. Can we now merge this PR? |
Because this changed the documentation, before we merge I'd like to confirm that the docs built correctly at readthedocs. Unfortunately, I'm not an admin there and don't have permissions to trigger a build for this branch. Right now it looks like only @guolinke @henry0312 and @StrikerRUS are admins on the project (https://readthedocs.org/projects/lightgbm/). I'd like to wait a few more hours to see if one of them responds soon and either enables a build for this branch of gives me permissions to do so. If not, then I think in a few hours we should just merge this to block CI for other PRs, with the understanding that if the docs break we'll need to fix them. |
I think readthedocs only builds the documentation when we push to the master branch. |
It has been standard practice in this project for several years to manually, temporarily enable readthedocs builds for PR branches affecting documentation. For example: #5381 (comment) |
I'll at least try right now with the containerized process documented in https://github.com/microsoft/LightGBM/tree/f94050a4cc94909e10a0064baff11cec795eb250/docs#docker. If the docs build successfully and the files I've changed here look ok, then I think we can merge this, to keep making progress on other PRs. I'll post an update shortly. |
In the dockerized setup, docs look ok! Checked the places that this PR changed. I'm going to merge this, and try to trigger builds of other approved PRs (slowly, so they don't all get stuck due to a backup of CUDA CI jobs).
|
After merging this, the readthedocs build succeeded on And docs at https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html look ok to me. |
Thanks!
…On Thu, Jul 28, 2022, 12:37 AM James Lamb ***@***.***> wrote:
After merging this, the readthedocs build succeeded on master:
https://readthedocs.org/projects/lightgbm/builds/17559437/
And docs at
https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html look ok
to me.
—
Reply to this email directly, view it on GitHub
<#5388 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMNS2YOHFSBEOXN5OVIITVWIFBJANCNFSM54T6STQQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Seems that I'm able to do this! Please share your username (or register account if you don't have one) at RTD. |
Thanks @StrikerRUS ! My username on RTD is |
@jameslamb |
Thanks so much! |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
The
check-docs
CI job has started failing recently, with the following error (click here for example failing build).I believe this is because of some breaking changes included in
rstcheck
6.0.0. Described in these issues:According to https://anaconda.org/conda-forge/rstcheck,
rstcheck
v6.0.0 was just published to conda-forge about 3 days ago.This PR proposes a fix to make LightGBM's CI compatible with that version.
It also proposes putting in a floor of
rstcheck>=6.0.0
so that we'll get a loud, obvious error if a surprising environment solve leads torstcheck
being downgraded in the future.It also makes the following changes to resolve errors raised by the new
rstcheck
version:autosummary
directive in checks.rst
files which didn't have oneconsole
for shell commands on Windows,sh
for shell commands on Mac/Linux, andtext
otherwisepygmentize -L lexers
for a full list of language options (thanks to @westurner for https://stackoverflow.com/a/54721789/3986677!)References
Started looking into this after @svotaw pointed it out in #5299 (comment).
I hadn't noticed it since CI has been broken anyway for the last week because of #5387 . Once #5387, we'll need to merge this next to unblock CI again.