Issue when sycing codes and syncing from specified tag

76 views
Skip to first unread message

Gary Chine

unread,
Jan 25, 2022, 11:59:52 PM1/25/22
to Chromium-dev
Hi Chrominum Devs,

Recently I need to sync codes from specified tag like 99.0.4839.0. To save time I want to finish that based on the local codes synced from master branch.Below are steps of commands executed:
$export CR_BRANCH=99.0.4839.0
$cd src  
$gclient sync --force --nohooks --with_branch_heads --with_tags -D -v 
$git checkout -b $CR_BRANCH $CR_BRANCH 
$gclient sync --force --nohooks --with_branch_heads --with_tags -D -v (Error happened here)
$gclient runhooks -v    

See the log attahced, I think during the sync process gclient use some commit history information which is not sync to my localbranch,  it can not find the CR-Commit Postion from my git log. Does that matter. Please shine me some light.

Thanks,
Daniel
errorlog

Gary Chine

unread,
Jan 26, 2022, 3:39:55 AM1/26/22
to Chromium-dev, Gary Chine
See lastchange.py ,there is no Cr-Commit-Position found from git cat-file COMMITID.So it failed. How to recover from that?

Gary Chine

unread,
Jan 26, 2022, 3:47:07 AM1/26/22
to Chromium-dev, Gary Chine
Hi Tikuta @tik...@chromium.org ,could you please help to have some body see it?

Thanks for any help,
Gary

在2022年1月26日星期三 UTC+8 12:59:52<Gary Chine> 写道:

Takuto Ikuta

unread,
Jan 26, 2022, 3:58:36 AM1/26/22
to xiaod...@gmail.com, Chromium-dev

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/649a9ed5-f254-424f-bddc-948d99d6e3bdn%40chromium.org.

Gary Chine

unread,
Jan 26, 2022, 4:44:46 AM1/26/22
to Chromium-dev, tik...@chromium.org, Chromium-dev, Gary Chine
I also followed guide here https://stackoverflow.com/questions/47087970/how-to-checkout-and-build-specific-chromium-tag-branch-without-download-the-full and I will try to add depth parameter like 1000000, 
Let me have a try and tell you the result later.
Thanks,

K. Moon

unread,
Jan 26, 2022, 11:25:03 AM1/26/22
to xiaod...@gmail.com, Chromium-dev, tik...@chromium.org
I'd also be careful to check your crlf settings.

Gary Chine

unread,
Jan 26, 2022, 10:01:05 PM1/26/22
to Chromium-dev, Gary Chine, tik...@chromium.org, Chromium-dev
Now after git checkout with large depth, I could see multiple git logs for commits, seems problem resolved for commit information missing. Thanks a lot, thumbs up!

Please let me reuse this thread to follow stuff syncing codes related for this tag branch.

Not I am being stucked on syncing src/third_party/angle although my network speed is about 800k/s. I have spend tons of time and servral times for this syncing,  one time it cost more than 4 hours for the third_party sync and failed on consequcence steps.., now I have to spend another time to continue to sync the angle and now one and half hour passed. 

Gary Chine

unread,
Jan 26, 2022, 10:02:41 PM1/26/22
to Chromium-dev, km...@chromium.org, Chromium-dev, tik...@chromium.org, Gary Chine
Hi Km,
I think you mean the break line character? I am always working on ubuntu ,does that matter

Gary Chine

unread,
Jan 27, 2022, 7:21:08 AM1/27/22
to Chromium-dev, Gary Chine, km...@chromium.org, Chromium-dev, tik...@chromium.org
Finally the angle syncing failed after more then 8 hours. If I want to recover from this messy, how can I, event create a new dir and resync again is an option. Thanks for your opinion.
sync angle error after a long long time

K. Moon

unread,
Jan 27, 2022, 11:53:24 AM1/27/22
to Gary Chine, Chromium-dev, tik...@chromium.org
If you're on Ubuntu, you probably don't need to worry about CRLF settings. Glad to hear that it sounds like you were able to resolve your issue.

gclient sync is just performing Git operations for most dependencies, so they should be resumable in most cases. You should be able to just run gclient sync again in most cases.
Reply all
Reply to author
Forward
0 new messages