Skip to content

[ci]: broaden PR GPU test coverage. - #15365

Open
sayakpaul wants to merge 5 commits into
mainfrom
fix-lora-triggers
Open

sayakpaul wants to merge 5 commits into
mainfrom
fix-lora-triggers

Conversation

@sayakpaul

@sayakpaul sayakpaul commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Fixes the following:

  • https://github.com/huggingface/diffusers/actions/runs/44739185113/job/136298890354 is broken because of how the tests are extracted. Some tests were also missing is_lora marker so they were not getting collected and eventually, not tested. I used this opportunity to also fix the LoRA trigger paths in our CI.

  • Furthermore, the LoRA tests are now a part of standard models and pipelines tests. So, add their corresponding tester mixins, too. Example: LoraTesterMixin, ModularLoraTesterMixin, and LoraMemoryTesterMixin.

  • Missing components from the matrix module: modular pipelines and hooks.

@github-actions github-actions Bot added tests CI size/S PR with diff < 50 LOC labels Nov 20, 2026
@github-actions github-actions Bot added size/M PR with diff < 200 LOC and removed size/S PR with diff < 50 LOC labels Nov 20, 2026
@sayakpaul
sayakpaul marked this pull request as ready for review November 23, 2026 02:26

- name: Extract tests
id: extract_tests
if: matrix.module != 'lora'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So that it skips test-pattern extraction for the lora matrix entry because the next step selects those tests with pytest -m lora tests/. Simplifies things a bit.

# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG: :16:8
run: |
pattern=$(cat ${{ steps.extract_tests.outputs.pattern_file }})

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

schedulers and others can yield empty patterns. So, their -k "$pattern" will be nullified by pytest.

@sayakpaul sayakpaul changed the title [ci]: fix lora triggers in our ci. [ci]: broaden PR GPU test coverage. Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI size/M PR with diff < 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant