Skip to content

download() is not CI log friendly #823

@AndreMiras

Description

@AndreMiras

The way we report download progress in buildozer/__init__.py download() is absolutely helpful in the terminal, but really messes up with Travis logger.

When downloading things as big as the Android NDK via buildozer, it produces a very large amount of progress lines, like in the extract below:

�[0m�[1;34m# Android NDK is missing, downloading�[0m
- Download 0.00%
- Download 0.00%
- Download 0.00%
- Download 0.00%
- Download 0.00%
- Download 0.01%
- Download 0.01%
- Download 0.01%
- Download 0.01%
- Download 0.01%
- Download 0.01%
- Download 0.01%
- Download 0.01%
- Download 0.02%
- Download 0.02%
- Download 0.02%

In total this log file has over 100K lines of - Download ! See attached screenshot and complete log for reference: https://api.travis-ci.org/v3/job/491113892/log.txt
image

To fix the issue, maybe we should make it possible to reduce the verbosity of this download() method. Other suggestions are very welcome.
Side note: same issue exists in p4a via download_file(), but the most annoying currently is buildozer as it generates lager downloads so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions