GitLab SaaS Runner (CI/CD) falsely claims the cache of a Sphinx-doc repository has been restored
I'm facing a trouble with GitLab SaaS Runner (CI/CD) which falsely claims the cache of a Sphinx-doc
repository has been restored during the process of creating the corresponding static Website thanks to GitLab pages. I first asked for help on the dedicated Discourse GitLab CI/CD forum, but people there are pretty sure the cache should be restored and don't understand what's going on.
In order to have a look at this issue, one can consider this minimal Sphinx-doc content:
- with mainly default
Sphinx
settings, - with a minimal
conf.py
config file, - but with many (100) test files in order to highlight the issue I'm facing.
The .gitlab-ci.yml
file contains two consecutive identical make html
instructions. This highlights that, despite a tiny harmless change (only) to a non source file (.gitlab-ci.yml
):
-
the first
make html
instruction, despite a cache claimed to be restored, regenerates all the HTML pages, with the message “building [html]: targets for 95 source files that are out of date
”, -
the second
make html
instruction doesn't generate any of the HTML pages, with the message “building [html]: targets for 0 source files that are out of date
”.
The second make html
instruction behaves just as the first (and only) one when run locally on my computer.