From 3dea69443d4b33dd453537e2ca5bd6b11bfbb58c818bca2f3b5095e5a7a8bc3e Mon Sep 17 00:00:00 2001 From: Nicolas Belouin Date: Mon, 24 Feb 2025 10:47:26 +0100 Subject: [PATCH] Add more output to wait_obs Signed-off-by: Nicolas Belouin --- .obs/wait_obs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.obs/wait_obs.py b/.obs/wait_obs.py index ea3ce03..dac3191 100644 --- a/.obs/wait_obs.py +++ b/.obs/wait_obs.py @@ -12,6 +12,7 @@ def get_buildstatus(project: str) -> ET.Element: return ET.fromstring(output) except subprocess.CalledProcessError: continue + print("Failed to get buildstatus from OBS") def do_wait(project:str, commit:str) -> ET.Element: last_state = None @@ -73,6 +74,7 @@ def print_results(status: ET.Element) -> bool: def main(): project = os.environ.get("OBS_PROJECT") sha = os.environ.get("GITEA_SHA") + print(f"Waiting for OBS to build {project} for commit {sha}") status = do_wait(project, sha) if print_results(status): return 1