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
Fix docs workflow cache key to enable cache reuse (#946)
* Fix docs workflow cache key and disable parallel on cold cache
The MNE data cache key was using github.run_id, which creates a unique
key for every workflow run. This prevented cache reuse, causing every
docs build to download all datasets fresh from Zenodo.
Changes:
- Use static versioned cache key (v2) that persists across runs
- Disable parallel Sphinx gallery builds when cache is cold to avoid
Zenodo rate limiting during the initial dataset download
- Add SPHINX_GALLERY_PARALLEL env var to control parallel execution
When cache is hit, parallel builds are enabled for speed. When cache
is cold (first run), sequential builds prevent rate limiting.
* Add pre-download step with retry logic for cold cache
When the MNE data cache is cold, pre-download datasets with:
- Exponential backoff retry for Zenodo API rate limiting
- Pre-caching of Zenodo metadata JSON
- 30s delays between dataset downloads
This ensures the first docs build succeeds by handling rate limiting
gracefully before sphinx-gallery runs.
* Fix Zhou2016 metadata cache path to use BIDS format
* Simplify pre-download step to use MOABB dataset classes with retry
* Expand pre-download to include all Zenodo datasets used in examples
* Disable Sphinx parallel build on cold cache via SPHINX_JOBS env var
* Make pre-download step more robust and fail on errors
- Increase retries from 3 to 5 with longer delays (90s-360s)
- Increase wait between datasets from 45s to 60s
- Download all 4 Zhou2016 subjects
- Fail workflow if any dataset download fails
- Better logging with clear success/failure messages
* Improve docs cache persistence and Zenodo downloads
* [pre-commit.ci] auto fixes from pre-commit.com hooks
* Use HTTPS for BNCI dataset downloads
* Cache BNCI datasets in test workflow
* Switch BNCI downloads to mirror host
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments