From bde981c23af987017454c8b67c8038612fba0799 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 20 Nov 2024 13:32:49 +0100 Subject: [PATCH] [FIX] runbot: avoid duplicate ouptut because of Download progress --- runbot/models/docker.py | 4 +++- runbot/static/src/js/fields/fields.css | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runbot/models/docker.py b/runbot/models/docker.py index 85601f448..d03dd3b56 100644 --- a/runbot/models/docker.py +++ b/runbot/models/docker.py @@ -364,7 +364,9 @@ def _build(self, host=None): # identifier changed if image_id != previous_result.identifier: should_save_result = True - if previous_result.output != docker_build_result_values['output']: # to discuss + def clean_output(output): + return '\n'.join([line for line in output.split('\n') if not line.startswith('Downloading')]) + if clean_output(previous_result.output) != clean_output(docker_build_result_values['output']): # to discuss should_save_result = True if previous_result.content != docker_build_result_values['content']: # docker image changed should_save_result = True diff --git a/runbot/static/src/js/fields/fields.css b/runbot/static/src/js/fields/fields.css index d808399e6..ede6d7610 100644 --- a/runbot/static/src/js/fields/fields.css +++ b/runbot/static/src/js/fields/fields.css @@ -1,4 +1,4 @@ .o_field_widget.o_field_runbotjsonb { width: 100%; white-space: pre-wrap; - } \ No newline at end of file +}