Skip to content

Commit 25a11c9

Browse files
committed
[add] extended logging for action:trigger-benchmark
1 parent e6bb999 commit 25a11c9

File tree

4 files changed

+37
-43
lines changed

4 files changed

+37
-43
lines changed

poetry.lock

Lines changed: 30 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 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 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
66
readme = "Readme.md"
@@ -24,6 +24,7 @@ GitPython = "^3.1.20"
2424
redistimeseries = "1.4.3"
2525
semver = "^2.13.0"
2626
node-semver = "^0.8.1"
27+
typed-ast = "^1.5.0"
2728

2829
[tool.poetry.dev-dependencies]
2930
black = "20.8b1"

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)