Skip to content

Conversation

@LysandreJik
Copy link
Member

@LysandreJik LysandreJik commented Apr 11, 2025

The list of tests to fetch became an infinitely growing list with the new init approach; this instead converts it to a dict, and completes the list of importable objects of each key in the dict.

If the key wasn't here previously, it adds it with the list of objects; otherwise, it checks whether the list is incomplete, and completes it.

@github-actions github-actions bot marked this pull request as draft April 11, 2025 10:14
@github-actions
Copy link
Contributor

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

Comment on lines +1055 to 1061
reverse_map = create_reverse_dependency_map()
impacted_files = modified_files.copy()
for f in modified_files:
if f in reverse_map:
impacted_files.extend(reverse_map[f])

# Remove duplicates
Copy link
Member Author

Choose a reason for hiding this comment

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

This just reverts the test-fetcher specific part in the init PR

@LysandreJik LysandreJik marked this pull request as ready for review April 11, 2025 10:14
@ArthurZucker ArthurZucker merged commit f797e3d into main Apr 11, 2025
16 of 24 checks passed
@ArthurZucker ArthurZucker deleted the fix-tests-fetcher-with-new-init branch April 11, 2025 10:19
@HuggingFaceDocBuilderDev

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.

cyr0930 pushed a commit to cyr0930/transformers that referenced this pull request Apr 18, 2025
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
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.

4 participants