Skip to content

[tests] refactor a* pipeline tests. - #14622

Open
sayakpaul wants to merge 4 commits into
mainfrom
a-series-pipeline-tests
Open

[tests] refactor a* pipeline tests.#14622
sayakpaul wants to merge 4 commits into
mainfrom
a-series-pipeline-tests

Conversation

@sayakpaul

@sayakpaul sayakpaul commented Aug 27, 2026

Copy link
Copy Markdown
Member

Refactor remaining A* pipeline tests. Including deleting the respective tests/lora/test_lora_layers_*.py files, too where relevant as we use the newly added tests/pipelines/testing_utils/lora.py tester mixin.

@github-actions github-actions Bot added size/L PR with diff > 200 LOC tests labels Aug 27, 2026
@sayakpaul

Copy link
Copy Markdown
Member Author

/diffusers-bot pytest tests/pipelines/animatediff/test_animatediff_sdxl.py

@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

pytest tests/pipelines/animatediff/test_animatediff_sdxl.py passed on GPU — view logs.

sayakpaul and others added 3 commits August 27, 2026 09:20
Conflict: tests/pipelines/stable_diffusion/ip_adapter_tester.py was moved to
tests/pipelines/testing_utils/ip_adapter.py on this branch while main edited its
docstring (#14619). Kept this branch's wording, which already covers main's
intent now that the mixin is shared rather than SD-local.

Resolution beyond the conflict markers: #14619 added
`from ..stable_diffusion.ip_adapter_tester import IPAdapterTesterMixin` to four
stable_diffusion_xl test files. That path no longer exists, so they now import
IPAdapterTesterMixin from ..testing_utils like the stable_diffusion ones.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Conflict: tests/pipelines/stable_diffusion/test_stable_diffusion.py — both sides
added entries to the same `..testing_utils` import block. #14559 inlined the
tests/lora/test_lora_layers_sd.py suite (LoraTesterMixin, LoraMemoryTesterMixin)
while this branch added IPAdapterTesterMixin from the promoted shared mixin.
Took the union; all five are used by classes in the file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The `test_dict_tuple_outputs_equivalent` override ported in e10f8d0 carried a
nine-value expected slice that is not the one the pre-migration file used, so CI
failed on CPU with `Shape mismatch: actual torch.Size([6]) vs expected
torch.Size([9])`.

Six is correct: the base test slices `output_tuple[0, -3:, -3:, -1, -1]` and this
pipeline's dummy inputs use `num_frames=2`, so the frame axis yields 2 rather
than 3. Restored the original values, unchanged since #14120.

The literal is only read when `torch_device == "cpu"`, which is why local GPU
runs did not catch it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PR with diff > 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant