Re: [chromium-dev] Re: Sync codes from specified tag issues

209 views
Skip to first unread message

K. Moon

unread,
Jan 25, 2022, 11:12:27 AM1/25/22
to xiaod...@gmail.com, Chromium-dev
What happens when you run "python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE --print-only" from the chromium directory?

On Tue, Jan 25, 2022 at 12:38 AM Chine Gary <xiaod...@gmail.com> wrote:
Add some information:
$git cat-file commit '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60'
tree 0ed23aa89df36aad33cae7fdcddba07771524979
parent eb4509d3a581544d478fac2e7481aaca18ba2a28
author Chrome Release Bot (LUCI) <chrome-offic...@chops-service-accounts.iam.gserviceaccount.com> 1642628557 +0000
committer Chrome Release Bot (LUCI) <chrome-offic...@chops-service-accounts.iam.gserviceaccount.com> 1642628575 +0000

Publish DEPS for 99.0.4839.3

OS information:   Ubuntu 20.04.3 LTS
git:git version 2.25.1
gclient:gclient.py 0.7

在2022年1月25日星期二 UTC+8 16:29:57<Chine Gary> 写道:
Hi Geeks,

I am a freshpie to chromium project although follow this group many years ago. I am set out to sync projects from the tag point 99.0.4839.3 and before that I managed to sync all the codes and build by follwing guide here.To save time I reuse the base codes and build env and try to update to tag point 99.0.4839.3. Below are my steps:
$cd src
$export CR_BRANCH=99.0.4839.3
$gclient sync --force --nohoools --with_branch_heads --with-tags -D -v
$git checkout -b $CR_BRANCH $CR_BRANCH 
$gclient sync --force --nohoools --with_branch_heads --with-tags -D -v
$gclient runhooks -v
tons of logs output and and finally get some error(attached at end of the thread.)

See the logic in lastchange python script, it's used to get some commit info. I tried to execute the segment alone in console:
$ git log -1 --format=%H %ct --grep=^Change-Id: HEAD
fatal: ambiguous argument '%ct': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
it seems we have to enbarace the %H %ct with "'" in codes of build/util/GETLASTCHNAGE.py but it looks too obvious to be a bug I think.

further more, I tried another command:
$python3 src/build/util/lastchange.py -o 1
ERROR:root:Failed to get version info: Git command 'git cat-file commit '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60' in /home/danielc/chromium/src failed: rc=128, stdout='' stderr='fatal: Not a valid object name '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60
It uses git cat-file and filter output to get Cr-Commit information fail.
I check git log to find there only 1 log information local:
$git log
commit 1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60 (grafted, HEAD -> 99.0.4839.3, tag: 99.0.4839.3, mylocal, local_99.0.4839.3, chromium_99.0.4839.3, 99)
Author: Chrome Release Bot (LUCI) <chrome-offic...@chops-service-accounts.iam.gserviceaccount.com>
Date:   Wed Jan 19 21:42:37 2022 +0000

It seems the commit history not exists in my local branch.Do I need and how to get them to let gclient sync and runhooks run to the end?

    Publish DEPS for 99.0.4839.3
_______ running 'python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE' in '/home/danielc/chromium'
ERROR:root:Failed to get version info: Git command 'git cat-file commit '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60' in /home/danielc/chromium/src failed: rc=128, stdout='' stderr='fatal: Not a valid object name '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60
'
________ running 'python3 src/build/util/lastchange.py -m GPU_LISTS_VERSION --revision-id-only --header src/gpu/config/gpu_lists_version.h' in '/home/danielc/chromium'
ERROR:root:Failed to get version info: Git command 'git cat-file commit '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60' in /home/danielc/chromium/src failed: rc=128, stdout='' stderr='fatal: Not a valid object name '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60
'
________ running 'python3 src/build/util/lastchange.py -m SKIA_COMMIT_HASH -s src/third_party/skia --header src/skia/ext/skia_commit_hash.h' in '/home/danielc/chromium'
ERROR:root:Failed to get version info: Git command 'git cat-file commit '8276fa8ef102847b505a0af13fc9322a17f8929d' in /home/danielc/chromium/src/third_party/skia failed: rc=128, stdout='' stderr='fatal: Not a valid object name '8276fa8ef102847b505a0af13fc9322a17f8929d
'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-clang-format -s src/buildtools/linux64/clang-format.sha1' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-fonts -s src/third_party/test_fonts/test_fonts.tar.gz.sha1' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_auth --quiet --bucket chromium-webrtc-resources -d src/third_party/opus/tests/resources' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-instrumented-libraries -s src/third_party/instrumented_libraries/binaries/msan-chained-origins.tgz.sha1' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-instrumented-libraries -s src/third_party/instrumented_libraries/binaries/msan-no-origins.tgz.sha1' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth -u --bucket v8-wasm-fuzzer -s src/v8/test/fuzzer/wasm_corpus.tar.gz.sha1' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-nodejs/16.13.0 -s src/third_party/node/linux/node-linux-x64.tar.gz.sha1' in '/home/danielc/chromium'
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --extract --no_auth --bucket chromium-nodejs -s src/third_party/node/node_modules.tar.gz.sha1' in '/home/danielc/chromium'

--
--
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/929601e6-32a4-47c2-a1d1-9db0e9f2b9c5n%40chromium.org.

Gary Chine

unread,
Jan 26, 2022, 10:39:09 PM1/26/22
to Chromium-dev, km...@chromium.org, Chromium-dev, Gary Chine
I didn't find the thread after I posted it and I was supposing it's blocked by the thread reviewing process. So I post a new one:(. I didn't add flag "print-only" for that, now I am stucking on syncing 3rd party angle, I think I have no change to retry, I wish the syncing has been done and I can try that ASAP

Gary Chine

unread,
Jan 26, 2022, 10:44:04 PM1/26/22
to Chromium-dev, km...@chromium.org, Chromium-dev, Gary Chine
How to merge content  in this thread to link below, then we can follow the syncing issue just in that thread. I am sorry to make haphazard.
https://groups.google.com/a/chromium.org/g/chromium-dev/c/0FBBTdniKnI
在2022年1月26日星期三 UTC+8 00:12:27<km...@chromium.org> 写道:

Gary Chine

unread,
Jan 27, 2022, 2:37:21 AM1/27/22
to Chromium-dev, km...@chromium.org, Chromium-dev, Gary Chine
Hi Km,
Below is what it prints:

danielc@danielc:~/chromium$ python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE --print-only

ERROR:root:Failed to get version info: Git command 'git cat-file commit '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60' in /home/danielc/chromium/src failed: rc=128, stdout='' stderr='fatal: Not a valid object name '1071e00a4cb9fd5bb3ed76b08844ca214eb8cc60
'
0

在2022年1月26日星期三 UTC+8 00:12:27<km...@chromium.org> 写道:

Gary Chine

unread,
Jan 27, 2022, 2:40:19 AM1/27/22
to Chromium-dev, Gary Chine, km...@chromium.org, Chromium-dev
In another codebase, the result of command is:
$python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE --print-only
eb4509d3a581544d478fac2e7481aaca18ba2a28-refs/branch-heads/4839@{#5}
Reply all
Reply to author
Forward
0 new messages