Skip to content

Support kernels in list_liked_repos#4078

Merged
Wauplin merged 2 commits intomainfrom
kernels-likes
Apr 9, 2026
Merged

Support kernels in list_liked_repos#4078
Wauplin merged 2 commits intomainfrom
kernels-likes

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented Apr 9, 2026

Should fix test_list_likes_on_production in CI.

list_liked_repos now returns a .kernels list field.

Endpoint https://huggingface.co/api/users/julien-c/likes now returns a new field for 'kernels' likes.


Note: also fix ongoing error with test_cp_error_bucket_to_repo. This is due to a ValueError not propagated as a Typer.BadParameter. Now correctly done and tested.


Note

Low Risk
Low risk: small, additive API surface change (new UserLikes.kernels) plus a CLI error-handling tweak; main risk is minor downstream breakage for code constructing UserLikes manually.

Overview
HfApi.list_liked_repos now returns kernel likes via a new UserLikes.kernels field, and the response parsing includes repos with type == "kernel".

Updates the production test to account for kernels in the total likes count, and improves hf buckets cp remote-to-remote behavior by converting ValueError from api.copy_files into a typer.BadParameter (cleaner CLI error).

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

@Wauplin Wauplin requested a review from hanouticelina April 9, 2026 14:17
@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment Bot commented Apr 9, 2026

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.

Copy link
Copy Markdown
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Wauplin Wauplin merged commit 15b61c9 into main Apr 9, 2026
17 of 21 checks passed
@Wauplin Wauplin deleted the kernels-likes branch April 9, 2026 14:54
Wauplin added a commit that referenced this pull request Apr 9, 2026
* Support kernels likes

* raise badparameter on ValueError
@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.10.1 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.

2 participants