autoninja: only checks cr_build_revision when reclient_cfgs is deployed via cipd

non-Googlers may use own reclient_cfgs, which may not have
cr_build_revision marker.
Don't check cr_build_revision if reclient_cfgs is not deployed
by cipd.

Change-Id: I1be1f88c47abb2ab192222e3c7bcebbb37ee3f79
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7019373
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
This commit is contained in:
Fumitoshi Ukai
2025-10-07 23:40:01 -07:00
committed by LUCI CQ
parent 6dcf60b97d
commit a551472876

View File

@@ -255,6 +255,12 @@ def _check_reclient_cfgs(output_dir):
root_dir = gclient_paths.GetPrimarySolutionPath(output_dir)
if not root_dir:
return
if not os.path.exists(
os.path.join(
root_dir,
"buildtools/reclient_cfgs/chromium-browser-clang/.cipd")):
# reclient cfgs is not deployed by cipd
return
cr_build_revision_path = os.path.join(
root_dir, "third_party/llvm-build/Release+Asserts/cr_build_revision")
cr_build_revision = None