Skip to content

Commit 8ac448c

Browse files
Add the hability to override GIT_REPO and GIT_ORG (#350)
1 parent a718ba8 commit 8ac448c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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 = "redisbench-admin"
3-
version = "0.8.6"
3+
version = "0.8.7"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
66
readme = "README.md"

redisbench_admin/run/args.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
PUSH_S3 = bool(os.getenv("PUSH_S3", False))
2929
FAIL_FAST = bool(int(os.getenv("FAIL_FAST", 0)))
3030
PROFILERS_DSO = os.getenv("PROFILERS_DSO", None)
31+
GIT_ORG = os.getenv("GIT_ORG", None)
32+
GIT_REPO = os.getenv("GIT_REPO", None)
3133
PROFILERS_ENABLED = bool(int(os.getenv("PROFILE", 0)))
3234
PROFILERS = os.getenv("PROFILERS", PROFILERS_DEFAULT)
3335
MAX_PROFILERS_PER_TYPE = int(os.getenv("MAX_PROFILERS", 1))
@@ -86,8 +88,8 @@ def common_run_args(parser):
8688
help="specify the defaults file containing spec topologies, common metric extractions,etc...",
8789
)
8890
parser.add_argument("--github_actor", type=str, default=None, nargs="?", const="")
89-
parser.add_argument("--github_repo", type=str, default=None)
90-
parser.add_argument("--github_org", type=str, default=None)
91+
parser.add_argument("--github_repo", type=str, default=GIT_REPO)
92+
parser.add_argument("--github_org", type=str, default=GIT_ORG)
9193
parser.add_argument("--github_sha", type=str, default=None, nargs="?", const="")
9294
parser.add_argument(
9395
"--required-module",

0 commit comments

Comments
 (0)