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:
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'