rust-lang / rust-lang/rustup

Unify progress from multiple downloads

Open
#1,078 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Currently the progress bars are a bit misleading because it only tells you progress of the current stage of operation. It would be nice to provide progress across all of the work that has to be completed.

Of course, easier said than done. I presume that this would require Content-Length checks for all the downloads up front, so that some proper measurement can be done.

Another option would be to simply make each download/step be (100 / N) of the progress, but that would result in uneven progress. Not the end of the world but not ideal either.

The current situation, when automating RustUp from a UI like we do in Builder, is that our progress bar regularly jumps from 100% to 0% after each stage completes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing how rustup reports progress for each download stage, then determine how all downloads can contribute to one progress value; done means the progress bar no longer resets between stages and reflects the overall work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.