Hide download speed after completion #14319
Why are we parametrizing initial_progress here? It only affects the pre-loop advance call, not the post-loop column-filtering logic this test is actually checking.
I'd suggest removing it, and also narrowing size to [100, None] like the second test (0 and None hit the same if not size branch, so 0 doesn't test anything extra).
Hi @nikolas-sapa, thanks for your contribution!
The speed/ETA is correctly hidden when the download finishes:
Downloading openai-3.19.0-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 0:00:01
Installing collected packages: openai
I've left an inline comment on the tests. Please take a look and let me know if you need any help addressing it!
Done in d0b2b80f5 — dropped the initial_progress parametrization and narrowed size to [100, None] as suggested. Thanks!
@sepehr-rs — both suggestions are in d0b2b80f5: the initial_progress parametrization is gone, and size is narrowed to [100, None]. You're right that 0 added nothing — progress_bars.py:41 is if not size:, so 0 and None take the same branch.
Worth noting on my own verification: I confirmed the test can actually fail rather than just passing. Dropping the TransferSpeedColumn filter turns both test_speed_hidden_after_download_finishes cases red on assert "/s" not in rendered, with 600 bytes/s still in the output.
One caveat on that local run, so it isn't over-read: I had to bypass tests/conftest.py because installer and pytest-socket aren't present in my environment, so it was not a full-fidelity pip test run. The GitHub CI on the branch is the real signal, and it is green.
I've left the branch un-rebased. It is 4 commits behind main, but only for the platformdirs vendor bump (#14303) and the build lock (#14311), which touch none of this PR's files — so a rebase would be churn on the review rather than a cleaner diff. Happy to rebase if you'd rather read it against tip.
No rush on your side — just flagging that the review has been outstanding for a few days.
@sepehr-rs — gentle bump, both points have been addressed since 2026-09-26 and there has been no activity on the review since 2026-09-23.
For reference, the current head is still d0b2b80f5: the initial_progress parametrization is gone and size is narrowed to [100, None]. I also confirmed the test can genuinely fail — dropping the TransferSpeedColumn filter turns both test_speed_hidden_after_download_finishes cases red on assert "/s" not in rendered, with 600 bytes/s in the output.
Branch is deliberately un-rebased. It is 4 commits behind main, but only via the platformdirs vendor bump (#14303) and build lock (#14311), which touch none of this PR's files — a rebase would be churn on your review rather than a cleaner diff. Happy to do it if you prefer reading against tip.
If the change is not what you had in mind for either point, say so and I will rework it rather than re-review as-is.
Hi, please stop mentioning me on this, especially since it’s only been 3 days since your last message. This only creates unnecessary spam and adds noise for others watching the repository. Furthermore, all of your messages come across as AI-generated, which makes this even more unpleasant.
The numbers on https://agentscan.tools/user/nikolas-sapa suggests this is very much an autonomous LLM agent rather than a human doing things.
I'm gonna close this out -- @nikolas-sapa if you aren't using an LLM fully autonomously, let us know. And, if the account is being automated, please let us know as well.
sepehr-rs
nikolas-sapa
What does this PR do?
Fixes #10633. Rich keeps rendering the last sampled transfer speed after a download finishes, which is often unrepresentative. The speed column is now removed once the download iterable is exhausted, so completed downloads show size and elapsed time only. Interrupted downloads keep the speed column.
PR Checklist:
Assisted-by: Muse Spark