Skip to content

Commit f61c938

Browse files
[add] extended logging for action:trigger-benchmark (#65)
1 parent 1f838ce commit f61c938

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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.17"
3+
version = "0.1.18"
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 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "Readme.md"

redis_benchmarks_specification/__api__/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,17 @@ def base():
7676
html_url = repo_dict["html_url"].split("/")
7777
gh_repo = html_url[-1]
7878
gh_org = html_url[-2]
79+
detected_label = False
7980
for label in labels:
8081
label_name = label["name"]
8182
if trigger_label == label_name:
8283
use_event = True
8384
event_type = "Pull request labeled with '{}'".format(
8485
trigger_label
8586
)
87+
detected_label = True
88+
if detected_label is False:
89+
app.logger.info("Unable to detected benchmark trigger label: {}".format(trigger_label))
8690

8791
# Git pushes to repo
8892
if "ref" in request_data:

redis_benchmarks_specification/__common__/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# environment variables
5656
PULL_REQUEST_TRIGGER_LABEL = os.getenv(
57-
"PULL_REQUEST_TRIGGER_LABEL", "trigger-benchmark"
57+
"PULL_REQUEST_TRIGGER_LABEL", "action:run-benchmark"
5858
)
5959
DATASINK_RTS_PUSH = bool(os.getenv("DATASINK_PUSH_RTS", False))
6060
DATASINK_RTS_AUTH = os.getenv("DATASINK_RTS_AUTH", None)

0 commit comments

Comments
 (0)