Progress bar flickers #493
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#493
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Note that there is a fix-ish PR here by roberth, which prevents redrawing the progress bar if there is no change in the rendered text: https://github.com/NixOS/nix/pull/11380
Whether this is the correct fix, or whether this is better solved by sending fewer progress updates to begin with, is another question entirely. Or perhaps both. Either way, there is room for improvement in this subsystem.
But the flickering is, in general, because we are redrawing the progress bar very often, and often unnecessarily so.
This issue was mentioned on Gerrit on the following CLs:
I have this patch that does the same thing as the 11380 nixos PR, but I have the following question:
nixos
ProgressBar
still doesn't supportmultiline
andmultiline-with-logs
, so they still only have one statement that generate output. I'm wondering if using a string and concatenating all the previouswriteLogsToStderr
calls to the string before returning it is the right way to do thatI'm wondering what would be the best way to test this, at least manually, since I still have the impression that it's flaky sometime, but I don't know if it's due to the fact that my terminal (alacritty) is slow / has bad latency or my desktop is powerful enough to make it look flaky anyways because it takes very little time to compile stuff.
If you prefer, I can open a CL on gerrit, but I wasn't sure if it was worth it since I cannot really prove that it's better with this patch.
Fixed by: https://gerrit.lix.systems/c/lix/+/2174, I think