Skip to content

[CI] Add ftfy as a test dependency#13155

Open
DN6 wants to merge 6 commits intomainfrom
add-ftfy-test-deps
Open

[CI] Add ftfy as a test dependency#13155
DN6 wants to merge 6 commits intomainfrom
add-ftfy-test-deps

Conversation

@DN6
Copy link
Collaborator

@DN6 DN6 commented Feb 17, 2026

What does this PR do?

We had k-diffusion as a test dependency, which in turn installed clip-anytorch which had ftfy as a dependency. This is why all the tests with pipelines using ftfy were passing even though we never had it in our test deps.

We removed k-diffusion from the library since it's no longer maintained and this resulted in ftfy also getting inadvertently removed.

Adding it back here as a test dep.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DN6 DN6 requested review from dg845 and sayakpaul February 17, 2026 11:38
@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.

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Just a comment on re-installing test related deps given we already install them:

RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"

- name: Install dependencies
run: |
uv pip install -e ".[quality]"
uv pip install -e ".[quality,test]"
Copy link
Member

Choose a reason for hiding this comment

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

What's happening here?

We already do it right?

RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fine to remove, but we'd have to merge just the changes to setup.py with the CI on this PR failing and then run a build and push up the images.

Thought it would be better just remove in a follow up.

- name: Install dependencies
run: |
uv pip install -e ".[quality]"
uv pip install -e ".[quality,test]"
Copy link
Member

Choose a reason for hiding this comment

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

Same.

- name: Install dependencies
run: |
uv pip install -e ".[quality]"
uv pip install -e ".[quality,test]"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this change also be added to the push workflows such as push_tests.yml? For example here:

uv pip install -e ".[quality]"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So the reason it's here is to just verify everything is passing. We install test deps when building the Docker images.

RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"

Will remove this from the workflow once setup.py is merged to main and we push up the new images.

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