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

diff.groovy: improve clone time by depth=1 #818

Closed
romani opened this issue Dec 3, 2023 · 1 comment · Fixed by #819 or #843
Closed

diff.groovy: improve clone time by depth=1 #818

romani opened this issue Dec 3, 2023 · 1 comment · Fixed by #819 or #843

Comments

@romani
Copy link
Member

romani commented Dec 3, 2023

It is not big deal for CIs, it was a problem for me on hotspot, clone did not finish even for 10 minutes.... so I was not able to reuse my free time on the go to assist with PR problem in main repo.

✔ ~/java/github/checkstyle/contribution/checkstyle-tester/repositories [i816-status L|✚ 1…2⚑ 1] 
17:23 $ time git clone git@github.com:google/guava.git
Клонирование в «guava»…
remote: Enumerating objects: 398278, done.
remote: Counting objects: 100% (319/319), done.
remote: Compressing objects: 100% (127/127), done.
remote: Total 398278 (delta 172), reused 273 (delta 137), pack-reused 397959
Получение объектов: 100% (398278/398278), 436.55 MiB | 3.28 MiB/s, готово.
Определение изменений: 100% (295113/295113), готово.
Проверка соединения… готово.

real	2m40.251s
user	1m1.128s
sys	0m5.592s
✔ ~/java/github/checkstyle/contribution/checkstyle-tester/repositories [i816-status L|✚ 1…2⚑ 1] 
17:26 $ 
✔ ~/java/github/checkstyle/contribution/checkstyle-tester/repositories [i816-status L|✚ 1…2⚑ 1] 
17:26 $ rm -rf guava/
✔ ~/java/github/checkstyle/contribution/checkstyle-tester/repositories [i816-status L|✚ 1…2⚑ 1] 
17:26 $ #time git clone --depth 1 --branch v28.2 git@github.com:google/guava.git
✔ ~/java/github/checkstyle/contribution/checkstyle-tester/repositories [i816-status L|✚ 1…2⚑ 1] 
17:27 $ time git clone --depth 1 --branch v28.2 git@github.com:google/guava.git
Клонирование в «guava»…
remote: Enumerating objects: 2572, done.
remote: Counting objects: 100% (2572/2572), done.
remote: Compressing objects: 100% (1513/1513), done.
remote: Total 2572 (delta 1321), reused 1586 (delta 889), pack-reused 0
Получение объектов: 100% (2572/2572), 3.53 MiB | 3.06 MiB/s, готово.
Определение изменений: 100% (1321/1321), готово.
Проверка соединения… готово.
Note: checking out 'a1b3c06876803a0b0e5d2f16708e1328da1bac09'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>


real	0m2.594s
user	0m0.752s
sys	0m0.184s

Example from web to explain some items:
https://stackoverflow.com/a/39067940/1015848

@rnveach
Copy link
Member

rnveach commented Dec 3, 2023

Duplicate of #351 with same concerns

nrmancuso added a commit that referenced this issue Feb 5, 2024
romani pushed a commit that referenced this issue Feb 5, 2024
@rnveach rnveach reopened this Feb 5, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Mar 12, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 4, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 4, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 4, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 4, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 18, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 18, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 18, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 18, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 18, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 18, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 19, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 19, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 19, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue Apr 19, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 8, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 8, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 8, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 9, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 9, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 9, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 9, 2024
relentless-pursuit pushed a commit to relentless-pursuit/contribution that referenced this issue May 9, 2024
romani pushed a commit to relentless-pursuit/contribution that referenced this issue May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants