From 6309a9277a47afd50c9332d71ea4b1936867093a Mon Sep 17 00:00:00 2001 From: Adam Saleh Date: Jul 31 2020 16:08:30 +0000 Subject: Attempting to solve some problems by adding explicit start for the datanommer searches in single-build. --- diff --git a/monitor_gating_single_build.py b/monitor_gating_single_build.py index 1156f11..c5dcea1 100644 --- a/monitor_gating_single_build.py +++ b/monitor_gating_single_build.py @@ -232,6 +232,9 @@ def main(args): topic=f"org.centos.{conf['_ci_env']}.ci.koji-build.test.running", nevr=nevr, ) + + start_dg = datetime.datetime.utcnow() + # Check at the CI pipeline has completed utils.lookup_results_datagrepper( base_url=conf["datagrepper"], @@ -239,6 +242,7 @@ def main(args): topic=f"org.centos.{conf['_ci_env']}.ci.koji-build.test.error", nevr=nevr, duration=30, + start=start_dg, ) # Check the tag of the build @@ -257,6 +261,8 @@ def main(args): name="resultsdb", topic=f"org.fedoraproject.{conf['_env']}.resultsdb.result.new", nevr=nevr, + duration=45, + start=start_dg, ) # Check that greenwave reacted to resultsdb's new results @@ -265,6 +271,8 @@ def main(args): name="greenwave", topic=f"org.fedoraproject.{conf['_env']}.greenwave.decision.update", nevr=nevr, + duration=60, + start=start_dg, ) # Check the tag of the build -- build is blocked but should be signed