Skip to content

Commit 8cd335f

Browse files
Enabled arch selection on self-contained-coordinator (#230)
* Bumping version from 0.1.69 to 0.1.70 * Enabled arch selection on self-contained-coordinator
1 parent f6d737a commit 8cd335f

File tree

5 files changed

+475
-421
lines changed

5 files changed

+475
-421
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redis-benchmarks-specification"
3-
version = "0.1.70"
3+
version = "0.1.71"
44
description = "The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
66
readme = "Readme.md"

redis_benchmarks_specification/__self_contained_coordinator__/args.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,7 @@ def create_self_contained_coordinator_args(project_name):
147147
default="{}/defaults.yml".format(SPECS_PATH_TEST_SUITES),
148148
help="specify the defaults file containing spec topologies, common metric extractions,etc...",
149149
)
150+
parser.add_argument(
151+
"--arch", type=str, default="amd64", help="arch to build artifacts"
152+
)
150153
return parser

redis_benchmarks_specification/__self_contained_coordinator__/build_info.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
def extract_build_info_from_streamdata(testDetails):
10+
arch = "amd64"
1011
use_git_timestamp = False
1112
git_timestamp_ms = None
1213
metadata = None
@@ -29,6 +30,11 @@ def extract_build_info_from_streamdata(testDetails):
2930
build_artifacts_str = "redis-server"
3031
build_image = testDetails[b"build_image"].decode()
3132
run_image = build_image
33+
if b"arch" in testDetails:
34+
arch = testDetails[b"arch"].decode()
35+
logging.info("detected arch info {}.".format(arch))
36+
else:
37+
logging.info("using default arch info {}.".format(arch))
3238
if b"run_image" in testDetails:
3339
run_image = testDetails[b"run_image"].decode()
3440
logging.info("detected run image info {}.".format(run_image))
@@ -49,4 +55,5 @@ def extract_build_info_from_streamdata(testDetails):
4955
run_image,
5056
use_git_timestamp,
5157
git_timestamp_ms,
58+
arch,
5259
)

redis_benchmarks_specification/__self_contained_coordinator__/runners.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def process_self_contained_coordinator_stream(
136136
run_image,
137137
use_git_timestamp,
138138
git_timestamp_ms,
139+
_,
139140
) = extract_build_info_from_streamdata(testDetails)
140141

141142
overall_result = True

0 commit comments

Comments
 (0)