Skip to content

[CI] Consolidate style, Serge review and GPU test bots under @diffusers-bot - #14623

Open
DN6 wants to merge 1 commit into
mainfrom
diffusers-bot
Open

[CI] Consolidate style, Serge review and GPU test bots under @diffusers-bot#14623
DN6 wants to merge 1 commit into
mainfrom
diffusers-bot

Conversation

@DN6

@DN6 DN6 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

We have multiple bot commands available, but they all have different invocations. This PR consolidates everything under a @diffusers-bot command

e.g.

@diffusers-bot style
@diffusers-bot review
@diffusers-bot pytest

Fixes # (issue)

Before submitting

  • Did you use an AI agent (Claude Code, Codex, Cursor, etc.) to help with this PR? If so:
    • Did you read the Coding with AI agents guide?
    • Did you run the self-review skill on the diff?
    • Did you share the final self-review notes in the PR description or a comment?
  • Did you read the contributor guideline?
  • Did you read our philosophy doc? (important for complex PRs)
  • Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?
  • Are you the author (or part of the team) of the model/pipeline (only applicable for model/pipeline related PRs)?

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 a review from sayakpaul August 27, 2026 10:02
@github-actions github-actions Bot added CI size/L PR with diff > 200 LOC labels Aug 27, 2026

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Can we keep the logic of the individual jobs in their own files and invoke them from diffusers_bot.yml? Otherwise, it's just one big file to maintain which could be burdensome.

Additionally, could we share the auth step? I don't think it would hurt to unify the permissions across all the three jobs?

Comment on lines +5 to +7
# @diffusers-bot style run `make style && make quality` and push the fixes to the PR branch
# @diffusers-bot review request a Serge AI review (also works from an inline review comment)
# @diffusers-bot pytest <args> run `pytest <args>` on a GPU runner, e.g.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But the comment is /diffusers-bot though.

github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.issue.state == 'open' &&
contains(github.event.comment.body, '@diffusers-bot review') &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For Serge, we use @askserge, though. I am guessing that should still work?

'. + {installation: {id: $iid}} | .comment.body |= sub("@diffusers-bot review"; "@askserge")' ?

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

Labels

CI size/L PR with diff > 200 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants