Report only changed images in commit status

This commit is contained in:
Mikhail f. Shiryaev 2023-09-12 21:26:39 +02:00
parent 5ead298d53
commit 40e04fee6c
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -272,16 +272,17 @@ def main():
if test_result != "OK":
status = "failure"
enriched_images = changed_images.copy()
try:
# changed_images now contains all the images that are changed in this PR. Let's find the latest tag for the images that are not changed.
enrich_images(changed_images)
enrich_images(enriched_images)
except CHException as ex:
logging.warning("Couldn't get proper tags for not changed images: %s", ex)
with open(
os.path.join(args.path, "changed_images.json"), "w", encoding="utf-8"
) as ci:
json.dump(changed_images, ci)
json.dump(enriched_images, ci)
pr_info = PRInfo()
s3_helper = S3Helper()