ci: Add extra gatekeeper debug output to stderr

which might be useful to assess the amount of querries.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
This commit is contained in:
Lukáš Doktor 2024-07-18 13:44:10 +02:00
parent 2440a39c50
commit 2ae090b44b
No known key found for this signature in database
GPG Key ID: 26B362E47FCF22C1

View File

@ -79,6 +79,8 @@ class Checker:
else: else:
# Not a required job # Not a required job
return return
print(f"{job_name} - {job['status']} {job['conclusion']} {job['id']}",
file=sys.stderr)
if job["status"] != "completed": if job["status"] != "completed":
self.results[job_name] = RUNNING self.results[job_name] = RUNNING
return return
@ -156,6 +158,7 @@ class Checker:
:returns: 0 - all passing; 1 - any failure; 127 some jobs running :returns: 0 - all passing; 1 - any failure; 127 some jobs running
""" """
# TODO: Check if we need pagination here as well # TODO: Check if we need pagination here as well
print(_GH_RUNS_URL, file=sys.stderr)
response = requests.get( response = requests.get(
_GH_RUNS_URL, _GH_RUNS_URL,
params={"head_sha": self.latest_commit_sha}, params={"head_sha": self.latest_commit_sha},