Closed xu1zhou closed 1 year ago
@gyohuangxin
@xu1zhou Thanks for report this issue. I will take a look.
@xu1zhou I meet this issue too. It seems it will download bazel when executing bazel clean
. However, I'm not sure why it fails to download. I will dig into it.
2022-06-06 14:55:34,219: 5206 [ INFO ] [run_benchmark] ==================== Running Binary Benchmark for v1.21.0 ====================
2022-06-06 14:55:34,219: 5206 [ DEBUG] [base_builder] Using HOME=/tmp/salvo/tmp0ppwhmte
2022-06-06 14:55:34,220: 5206 [ DEBUG] [source_tree] Pulling [SRCID_NIGHTHAWK] from origin: [https://github.com/envoyproxy/nighthawk.git]
2022-06-06 14:55:34,220: 5206 [ DEBUG] [cmd_exec] Executing command: [git status] with args [OrderedDict([('cwd', '/tmp/salvo/tmp13kk2zlu')])]
2022-06-06 14:55:34,222: 5206 [ ERROR] [cmd_exec] Unable to execute [git status]: Command '['git', 'status']' returned non-zero exit status 128.
2022-06-06 14:55:34,222: 5206 [ DEBUG] [cmd_exec] Returning output: [fatal: not a git repository (or any of the parent directories): .git
]
2022-06-06 14:55:34,222: 5206 [ INFO ] [source_tree] Source likely does not exist on disk
2022-06-06 14:55:34,222: 5206 [ DEBUG] [cmd_exec] Executing command: [git clone https://github.com/envoyproxy/nighthawk.git .] with args [OrderedDict([('cwd', '/tmp/salvo/tmp13kk2zlu')])]
2022-06-06 14:55:35,554: 5206 [ DEBUG] [cmd_exec] Returning output: [Cloning into '.'...
]
2022-06-06 14:55:35,554: 5206 [ DEBUG] [nighthawk_builder] NightHawk source path: [/tmp/salvo/tmp13kk2zlu]
2022-06-06 14:55:35,555: 5206 [ DEBUG] [cmd_exec] Executing command: [bazel clean] with args [OrderedDict([('cwd', '/tmp/salvo/tmp13kk2zlu')])]
2022-06-06 14:55:35,646: 5206 [ ERROR] [cmd_exec] Unable to execute [bazel clean]: Command '['bazel', 'clean']' returned non-zero exit status 1.
2022-06-06 14:55:35,647: 5206 [ DEBUG] [cmd_exec] Returning output: [2022/06/06 14:55:35 Downloading https://releases.bazel.build/6.0.0-pre.20220421.3/release/bazel-6.0.0-pre.20220421.3-linux-x86_64...
2022/06/06 14:55:35 could not download Bazel: HTTP GET https://releases.bazel.build/6.0.0-pre.20220421.3/release/bazel-6.0.0-pre.20220421.3-linux-x86_64 failed with error 404
]
Traceback (most recent call last):
File "/envoy-perf/salvo/./bazel-bin/salvo.runfiles/salvo/salvo.py", line 76, in <module>
sys.exit(main())
File "/envoy-perf/salvo/./bazel-bin/salvo.runfiles/salvo/salvo.py", line 70, in main
benchmark.execute()
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/run_benchmark.py", line 387, in execute
benchmark.execute_benchmark()
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/benchmark/binary_benchmark.py", line 134, in execute_benchmark
self._prepare_nighthawk()
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/benchmark/binary_benchmark.py", line 103, in _prepare_nighthawk
self._nighthawk_builder.build_nighthawk_binaries()
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/builder/nighthawk_builder.py", line 101, in build_nighthawk_binaries
self.prepare_nighthawk_source()
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/builder/nighthawk_builder.py", line 78, in prepare_nighthawk_source
self._run_bazel_clean()
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/builder/base_builder.py", line 74, in _run_bazel_clean
output = cmd_exec.run_command(cmd, cmd_params)
File "/envoy-perf/salvo/bazel-bin/salvo.runfiles/salvo/src/lib/cmd_exec.py", line 50, in run_command
subprocess.check_call(cmd_array, stdout=tmpfile, stderr=tmpfile, **parameters._asdict())
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bazel', 'clean']' returned non-zero exit status 1.
@gyohuangxin when run on baremeteal, salvo try to download from " https://github.com/bazelbuild/bazel/releases/download/6.0.0-pre.20220421.3/bazel-6.0.0-pre.20220421.3-linux-x86_64" , which is avaliable to get resource.
@xu1zhou Thanks for the information, it's strange.
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 14 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 104 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
I was following salvo document to run a binary benchmark within container environment. Building salvo works fine but got error msg below while trying to run
bazel-bin/salvo --job demo-binary.yaml
:It seems that salvo was trying to wget a non-exist bazel release pkg cause the problem. I will keep looking into the salvo code to find more detail.