Skip to content

[CLI] Remove progress bars on skills update#4179

Merged
Wauplin merged 1 commit into
mainfrom
remove-progress-bars-on-skills-update
May 4, 2026
Merged

[CLI] Remove progress bars on skills update#4179
Wauplin merged 1 commit into
mainfrom
remove-progress-bars-on-skills-update

Conversation

@Wauplin

@Wauplin Wauplin commented May 4, 2026

Copy link
Copy Markdown
Collaborator

When doing a hf skills update or hf skills add, some files are downloaded from HF Bucket https://huggingface.co/buckets/huggingface/skills (see #4175) which produces unrelated logs/progress bars in the CLI "downloading files from bucket". Let's remove this as it's misleading to the user in a "skills update" context.

To simplify some logic, I've also made disable_progress_bars usable as a context manager. I've also updated the tests to use pytest syntax (much simpler to read) and made sure everything was still working exactly the same.

I'll merge this PR once CI is clean to avoid having conflicts with my follow-up PR.


Note

Medium Risk
Touches shared progress-bar state management and changes disable_progress_bars into a context-manager class, which could subtly affect global enable/disable behavior across CLI commands if misused.

Overview
Suppresses misleading download progress output during hf skills add/hf skills update by wrapping marketplace/bucket fetches in with disable_progress_bars().

Refactors progress-bar control so disable_progress_bars can be used as a context manager that restores the previous state on exit, and simplifies CLI call sites (buckets cp stdout download, spaces hot-reload file fetch) to use the new pattern.

Rewrites test_utils_tqdm.py to pure pytest style and adds coverage for the new context-manager semantics (restoration, nesting, no-op when already disabled).

Reviewed by Cursor Bugbot for commit a8c1a99. Bugbot is set up for automated code reviews on this repo. Configure here.

@Wauplin Wauplin requested a review from hanouticelina May 4, 2026 08:42
@bot-ci-comment

bot-ci-comment Bot commented May 4, 2026

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin merged commit 57707cf into main May 4, 2026
20 of 21 checks passed
@Wauplin Wauplin deleted the remove-progress-bars-on-skills-update branch May 4, 2026 08:55
@huggingface-hub-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.14.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant