Hi!
I run clang-tidy on Chromium [1] and the script for clang-tidy fails
with this error after switching to reclient from goma:
F1206 15:06:04.439743 893837 main.go:174] Command failed: dial_timeout of 10m0s expired before being able to connect to reproxy
This failure is fixed once I changed the script to use autoninja
instead of ninja as below.
diff --git
a/recipes/recipe_modules/tricium_clang_tidy/resources/tricium_clang_tid
y_script.py
b/recipes/recipe_modules/tricium_clang_tidy/resources/tricium_clang_tid
y_script.py
index 24440ca2b2..9b57a038b7 100755
---
a/recipes/recipe_modules/tricium_clang_tidy/resources/tricium_clang_tid
y_script.py
+++
b/recipes/recipe_modules/tricium_clang_tidy/resources/tricium_clang_tid
y_script.py
@@ -122,7 +122,7 @@ def _run_ninja(out_dir: str,
# 500 targets per invocation is arbitrary, but we start hitting OS
argv size
# limits around 1K in my experience.
def make_ninja_command(targets):
- ninja_cmd = ['ninja', '-k', '1000000']
+ ninja_cmd = ['autoninja', '-k', '1000000']
if jobs is not None:
ninja_cmd.append('-j%d' % jobs)
I think that it should be fixed.
Best regards,
Yeunjoo.
[1]
https://chromium.googlesource.com/chromium/src/+/main/docs/clang_tidy.md