Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-pages branch commit history length impacts performance #3324

Open
ChrisBAshton opened this issue Nov 30, 2021 · 0 comments
Open

gh-pages branch commit history length impacts performance #3324

ChrisBAshton opened this issue Nov 30, 2021 · 0 comments

Comments

@ChrisBAshton
Copy link
Contributor

The gh-pages branch gets built every hour, and each commit is quite sizeable. Over time, this commit history amounts to many MBs (even GBs), making it slow to clone the repository.

Version history for the gh-pages branch isn't particularly important; it's simply a compiled output of lots of sources. So we'd like to minimise the amount of space the gh-pages history takes up.

An attempt was made in #3321 to 'orphan' all but the latest commit on gh-pages, drastically reducing its size. However, the feature requires force-pushing, which is not allowed under the 'branch protection rules' for the gh-pages branch, which we do not want to weaken.

So we reverted the PR in #3323.

This is a known problem, with a proposed solution of using a bot account for GitHub Actions, and locking down force-pushes to only the bot account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant