ci(docker): shallow-clone build-time git deps to cut build-docker time - #1000
Open
WangLingxun wants to merge 1 commit into
Open
ci(docker): shallow-clone build-time git deps to cut build-docker time#1000WangLingxun wants to merge 1 commit into
WangLingxun wants to merge 1 commit into
Conversation
aiter, Primus-Turbo, triton and uccl were full-history cloned, and their pinned submodules (e.g. composable_kernel) were fetched without --depth, turning a single git clone into 30-45min on a slow link. Use partial clone (--filter=blob:none) for repos checked out by SHA, and shallow clone/submodule update for repos/submodules pinned to a tag or exact SHA.
WangLingxun
marked this pull request as ready for review
August 20, 2026 07:49
WangLingxun
requested review from
Xiaoming-AMD,
limou102 and
wenxie-amd
as code owners
August 20, 2026 07:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aiter,Primus-Turbo,triton,ucclin.github/workflows/docker/Dockerfilewere full-historygit clones, and their pinned submodules (composable_kernel,hipify_torch) were fetched viagit submodule update --init --recursivewith no depth limit — observed taking 30-45min on their own on a slow outbound link.--filter=blob:none): keeps the full commit graph (so any SHA is still reachable) but defers blob content until checkout.--depth 1 --filter=blob:none: GitHub allows shallow-fetching an arbitrary reachable SHA, so this skips the submodule's full history entirely.rccl/amd-anpinDockerfile.ainiccheckout fixed tags, so those go straight togit clone --branch <tag> --single-branch --depth 1.run-unittest-jaxjob's "Init Primus-Turbo submodules" step inci.yaml.Test plan
build-dockeron a PR and compare wall-clock time against a recent run on the same runner