Skip to content

Fix stupid test fetcher - #45140

Merged
ydshieh merged 4 commits into
mainfrom
stupid_fetcher
Mar 31, 2026
Merged

ydshieh merged 4 commits into
mainfrom
stupid_fetcher

Conversation

@ydshieh

@ydshieh ydshieh commented Mar 31, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Really stupid ...

Currently, change a docstring will count as "modified files", then the impacted files and test files to run are computed.

Say, we add a comment to bert, many files impacted (via dependency) then many test files to run.

This PR avoid this waste.

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: bert

… get_diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@HuggingFaceDocBuilderDev

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.

This reverts commit fd58eac.

@tarekziade tarekziade left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice! LGTM. bonus point if we add a small test

…get_diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ydshieh
ydshieh enabled auto-merge March 31, 2026 10:47
@ydshieh
ydshieh added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 09a0bbb Mar 31, 2026
20 checks passed
@ydshieh
ydshieh deleted the stupid_fetcher branch March 31, 2026 11:06
sirzechs66 pushed a commit to sirzechs66/transformers that referenced this pull request Mar 31, 2026
* comment

* fix(tests_fetcher): skip files with docstring/comment-only changes in get_diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Revert "comment"

This reverts commit fd58eac.

* test(tests_fetcher): add test for docstring-only change exclusion in get_diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request Apr 4, 2026
* comment

* fix(tests_fetcher): skip files with docstring/comment-only changes in get_diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Revert "comment"

This reverts commit fd58eac.

* test(tests_fetcher): add test for docstring-only change exclusion in get_diff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

3 participants