[CI] Trial Sourcery PR reviews · Issue #13452 · huggingface/diffusers · GitHub
Skip to content

[CI] Trial Sourcery PR reviews #13452

Open

Description

@iwr-redmond

This is a followup to #13343 that continues to consider ways in which PRs can be managed more efficiently.

You may wish to consider trialing Sourcery PR reviews, which are free for open-source repositories. This would facilitate the automation of at least some first-stage PR reviews, while also allowing Diffusers team members to quickly ascertain whether PR authors are actively working on their code in response to feedback.

Sourcery reviews

Sourcery reviews include:

Security scanning is also available as a paid product, but that feature falls outside the scope of what I am proposing here.

I have collated a few recent examples that show what Sourcery produces versus Copilot and Gemini when reviewing PRs:

These examples suggest that Sourcery reviews generate more useful data than either Copilot or Gemini, which are both paid products.

Staged Implementation

As a starting point, you could enable the AI and rule based reviews, which are mostly set-and-forget one time setup tasks. If the basic setup goes well and proves useful, additional developer time could be used to develop custom quality rules that reflect Diffusers' coding standards. This might be informed by an analysis of recent third-party PRs to identify common problems with incoming code that could be identified using rule-based checks.

Versus Claude

I have seen that Claude is being used selectively to review PRs. An alternative may be to trigger Claude reviews automatically rather than adopting another tool. However, Claude reviews have some cost to them and it may therefore still be worth considering a free addition to PR workflows.

Activity

  1. iwr-redmond commented on Aug 27, 2026

    @iwr-redmond
    Author

    If the reporting is true cost may no longer be much of an issue, so as an alternative to Sourcery you may be able to simply finetune something like GLM-5.3 Flash specifically for initial reviews.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions