豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Add support for reference repository parameter#1400

Open
ddompe wants to merge 1 commit intoactions:mainfrom
ddompe:reference-support
Open

Add support for reference repository parameter#1400
ddompe wants to merge 1 commit intoactions:mainfrom
ddompe:reference-support

Conversation

@ddompe
Copy link
Copy Markdown

@ddompe ddompe commented Jul 3, 2023

Git clone command added support for a local reference repository in order to minimize the network traffic and load on the git servers for big repositories. Adding support to specify such reference git repository in the checkout action.

The is very useful in big repositories hosted in GitHub Enterprise deployments that runs massive scales of CI jobs across distributed geographies.

Tested manually in my private GitHub Enterprise instances, but I lack the knowledge to create a unit test for this. Sharing to upstream so it can be taken from here, or pulled by other people needing it (see #22 and #687)

@ddompe ddompe requested a review from a team as a code owner July 3, 2023 17:09
@Pospelove
Copy link
Copy Markdown

does this work for git lfs?

Copy link
Copy Markdown

@tbranch227 tbranch227 left a comment

Choose a reason for hiding this comment

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

This looks great. This feature really needs to be supported by this action.

@tbranch227
Copy link
Copy Markdown

does this work for git lfs?

I believe it does. We use --reference with our own processes (not this action) and it's a big performance improvement and offloads work from the server and WAN links.

@sizehnde
Copy link
Copy Markdown

Bumping this PR. It would greatly benefit certain monorepo workflows.

We have implemented an Action internally to support reference clones that essentially has to reimplement the portions of actions/checkout we care about; it would be nice for this to just be a built in feature.

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.

5 participants