You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are not able to warmstart a docbuild from a new source directory (SAGE_ROOT).
To reproduce: After a docbuild in some OLD_SAGE_ROOT (which installs documentation in OLD_SAGE_ROOT/local, create a new worktree or clone of the Sage source and configure it using configure --prefix=OLD_SAGE_ROOT/local. Then the docbuild in the new source tree will show:
[sagemath_doc_html-none] make doc-inventory--reference-references
[sagemath_doc_html-none] cd /workspace/sage && ./sage --docbuild --no-pdf-links reference/references inventory
[sagemath_doc_html-none] [reference] loading pickled environment... failed
[sagemath_doc_html-none] [reference] failed: source directory has changed
(see also comment in docker/.gitpod.Dockerfile)
This blocks fast incremental builds of the documentation for Gitpod (see #33113) and the per-ticket documentation build (added in #31415).
This code in sphinx/environment/__init__.py is relevant:
defsetup(self, app: "Sphinx") ->None:
"""Set up BuildEnvironment object."""ifself.versionandself.version!=app.registry.get_envversion(app):
raiseBuildEnvironmentError(__('build environment version not current'))
elifself.srcdirandself.srcdir!=app.srcdir:
raiseBuildEnvironmentError(__('source directory has changed'))
ifself.project:
app.project.restore(self.project)
Sphinx rebuilds everything when it detected changes in "environment", in this case, the path to the source doc files.
From #33103 comment:101:
Currently we are not able to warmstart a docbuild from a new source directory (SAGE_ROOT).
To reproduce: After a docbuild in some
OLD_SAGE_ROOT
(which installs documentation inOLD_SAGE_ROOT/local
, create a new worktree or clone of the Sage source and configure it usingconfigure --prefix=OLD_SAGE_ROOT/local
. Then the docbuild in the new source tree will show:(see also comment in
docker/.gitpod.Dockerfile
)This blocks fast incremental builds of the documentation for Gitpod (see #33113) and the per-ticket documentation build (added in #31415).
CC: @tobiasdiez @jhpalmieri @kwankyu
Component: build
Issue created by migration from https://trac.sagemath.org/ticket/33354
The text was updated successfully, but these errors were encountered: