ci.gatekeeper: Print the older job id

let's print the also the existing result's id when printing the
information about ignoring older result id to simplify debugging.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
This commit is contained in:
Lukáš Doktor
2024-11-22 09:22:14 +01:00
parent 6c19a067a0
commit fa7bca4179

View File

@@ -83,7 +83,7 @@ class Checker:
elif job['run_id'] < self.results[job_name]['run_id']: elif job['run_id'] < self.results[job_name]['run_id']:
# Newer results already stored # Newer results already stored
print(f"older {job_name} - {job['status']} {job['conclusion']} " print(f"older {job_name} - {job['status']} {job['conclusion']} "
f"{job['id']}", file=sys.stderr) f"{job['id']} (newer_id={self.results[job_name]['id']})", file=sys.stderr)
return return
print(f"{job_name} - {job['status']} {job['conclusion']} {job['id']}", print(f"{job_name} - {job['status']} {job['conclusion']} {job['id']}",
file=sys.stderr) file=sys.stderr)