-
Notifications
You must be signed in to change notification settings - Fork 28
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
Stale header and footer for some documentation variants/versions #342
Comments
For https://crate-jdbc.readthedocs.io/en/2.5/, I just wiped the build environment on RTD and invoked a rebuild. However, this didn't change anything. Maybe a stale Fastly cache is also involved here in any way? /cc @WalBeh |
I think Fastly could only be the cause if you checked the crate.io domain, but if it's directly on readthedocs.io, it must be something else. |
@amotl you need to make sure that the corresponding release branches are configuring sphinx correctly. older configurations may be pinning older versions of the theme. this is usually the cause. to fix this, you need to backport changes to the release branch to bring the sphinx config up-to-date NOTE! sometimes this breaks stuff. bcus pushing to an older release branch will re-trigger the CI tests for that branch. in some cases, this causes problems because newer dependencies that get pulled in break the tests. then to get those tests to pass, we need to do a bunch of work on the CI or the code. this isn't always desirable, esp if the release is quite old and we're no longer really maintaining it (if the release is old enough for us to not want to fix broken code tests, it is a good candidate for us removing as an active doc version imo - but you need to discuss this with the release manager for the project) speak to @seut for more guidance. he's the person I've annoyed the most 😅 in the past by breaking PHP tests on old versions because I backported changes to the sphinx config |
Hi Naomi, this sounds complicated. Do you see an easy way to rebuild older documentation variants with the current infrastructure/theme? Edit:
Ah all right. Will try this! With kind regards, |
Wouldn't |
to debug stuff like this, head to the RTD builds page: https://readthedocs.org/projects/crate-jdbc/builds/ then, find the latest build corresponding to the version that is broken. for 2.6 (at the time of writing), that's: https://readthedocs.org/projects/crate-jdbc/builds/13877032/ then, select view raw: https://readthedocs.org/api/v2/build/13877032.txt I am a little surprised to see the build downloading so many versions of the theme package:
shortly after that, you can see which version it settled on:
so, 0.10.0 there must be some interactions between dependencies I don't understand going on here which causes Pip to satisfy the requirement with this version a good first step at debugging issues like this is to reset the build environment manually. go here: https://readthedocs.org/projects/crate-jdbc/versions/ select Edit next to 2.6 select wipe on the subsequent screen. then confirm the operation now, go back to the builds tab: https://readthedocs.org/projects/crate-jdbc/builds/ select "2.6" from the drop-down on the right, and then select Build Version you'll get taken to a new build page. for me, it was: https://readthedocs.org/projects/crate-jdbc/builds/13896577/ wait for this to complete, then select view raw again: https://readthedocs.org/api/v2/build/13896577.txt I get the same result: version 0.10.0 compare this to the raw build logs for the "latest" docs: https://readthedocs.org/api/v2/build/13877030.txt this seems like a clue:
end result:
differences:
the thing that stands out to me: the two builds are using different versions of Sphinx. the fact that the "latest" build doesn't mention installing Sphinx indicates to me that the version of Sphinx the build is using comes pre-installed in the environment by RTD. conversely, the "2.6" build is forcing a particular Sphinx version compare the
the only difference is the version of Sphinx that has been pinned:
that change was made here: my proposed solution is to cherry-pick this commit to both older release lines. I staged some PRs to do this: if the Travis checks pass, then we're good to go. once they're merged and the docs get rebuilt, I believe this issue will be resolved. if they don't pass, then there is potentially some breakage with the driver dependencies. and we'll have to discuss what to do we could probably skip a bunch of these steps in the future if we modified the theme so that it wrote an HTML comment to every page saying what version of the theme it was used would be a quick way to check if the theme is bust or the build is bust |
1.14 seems to have been unscathed because it is old enough to have never received a change that pins Sphinx to a specific version. see https://github.com/crate/crate-jdbc/blob/1.14/docs/requirements.txt |
this line in the theme https://github.com/crate/crate-docs-theme/blob/5302edf75046895d0cb8c49439ed2e00f8eaf725/setup.py#L60 basically, Pip sees |
@amotl I manually kicked off the builds after merging my backports. I inspected the raw build output and both now use I created an off-shoot issue: crate/crate-docs-theme#294 |
Hi Naomi, I believe everything is much better now. While the footer on https://crate-jdbc.readthedocs.io/en/1.14/ still looks slightly different (line-height), I believe it is fine to close this issue because, apparently, all outdated versions I referenced in my OP now at least have content-wise updated footers. Thank you! With kind regards, P.S.: If you still see anything to be done here, feel free to reopen, @msbt. |
Hi there,
@msbt made me aware that some build variants of the documentation show up with outdated header and footer components. Thank you!
The header and footer should be rendered properly by using ESI.
When I take a closer look at https://readthedocs.org/projects/crate-jdbc/versions/, it seems like for those two variants, the header and footer seem to be fine:
However, for those two variants, header and footer are stale:
With kind regards,
Andreas.
/cc @norosa
The text was updated successfully, but these errors were encountered: