Skip to content

Fetch only the commit graph of a fork's parent - #16

Merged
krystophny merged 1 commit into
mainfrom
ci/treeless-parent-fetch
Nov 13, 2026
Merged

krystophny merged 1 commit into
mainfrom
ci/treeless-parent-fetch

Conversation

@krystophny

Copy link
Copy Markdown
Member

The hygiene job fetched every branch of a fork's parent in full. For itpplasma/DESC (3.2 GB, 187 parent branches) this filled the runner disk (No space left on device), so nothing could pass the fork's merge queue.

The parent's refs are used only to exclude its commits from the checked range, which needs the commit graph alone. The step now fetches the parent with --filter=tree:0 and without automatic repacking. For DESC this adds about 10 MB in 9 s, and git rev-list base..head --not --glob='refs/upstream/*' returns the same commits as with a full fetch (checked on the merge of upstream master into the fork).

The unit tests pass; the workflow step itself is exercised by the DESC fork once it pins this revision.

Chris&AI

@krystophny
krystophny added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 82372f3 Nov 13, 2026
1 check passed
@krystophny
krystophny deleted the ci/treeless-parent-fetch branch November 13, 2026 05:46
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

Successfully merging this pull request may close these issues.

1 participant