remote-build spams terminal

Bug #1979154 reported by Alan Pope 🍺🐧🐱 🦄
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
High
Unassigned

Bug Description

Using latest snapcraft from latest/stable channel on 22.04.
$ snapcraft version
snapcraft 7.0.7

Trying to use remote-build, and it's outputing the percentage progress on new lines, rather than re-writing the line. I did it in tmux and plain Konsole terminal, and the same effect occurs.
```
$ snapcraft remote-build
snapcraft remote-build is experimental and is subject to change - use with caution.
Using build ID snapcraft-piqueserver-e5126b560682d4bdc4eb125449d787a9
Found previously started build.
Build status for arch ppc64el: Currently building
Build status for arch amd64: Currently building
Build status for arch s390x: Needs building
Build status for arch arm64: Needs building
Build status for arch armhf: Needs building
Do you wish to recover this build? [Y/n]: y
Building snap package for amd64, arm64, armhf, i386, ppc64el, and s390x. This may take some time to finish.
Build status as of 2022-06-19 23:37:51.131230: Build status as of 2022-06-19 23:37:51.131230:

        arch=ppc64el state=Currently building arch=ppc64el state=Currently building

        arch=amd64 state=Currently building arch=amd64 state=Currently building

        arch=s390x state=Needs building arch=s390x state=Needs building

        arch=arm64 state=Needs building arch=arm64 state=Needs building

        arch=armhf state=Needs building arch=armhf state=Needs building
        arch=armhf state=Needs building - (2.0s) arch=armhf state=Needs building \ (2.1s) arch=armhf state=Needs building | (2.2s) arch=armhf state=Needs building / (2.3s) arch=armhf state=Needs building - (2.4s) arch=armhf state=Needs building \ (2.5s) arch=armhf state=Needs building | (2.6s) arch=armhf state=Needs building / (2.7s) arch=armhf state=Needs building - (2.8s) arch=armhf state=Needs building \ (2.9s) arch=armhf state=Needs building | (3.0s)
```

Launchpad is messing with the above output. Every line which starts arch=armhf" is a new line. Screenshot shows it better.

Every so often it prints a summary then goes back to spamming the terminal with the progress update again.

Tags: craft-1150
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
description: updated
description: updated
Changed in snapcraft:
status: New → Triaged
importance: Undecided → High
tags: added: craft-1150
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.