Skip to content

Commit 773554d

Browse files
committed
debug: Add logging to diagnose artifact_version issue
1 parent 805826e commit 773554d

File tree

1 file changed

+8
-0
lines changed
  • redis_benchmarks_specification/__common__

1 file changed

+8
-0
lines changed

redis_benchmarks_specification/__common__/runner.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def export_redis_metrics(
275275
by_variants["by.branch/{}".format(tf_github_branch)] = {
276276
"branch": tf_github_branch
277277
}
278+
logging.info(
279+
f"export_redis_metrics: artifact_version={artifact_version} (type={type(artifact_version)}), git_hash={git_hash}, tf_github_branch={tf_github_branch}"
280+
)
278281
if git_hash is not None and git_hash != "":
279282
by_variants["by.hash/{}".format(git_hash)] = {"hash": git_hash}
280283
if artifact_version is not None and artifact_version != "":
@@ -283,6 +286,11 @@ def export_redis_metrics(
283286
by_variants["by.version/{}".format(artifact_version)] = {
284287
"version": artifact_version
285288
}
289+
logging.info(f"Created by.version variant for version: {artifact_version}")
290+
else:
291+
logging.warning(
292+
f"Skipping by.version variant creation: artifact_version={artifact_version}"
293+
)
286294
for (
287295
by_variant,
288296
variant_labels_dict,

0 commit comments

Comments
 (0)