1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-06 07:27:28 +00:00

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