From 60efb12fce62b3eb4fb410f6555189234cf1d271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 6 Dec 2024 13:36:51 +0100 Subject: [PATCH] Limit the length of the check output --- github_app_geo_project/scripts/process_queue.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github_app_geo_project/scripts/process_queue.py b/github_app_geo_project/scripts/process_queue.py index 6226cc6b19..fd3a8014cb 100644 --- a/github_app_geo_project/scripts/process_queue.py +++ b/github_app_geo_project/scripts/process_queue.py @@ -230,6 +230,10 @@ async def _process_job( if result is not None and result.output: check_output.update(result.output) assert check_run is not None + if len(check_output["summary"]) > 65535: + check_output["summary"] = check_output["summary"][:65532] + "..." + if len(check_output["text"]) > 65535: + check_output["text"] = check_output["text"][:65532] + "..." try: check_run.edit( status="completed",