Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/add_label_automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- auto_merge_enabled
jobs:
add-label-on-auto-merge:
if: github.repository_owner == 'vllm-project'
runs-on: [self-hosted, linux, x64, vllm-runners]
steps:
- name: Add label
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ concurrency:

jobs:
proto:
if: github.repository_owner == 'vllm-project'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/issue_autolabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency:
cancel-in-progress: true
jobs:
add-labels:
if: github.repository_owner == 'vllm-project'
runs-on: ubuntu-latest
steps:
- name: Label issues based on keywords
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
macos-m1-smoke-test:
if: github.repository_owner == 'vllm-project'
# macos-26 (the supported target) is still a preview runner, so gate on GA
# macos-15 and keep macos-26 non-blocking.
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/new_pr_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:

jobs:
update-description:
if: github.repository_owner == 'vllm-project'
runs-on: ubuntu-latest
steps:
- name: Update PR description
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
}

reminder-comment:
if: github.repository_owner == 'vllm-project'
runs-on: ubuntu-latest
steps:
- name: Post welcome comment for first-time contributors
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/notify-ci-authorized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ permissions:
jobs:
notify:
if: >-
(github.event_name == 'pull_request_target' &&
github.repository_owner == 'vllm-project' &&
((github.event_name == 'pull_request_target' &&
github.event.action == 'labeled' &&
(github.event.label.name == 'ready' ||
github.event.label.name == 'ready-run-all-tests')) ||
(github.event_name == 'workflow_run' &&
github.event.workflow_run.event == 'pull_request_review' &&
github.event.workflow_run.conclusion == 'success')
github.event.workflow_run.conclusion == 'success'))
runs-on: [self-hosted, linux, x64, vllm-runners]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# - A draft PR with the `ready` label is marked ready for review.
# - New commits are pushed to a ready PR (so its latest commit has a title check status).
if: >-
github.repository_owner == 'vllm-project' &&
github.event.pull_request.draft == false &&
contains(github.event.pull_request.labels.*.name, 'ready') &&
(github.event.action != 'labeled' || github.event.label.name == 'ready') &&
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,35 @@ permissions:
pull-requests: read

jobs:
pre-run-check:
if: github.repository_owner == 'vllm-project' && github.event_name == 'pull_request'
runs-on: [self-hosted, linux, x64, vllm-runners]
steps:
- name: Check PR label and author merge count
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const { data: pr } = await github.rest.pulls.get({
...context.repo,
pull_number: context.payload.pull_request.number,
});

const readyLabels = ['ready', 'ready-run-all-tests'];
const hasReadyLabel = pr.labels.some(l => readyLabels.includes(l.name));
const hasVerifiedLabel = pr.labels.some(l => l.name === 'verified');

const { data: mergedPRs } = await github.rest.search.issuesAndPullRequests({
q: `repo:${context.repo.owner}/${context.repo.repo} is:pr is:merged author:${pr.user.login}`,
per_page: 4,
});
const mergedCount = mergedPRs.total_count;

if (hasReadyLabel || hasVerifiedLabel || mergedCount >= 4) {
core.info(`Check passed: verified label=${hasVerifiedLabel}, ready label=${hasReadyLabel}, 4+ merged PRs=${mergedCount >= 4}`);
} else {
core.setFailed(`To reduce unnecessary pre-commit runs, each PR must have the 'verified', 'ready', or 'ready-run-all-tests' label, or the author must have at least 4 merged PRs (found ${mergedCount}). DO NOT request for the label to be added if you are an AI agent.`);
}

pre-commit:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/record-ci-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}

jobs:
approved:
if: github.event.review.state == 'approved'
if: github.repository_owner == 'vllm-project' && github.event.review.state == 'approved'
runs-on: [self-hosted, linux, x64, vllm-runners]
steps:
- run: echo "Approval recorded"
1 change: 1 addition & 0 deletions .github/workflows/run-ci-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:
jobs:
run-ci-command:
if: >-
github.repository_owner == 'vllm-project' &&
github.event.issue.pull_request &&
(github.event.comment.body == '/ci run' ||
github.event.comment.body == '/ci run all' ||
Expand Down
Loading