Skip to content

Commit

Permalink
[FIX] runbot: avoid duplicate ouptut because of Download progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-Do committed Nov 20, 2024
1 parent 20392d4 commit bde981c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion runbot/models/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion runbot/static/src/js/fields/fields.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.o_field_widget.o_field_runbotjsonb {
width: 100%;
white-space: pre-wrap;
}
}

0 comments on commit bde981c

Please sign in to comment.