Skip to content

DOC Recommend cleaning the doc repo only for major final releases - #34050

Merged
adrinjalali merged 1 commit into
scikit-learn:mainfrom
jeremiedbb:clean-up-doc-repo-at-final
May 20, 2026
Merged

adrinjalali merged 1 commit into
scikit-learn:mainfrom
jeremiedbb:clean-up-doc-repo-at-final

Conversation

@jeremiedbb

Copy link
Copy Markdown
Member

Follow-up of #32620.

The last clean up was done 5 month ago, around the 1.8 release and the repo has now a size of 15GB which is way below the 100GB limit. So I believe we're safe doing it only twice a year, say for each minor/major final release. This PR just changes the tab in which this item appears in https://scikit-learn.org/dev/developers/maintainer.html#reference-steps


{% if key == "final" %}
- The `scikit-learn/scikit-learn.github.io` needs to be cleaned up so that ideally
it stays <5GB in size. Before doing this, create a new fresh fork of the existing

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the repo is now 15GB, why do we still strive for <5GB? If the history would be flushed, would it go below 5GB? If not, we may want to update this number?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repo grows every time we merge a PR (or a PR touching the doc, I'm not sure). Last time it was cleaned-up it was below 5GB (5 month ago). Next time we clean it up (during this release) it will again be below 5GB.

This clean-up doesn't have to be tied to releases. And actually if we wanted to keep it always below 5GB it should be done based on monitoring the size. But realistically if we don't put it in the release check list, we'll forget it :)

To target a lower average size we can keep it at every release (current state) but then I'd still remove it from the RC because there are only 2 weeks between RC and final so the repo doesn't grow a lot in between.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks. Amazing it grows by 300% in 5 months.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

372 commits, each one containing all examples (https://github.com/scikit-learn/scikit-learn.github.io/commits/main/). I believe something smarter could be done (maybe with a lot of added complexity).

@adrinjalali adrinjalali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as GH volks don't complain, this is fine.

@adrinjalali
adrinjalali merged commit c9af676 into scikit-learn:main May 20, 2026
36 checks passed
@jeremiedbb jeremiedbb mentioned this pull request Jun 1, 2026
16 tasks done
@jeremiedbb
jeremiedbb deleted the clean-up-doc-repo-at-final branch September 3, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants