From 6d2792a6de92e81422064a037b500361a01b3bc6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 07 2020 08:21:33 +0000 Subject: Always try to clean up the side-tag at the end of the run This should fail if the tests all passed and will prevent dangling side-tags which are only consuming resources if the tests failed. Signed-off-by: Pierre-Yves Chibon --- diff --git a/monitor_gating_multi_builds.py b/monitor_gating_multi_builds.py index cef5dcd..c4b88ae 100644 --- a/monitor_gating_multi_builds.py +++ b/monitor_gating_multi_builds.py @@ -218,6 +218,15 @@ def main(args): conf.get("koji_hub"), nevr, expected_ends=conf["koji_end_tag"], ) + try: + print(" Removing side-tag: %s" % side_tag_name) + cmd = [ + conf["fedpkg"], "remove-side-tag", side_tag_name + ] + output = run_command(cmd) + except Exception: + pass + utils.finalize(start) return utils.logs