Closed hoechenberger closed 6 months ago
Works for me! There's a lot more to add for movement compensation but this will at least get things started
+1
Message ID: @.***>
I tagged the release but the doc deployment is failing
And we have issues in the docs themselves. Maybe we should change the settings to fail hard on warnings:
WARNING - Documentation file 'changes.md' contains a link to '[mne_bids_pipeline._config.ssp_ecg_channel' which is not found in the documentation files. WARNING - Documentation file 'changes.md' contains a link to '[mne_bids_pipeline._config.read_raw_bids_verbose' which is not found in the documentation files. WARNING - Documentation file 'changes.md' contains a link to '[mne_bids_pipeline._config.mf_reference_run' which is not found in the documentation files. WARNING - Documentation file 'changes.md' contains a link to 'mne_bids_pipeline._config.n_jobs' which is not found in the documentation files. WARNING - Documentation file 'settings/preprocessing/maxfilter.md' contains a link to 'settings/preprocessing/mne_bids_pipeline._config.mf_destination' which is not found in the documentation files.
I tried restarting the deployment but it failed. Looks like this is the issue:
remote: fatal: pack exceeds maximum allowed size (2.00 GiB)
So we probably need to find a way to make our website smaller
We could include only the reports for the first participant and grand average for each example
I'm not sure that will be enough:
git clean -xdf
gives a docs/
size of ~400 kB/build_docs.sh
results in 707 MBgit clean
and build_docs.sh
again, it goes down to 597 MBWe also will probably need to do something with all the previous versions of the docs. If those are all 500-700 MB then that's going to be a problem going forward as we add more and more 200-300 MB docs versions (assuming we can even get them that small!).
EDIT: Code to trim:
I think ultimately keeping all doc versions forever will be untenable. Some options:
Has the advantage of staying complete, but mike
might not be happy with it, and it's not easy to see what config values were around in 1.0 for example.
For this, we could manually:
rm
the HTMLs for those versions from the websiteHas the advantage of being browsable, but gives the sense that report HTMLs will be readily available when they're not.
I think this is my preference:
rm
the old report HTML filesvisibility: hidden
on the "Generated output" heading and box (either manually do it with a search/replace, or do it in JavaScript). Or we can just kill those HTML sections altogether (though this is maybe harder to script).Has the advantage of being browseable, but the old report HTMLs are gone. This is the easiest and I don't think users will really care what the old report HTML from unsupported MNE-BIDS-Pipelines used to look like.
@hoechenberger any other ideas? If not, okay with you if I just do (3)?
@larsoner I don't think anyone cares about the example reports for old versions, so 3 is entirely fine with me
Okay locally I did:
$ git clone --single-branch --branch gh-pages git@github.com:/mne-tools/mne-bids-pipeline-website
$ cd mne-bids-pipeline-website
$ find $PWD/1.3/examples/ -type d -name "*" | tail -n +2 | xargs rm -Rf
... repeat for other versions
$ find 1.3/examples/ -name "*.html" -exec sed -i /^\<h2\ id=\"generated-output\"\>Generated/,/^\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $/{d} {} \;
... repeat for other versions
$ find 1.3/examples/ -name "*.html" -exec sed -i '/^ <a href="#generated-output"/,/^ <\/a>$/{d}' {} \;
... repeat for other versions
$ git commit --amend -a
$ git push -f
After things looked okay locally. Deployment looks okay I think:
before | after |
---|---|
We can "just" use these commands every once in a while to cull the example HTML files until we find a way to systematically delete them...
Agh, doc deployment failing again:
"fatal: pack exceeds maximum allowed size"
for the latest merge into main
and, more importantly, for the latest tagged release
Hmm this is one reason maybe we should be doing point releases for little bugfixes, those would be deployed to the same directories. The only quick fix I can think of is to delete 1.5 now for example
We should probably figure out how to get this down:
larsoner:~/python/mne-bids-pipeline$ du -hs 1.5
769M 1.5
larsoner:~/python/mne-bids-pipeline$ du -hs 1.6
854M 1.6
larsoner:~/python/mne-bids-pipeline$ du -hs 1.7
854M 1.7
and
$ du -hs 1.7/examples/
849M 1.7/examples/
$ du -hs 1.7/examples/ERP_CORE
510M 1.7/examples/ERP_CORE
So a good target might be looking at the ERP_CORE
6.3M 1.7/examples/ERP_CORE/sub-019_ses-P3_task-P3_proc-ica+components_report.html
1.3M 1.7/examples/ERP_CORE/sub-019_ses-P3_task-P3_proc-icafit_report.html
1.5M 1.7/examples/ERP_CORE/sub-019_ses-P3_task-P3_proc-ica_report.html
6.5M 1.7/examples/ERP_CORE/sub-019_ses-P3_task-P3_report.html
So back of the envelope 15MB per subject per task, 1657=525MB. Options:
I'll try (1) and (3) in a PR and we can see how big the resulting doc build is.
thanks for looking into this!
All fixed and example-removing scripts added in #899 so we can hopefully stop removing old versions (forgot we could do that otherwise I wouldn't have removed the older ones!)
It's time to cut a new release, this is the auto-generated changelog from GH:
I renamed a couple of PRs because they had rather non-descriptive titles. Please let's ensure that before merging, PR titles look like something that we'd actually want to appear in the changelog.
@larsoner I can make the release tomorrow, just wanted to get your okay to move forward.