Goals -------
# Leverage modern AI-powered code review tools to accelerate and supplement human review efforts. # Prevent AI-generated comments from cluttering the mailing list or polluting the main DPDK GitHub repository. Setup ------- # Create a dedicated repository: Set up a new repository, for example: https://github.com/DPDK/dpdk-ai-code-review, under the official DPDK GitHub organization. This ensures that AI-generated pull requests do not interfere with the main repository (https://github.com/DPDK/dpdk). # Select an AI review tool: Use a free, open-source-friendly AI code review service. One potential candidate is Sourcery: https://sourcery.ai/pricing # Connect the tool: Integrate Sourcery with the new repository via: https://app.sourcery.ai/?product=prod_opensource # Trigger AI reviews: Once integrated, any pull request to this repository will automatically trigger a code review by the AI tool. Example of a test PR reviewed by the AI bot: https://github.com/MarvellEmbeddedProcessors/dao/pull/2 Workflow ------------- # When a patch is sent to the DPDK mailing list, a bot will convert it into a GitHub pull request on the dpdk-ai-code-review repository. # The AI tool will review the pull request and leave comments directly on the PR. # Once the AI review is complete, the bot will close the PR and share the PR URL: - As a comment in Patchwork URL for the given patch - With the patch author directly. # The author can review the AI-generated comments by visiting the PR URL, if they choose to do so.