Skip to content

Commit 4d7b7ad

Browse files
committed
[FIX] runbot: avoid duplicate ouptut because of Download progress
1 parent a7f8c80 commit 4d7b7ad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

runbot/models/docker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ def _build(self, host=None):
354354
# identifier changed
355355
if image_id != previous_result.identifier:
356356
should_save_result = True
357-
if previous_result.output != docker_build_result_values['output']: # to discuss
357+
def clean_output(output):
358+
return '\n'.join([line for line in output.split('\n') if not line.startswith('Downloading')])
359+
if clean_output(previous_result.output) != clean_output(docker_build_result_values['output']): # to discuss
358360
should_save_result = True
359361
if previous_result.content != docker_build_result_values['content']: # docker image changed
360362
should_save_result = True
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.o_field_widget.o_field_runbotjsonb {
22
width: 100%;
33
white-space: pre-wrap;
4-
}
4+
}

0 commit comments

Comments
 (0)