Dump plugin overloads CI logs

I am using the dump plugin to download and extract a .zip file, however snapcraft prints out thousands of messages like this…

Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                                                   
Downloading '1.20180924.zip'                 

I propose only one of these messages is printed out, or a flag is added for “non-interactive mode” where snapcraft will not use progress bars display any prompts which can be used when running snapcraft in CI.

3 Likes

I submitted a PR to fix this here: https://github.com/snapcore/snapcraft/pull/2369

1 Like

This doesn’t seem to work still, my Travis logs still overflow even when setting TERM=dumb explicitly.

@sergiusens any ideas what could be going wrong? I thought the code change would have fixed it for sure :frowning:

Did you try it on a snapcraft.yaml with the base: keyword in it? If not, you might need to propose a change to the legacy branch

No, I am not using bases as multipass doesn’t work on Travis CI.

Thanks for the info on that though, I didn’t know it used a separate branch when not using bases. I submitted a new PR for the legacy branch: https://github.com/snapcore/snapcraft/pull/2495