Closed
Description
Describe the bug
Upon trying to list a workload repository, I get this error.
[ERROR] Cannot list. Your git version is [['git version 2.32.0']] but Benchmark requires at least git 1.9. Please update git.
To Reproduce
- I installed git via
sudo yum install git
wheregit --version
responds withgit version 2.32.0
- Run this command
opensearch-benchmark list workloads --workload-repository="literally anything"
- It will fail
Expected behavior
It should work as expected and list the workload repository, because my git version is valid.
Logs
2022-05-04 16:34:40,693 -not-actor-/PID:19982 osbenchmark.benchmark INFO OS [uname_result(system='Linux', node='ip-10-16-1-42.ec2.internal', release='4.14.275-207.503.amzn2.x86_64', version='#1 SMP Wed Apr 13 20:24:50 UTC 2022', machine='x86_64', processor='x86_64')]
2022-05-04 16:34:40,694 -not-actor-/PID:19982 osbenchmark.benchmark INFO Python [namespace(_multiarch='x86_64-linux-gnu', cache_tag='cpython-38', hexversion=50857456, name='cpython', version=sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0))]
2022-05-04 16:34:40,694 -not-actor-/PID:19982 osbenchmark.benchmark INFO Benchmark version [0.0.2]
2022-05-04 16:34:40,694 -not-actor-/PID:19982 osbenchmark.utils.net INFO Connecting directly to the Internet (no proxy support).
2022-05-04 16:34:40,722 -not-actor-/PID:19982 osbenchmark.benchmark INFO Detected a working Internet connection.
2022-05-04 16:34:40,729 -not-actor-/PID:19982 osbenchmark.benchmark ERROR Cannot run subcommand [list].
Traceback (most recent call last):
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/benchmark.py", line 825, in dispatch_sub_command
dispatch_list(cfg)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/benchmark.py", line 613, in dispatch_list
workload.list_workloads(cfg)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/workload/loader.py", line 118, in list_workloads
available_workloads = workloads(cfg)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/workload/loader.py", line 113, in workloads
repo = workload_repo(cfg)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/workload/loader.py", line 290, in workload_repo
return GitWorkloadRepository(cfg, fetch, update)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/workload/loader.py", line 331, in __init__
self.repo.update(distribution_version)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/utils/repo.py", line 99, in update
branch = versions.best_match(git.branches(self.repo_dir, remote=False), distribution_version)
File "/home/ec2-user/.local/lib/python3.8/site-packages/osbenchmark/utils/git.py", line 42, in probe
raise exceptions.SystemSetupError("Your git version is [%s] but Benchmark requires at least git 1.9. "
osbenchmark.exceptions.SystemSetupError: Your git version is [['git version 2.32.0']] but Benchmark requires at least git 1.9. Please update git.
More Context (please complete the following information):
- Workload(Share link for custom workloads) Doesn't apply
- Service(E.g OpenSearch) Would be opensearch
- Version (E.g. 1.0) Version 0.0.2 downloaded via pip.
Additional context
I haven't dug into the code, but it looks like it tries a match expecting the git version to return an exact semver instead of git version ...
?
Metadata
Assignees
Labels
Type
Projects
Status
Done