Skip to content

[CI] Introduce rules for llama auto-label - #19323

Merged
houseroad merged 1 commit into
vllm-project:mainfrom
houseroad:add_llama_label
Jun 9, 2025
Merged

houseroad merged 1 commit into
vllm-project:mainfrom
houseroad:add_llama_label

Conversation

@houseroad

@houseroad houseroad commented Jun 8, 2025 •

Copy link
Copy Markdown
Contributor

Essential Elements of an Effective PR Description Checklist

  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results

Purpose

Automatically tag llama related PRs, simplify the review triage.

Test Plan

Use Mergify simulator to check #19325

Test Result

#19325 is correctly tagged with llama label in the simulator.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new mergify rule to automatically apply the "llama" label on pull requests that modify files related to llama.

  • Added a new mergify rule named "label-llama" with specific file matching conditions.
  • The rule will append the "llama" label when files matching one of the listed patterns are modified.

@github-actions

github-actions Bot commented Jun 8, 2025

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hello @houseroad, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello! Gemini or gemini-code-assist here, providing a summary of this pull request. The primary goal of this PR, as outlined in the description, is to automate the labeling of pull requests that are related to the 'llama' model. This automation aims to streamline the review triage process by automatically applying the 'llama' label when changes are made to specific files identified as relevant to llama implementations or examples. The core change involves adding a new rule to the Mergify configuration file (.github/mergify.yml) to handle this automatic labeling.

Highlights

  • CI/CD Automation: Introduces a new automated rule within the Continuous Integration/Continuous Deployment (CI/CD) setup to label pull requests.
  • Mergify Configuration: Adds a new rule to the .github/mergify.yml file to automatically apply the 'llama' label based on file path patterns.
  • Review Triage Improvement: Aims to simplify the process of identifying and triaging pull requests related to the llama model by applying a consistent label.

Changelog

  • .github/mergify.yml
    • Added a new pull_request_rules entry named label-llama.
    • Configured the label-llama rule with conditions that check if any changed file matches specific regex patterns (e.g., files in examples/tool_chat_template_llama, tests containing 'llama', and various vllm paths related to llama models, parsers, or configs).
    • Defined the action for the label-llama rule to add the llama label to the pull request if the conditions are met.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@mergify mergify Bot added the ci/build label Jun 8, 2025

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new Mergify rule to automatically label PRs related to 'llama'. This is a good initiative to streamline the review process. The core logic seems fine, but there are a couple of suggestions regarding the regex patterns for file matching to ensure comprehensive coverage and consistency. Additionally, the test plan in the PR description is marked as TODO, and it would be beneficial to see the test results before merging.

Summary of Findings

  • Regex Pattern Specificity in examples/: The regex for examples/tool_chat_template_llama.*\.py is very specific. Consider if a more general pattern like ^examples/.*llama.*\.py would better capture all relevant llama-related Python examples.
  • Regex Pattern Inconsistency for transformers_utils/configs/: The pattern ^vllm/transformers_utils/configs/.*llama.py differs from other patterns that use .*llama.*\.py. Suggesting a change to .*llama.*\.py for consistency and broader matching of llama-related config files.
  • Pending Test Plan: The PR description includes a TODO for creating a test PR and adding results. This testing is crucial to confirm the new Mergify rule works as expected.

Merge Readiness

The PR aims to improve CI by auto-labeling llama-related changes, which is a valuable addition. However, there are a couple of suggestions for refining the regex patterns to ensure they are robust and consistent. More importantly, the test plan outlined in the PR description (creating a new PR to trigger this rule and observing the results) is still marked as TODO.

I recommend addressing the regex pattern suggestions and completing the test plan to verify the rule's behavior before this PR is merged. As I am an AI, I am not authorized to approve pull requests; please ensure further review and approval from other team members. Due to the pending tests and suggested improvements, I am requesting changes.

Comment thread .github/mergify.yml Resolved
Comment thread .github/mergify.yml Resolved

@ywang96 ywang96 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.

I think adding a specific label for llama makes sense to me, but I'll let others give a pass too!

Comment thread .github/mergify.yml Resolved
Signed-off-by: Lu Fang <lufang@fb.com>
@houseroad houseroad added the ready ONLY add when PR is ready to merge/full CI is needed label Jun 9, 2025
@houseroad
houseroad merged commit 01810f9 into vllm-project:main Jun 9, 2025
0826joyce pushed a commit to 0826joyce/vllm-serving-optimization that referenced this pull request May 19, 2026
philippesic pushed a commit to philippesic/vllm-semantic-cache that referenced this pull request Jul 19, 2026
plasticchris pushed a commit to plasticchris/vllm that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants