Skip to content

Fix confusing transformers installation in CI#23465

Merged
ydshieh merged 3 commits intomainfrom
fix_future_past_ci
May 19, 2023
Merged

Fix confusing transformers installation in CI#23465
ydshieh merged 3 commits intomainfrom
fix_future_past_ci

Conversation

@ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented May 19, 2023

What does this PR do?

As mentioned in this comment, the transformers in CI runs is not the same one installed during docker image build.

Furthermore, for past CI, we didn't update the docker image daily (there is no need to update the fixed 3rd-packages environment), but the transformers code is the latest one being test against. We get

E   ImportError: cannot import name 'HfDoctestModule' from 'transformers.testing_utils'

as the transformers is the one during docker image build (months ago) which has no HfDoctestModule at the time.

To avoid and fix all such super confusing failures in the future, it's better to install the transformers again in the edit mode in the workflow files.

I don't change the daily CI workflow file yet in this PR - I would wait this PR showing the change actually fix issues.

@ydshieh ydshieh requested a review from amyeroberts May 19, 2023 09:46
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 19, 2023

The documentation is not available anymore as the PR was closed or merged.

@ydshieh ydshieh requested a review from sgugger May 19, 2023 20:01
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Works for me!

@ydshieh ydshieh merged commit 9728f11 into main May 19, 2023
@ydshieh ydshieh deleted the fix_future_past_ci branch May 19, 2023 20:10
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@ydshieh ydshieh mentioned this pull request May 22, 2023
gojiteji pushed a commit to gojiteji/transformers that referenced this pull request Jun 5, 2023
* fix

* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
* fix

* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.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