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

bootstrap.py: perform "blobless" clones #28954

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

BenTheElder
Copy link
Member

Should significantly reduce time and bandwidth cloning github.com/kubernetes/kubernetes in particular.

https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/

pod-utils hopefully next ref #26590 #18226 (comment)

bootstrap.py is simpler to tweak and AFAIK nobody else is using it besides kubernetes CI (and if they are, it's officially unsupported for years now anyhow) but affects a ton of Kubernetes CI jobs still, this is a single flag that is similar to a shallow clone without the broken git describe issue.

The only downside here is commands like git blame and git checkout can take longer as they have to fetch the missing blobs for the refs. We still fetch the history tree, tags, and the current blobs for the refs we fetch.

It seems very unlikely that we have any regression from this change ™️ but it should speed things up, and help inform changing pod-utils defaults.

/hold
cc @listx

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/jenkins labels Mar 7, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added sig/testing Categorizes an issue or PR as relevant to SIG Testing. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 7, 2023
@ameukam
Copy link
Member

ameukam commented Mar 9, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 9, 2023
@BenTheElder
Copy link
Member Author

will wait to merge this until on hand to revert, just in case.

@BenTheElder
Copy link
Member Author

/hold cancel
let's do it

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 9, 2023
@k8s-ci-robot k8s-ci-robot merged commit 0c4992c into kubernetes:master Mar 9, 2023
@BenTheElder BenTheElder deleted the speed-up-git branch March 9, 2023 23:48
@BenTheElder
Copy link
Member Author

this doesn't appear to be causing any issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/jenkins cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants