From 51eebefccd47a995640f729541b62d58518b2b64 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 16 2019 12:25:54 +0000 Subject: Adjust the topic name when calling resultsdb in staging vs production Signed-off-by: Pierre-Yves Chibon --- diff --git a/monitor_gating.py b/monitor_gating.py index 6649fb6..67e6e6b 100644 --- a/monitor_gating.py +++ b/monitor_gating.py @@ -419,10 +419,10 @@ def lookup_ci_resultsdb(nevr, name, url): start = datetime.datetime.utcnow() info_log = f"Checking {name} for CI results " print_user(info_log) - url = ( - url - + "?testcases=org.centos.prod.ci.pipeline.allpackages-build.complete" - ) + topic = "org.centos.prod.ci.pipeline.allpackages-build.complete" + if ".stg" in url: + topic = "org.centos.stage.ci.pipeline.allpackages-build.complete" + url = f"{url}?testcases={topic}" success = False returned_status = None