Skip to content

Commit b442d8d

Browse files
Merge pull request #251 from filipecosta90/cli.remote
Enabled triggering build/benchmarks on forks
2 parents 19cdc66 + 0893e5e commit b442d8d

File tree

28 files changed

+12
-587
lines changed

28 files changed

+12
-587
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.73"
3+
version = "0.1.75"
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/__cli__/args.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def spec_cli_args(parser):
9393
default=START_TIME_NOW_UTC,
9494
)
9595
parser.add_argument("--redis_repo", type=str, default=None)
96+
parser.add_argument("--gh_org", type=str, default="redis")
97+
parser.add_argument("--gh_repo", type=str, default="redis")
9698
parser.add_argument("--trigger-unstable-commits", type=bool, default=True)
9799
parser.add_argument(
98100
"--use-tags",

redis_benchmarks_specification/__cli__/cli.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,11 @@ def get_repo(args):
142142
if redisDirPath is None:
143143
cleanUp = True
144144
redisDirPath = tempfile.mkdtemp()
145+
remote_url = f"https://github.com/{args.gh_org}/{args.gh_repo}"
145146
logging.info(
146-
"Retrieving redis repo from remote into {}. Using branch {}.".format(
147-
redisDirPath, args.branch
148-
)
149-
)
150-
cmd = "git clone https://github.com/redis/redis {} --branch {}\n".format(
151-
redisDirPath, args.branch
147+
f"Retrieving redis repo from remote {remote_url} into {redisDirPath}. Using branch {args.branch}."
152148
)
149+
cmd = f"git clone {remote_url} {redisDirPath} --branch {args.branch}\n"
153150
process = subprocess.Popen(
154151
"/bin/bash", stdin=subprocess.PIPE, stdout=subprocess.PIPE
155152
)
@@ -250,7 +247,12 @@ def trigger_tests_cli_command_logic(args, project_name, project_version):
250247
binary_key,
251248
binary_value,
252249
) = get_commit_dict_from_sha(
253-
cdict["git_hash"], "redis", "redis", cdict, True, args.gh_token
250+
cdict["git_hash"],
251+
args.gh_org,
252+
args.gh_repo,
253+
cdict,
254+
True,
255+
args.gh_token,
254256
)
255257
if args.platform:
256258
commit_dict["platform"] = args.platform

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-load-string200c-with-20KiB-values-pipeline-10.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-load-string200c-with-20KiB-values.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-load-string50c-with-20KiB-values-pipeline-10.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-load-string50c-with-20KiB-values.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-string-setget200c-20KiB-pipeline-10.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-string-setget200c-20KiB.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

redis_benchmarks_specification/test-suites/string/memtier_benchmark-100Kkeys-string-setget50c-20KiB-pipeline-10.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)