Repository navigation
Remove stale Sphinx doctrees cache from Python docs CI job - #89
Merged
Merged
Conversation
Co-authored-by: MLopez-Ibanez <2620021+MLopez-Ibanez@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job for documentation build
Remove stale Sphinx doctrees cache from Python docs CI job
Oct 26, 2026
Co-authored-by: MLopez-Ibanez <2620021+MLopez-Ibanez@users.noreply.github.com>
… conf.py Co-authored-by: MLopez-Ibanez <2620021+MLopez-Ibanez@users.noreply.github.com>
Co-authored-by: MLopez-Ibanez <2620021+MLopez-Ibanez@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #89 +/- ##
==========================================
+ Coverage 77.93% 78.41% +0.48%
==========================================
Files 70 70
Lines 7590 7590
Branches 1477 1477
==========================================
+ Hits 5915 5952 +37
+ Misses 1306 1268 -38
- Partials 369 370 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Build documentation (3.12, ubuntu-latest)" job failed on the
crossover-operatorsPR because Sphinx runs with warnings as errors. The log showed 52 warnings, in two groups:bench-ndom, with the "other instance" reported inindex.rst, even thoughindex.rstno longer includesbenchmarks.inc.rston that commit.*_crossoverfunctions, even though they are exported frommoocore/__init__.pyand_crossover.pywas built into the installed package.The
build-docjob restorespython/doc/_build/doctrees/fromactions/cache. The cache key hashes onlyconf.py, andrestore-keys: intersphinx-lets any older cache match. The restored Sphinx environment can therefore predate the current sources, which fits both groups of warnings..github/workflows/python.yml: removed the "Cache intersphinx inventories" step, so the docs build always starts from a clean doctree. The cost is that intersphinx inventories are re-fetched on every run.I couldn't run the docs build. This branch is based on
main, and the failing PR branch wasn't available. Stale cache state is the explanation that fits the log, but I haven't ruled out other causes. If the failure persists after a re-run, check the docs sources on the PR branch.