Skip to content

[CI] fix collection test by making its name unique#4279

Merged
Wauplin merged 2 commits into
mainfrom
fix-collection-test
May 27, 2026
Merged

[CI] fix collection test by making its name unique#4279
Wauplin merged 2 commits into
mainfrom
fix-collection-test

Conversation

@Wauplin

@Wauplin Wauplin commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Should fix CI (fixes it locally).

Currently failing because collection used in tests has always the same name, leading to some conflict issues.


Note

Low Risk
Test-only change with no production or API behavior impact.

Overview
Fixes flaky test_collection_items by giving the nested collection a unique title via repo_name() instead of a fixed "nested collection" with exists_ok=True, which could collide across CI runs.

The test now tracks that slug as nested_collection_slug and deletes the nested collection in teardown alongside the parent collection and repos.

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

@Wauplin Wauplin requested a review from hanouticelina May 27, 2026 09:44

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f54d4af. Configure here.

Comment thread tests/test_hf_api.py Outdated
@bot-ci-comment

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 81f1057 into main May 27, 2026
25 of 26 checks passed
@Wauplin Wauplin deleted the fix-collection-test branch May 27, 2026 09:53
@huggingface-hub-bot

Copy link
Copy Markdown
Contributor

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