From 59be8edbf34465773549a536f8c5da631931c008 Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Tue, 25 Feb 2025 11:49:30 +0000 Subject: [PATCH 1/7] add dependabot support and labeler workflow Signed-off-by: Yuanhao Ji --- .github/dependabot.yml | 10 ++++++++++ .github/labeler.yml | 11 +++++++++++ .github/workflows/labeler.yml | 18 ++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..1f4a2269 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" + open-pull-requests-limit: 2 + reviewers: + - "Yikun" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..5637eba5 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +--- +documentation: + - changed-files: + - any-glob-to-any-file: + - '**/*.md' + +ci/build: + - changed-files: + - any-glob-to-any-file: + - '.github/actions/*.yml' + - '.github/workflows/*.yml' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..ba00065e --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: Pull Request Labeler + +on: pull_request_target + +jobs: + label: + name: Label + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Label the PR + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: .github/labeler.yml + sync-labels: false From 9a1a6df335934a5cacbd7a85019e6d6d81d4b0ec Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Tue, 25 Feb 2025 11:54:17 +0000 Subject: [PATCH 2/7] fix Signed-off-by: Yuanhao Ji --- .github/workflows/image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index d3abb6bc..0e58f1e2 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -80,7 +80,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Publish - Login to Quay Container Registry - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && github.repository_owner == 'vllm-project' }} uses: docker/login-action@v3 with: registry: quay.io @@ -94,7 +94,7 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max # only trigger when tag, branch/main push - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name == 'push' && github.repository_owner == 'vllm-project' }} labels: ${{ steps.meta.outputs.labels }} tags: ${{ steps.meta.outputs.tags }} build-args: | From 789270c5682dc62692be48e8ffbeabeb950df871 Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Tue, 25 Feb 2025 12:00:13 +0000 Subject: [PATCH 3/7] update Signed-off-by: Yuanhao Ji --- .github/workflows/image.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 0e58f1e2..88f0de7f 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -65,10 +65,7 @@ jobs: type=pep440,pattern={{raw}} - name: Free up disk space - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 - with: - tool-cache: true - docker-images: false + uses: openmerlin/dockerfile/.github/actions/clean-up - name: Build - Set up QEMU uses: docker/setup-qemu-action@v2 From 72f4fa5b3d377b468a0a4732b33f740eb5083b36 Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Tue, 25 Feb 2025 12:03:55 +0000 Subject: [PATCH 4/7] fix Signed-off-by: Yuanhao Ji --- .github/workflows/image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 88f0de7f..8cb1c874 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -65,7 +65,7 @@ jobs: type=pep440,pattern={{raw}} - name: Free up disk space - uses: openmerlin/dockerfile/.github/actions/clean-up + uses: openmerlin/dockerfile/.github/actions/clean-up@main - name: Build - Set up QEMU uses: docker/setup-qemu-action@v2 From 557c0dc6fde6ea8a277c6a59fc817336bd1f0d2a Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Tue, 25 Feb 2025 12:49:59 +0000 Subject: [PATCH 5/7] revert Signed-off-by: Yuanhao Ji --- .github/workflows/image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 8cb1c874..0e58f1e2 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -65,7 +65,10 @@ jobs: type=pep440,pattern={{raw}} - name: Free up disk space - uses: openmerlin/dockerfile/.github/actions/clean-up@main + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 + with: + tool-cache: true + docker-images: false - name: Build - Set up QEMU uses: docker/setup-qemu-action@v2 From 05f9f2ed3a53afb41a59613dd29d5c4901be35c4 Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Wed, 26 Feb 2025 07:00:04 +0000 Subject: [PATCH 6/7] update Signed-off-by: Yuanhao Ji --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index ba00065e..9b7618c2 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -15,4 +15,4 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: .github/labeler.yml - sync-labels: false + sync-labels: true From 21616c316051748573f1047102f236ab9f7a051c Mon Sep 17 00:00:00 2001 From: Yuanhao Ji Date: Wed, 26 Feb 2025 09:14:43 +0000 Subject: [PATCH 7/7] update Signed-off-by: Yuanhao Ji --- .github/labeler.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 5637eba5..cf82d002 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -2,6 +2,7 @@ documentation: - changed-files: - any-glob-to-any-file: + - 'docs/**' - '**/*.md' ci/build: @@ -9,3 +10,29 @@ ci/build: - any-glob-to-any-file: - '.github/actions/*.yml' - '.github/workflows/*.yml' + +'module:tests': + - changed-files: + - any-glob-to-any-file: + - 'tests/**' + +'module:tools': + - changed-files: + - any-glob-to-any-file: + - 'tools/**' + +'module:ops': + - changed-files: + - any-glob-to-any-file: + - 'vllm_ascend/ops/**' + +'module:quantization': + - changed-files: + - any-glob-to-any-file: + - 'vllm_ascend/quantization/**' + +'module:core': + - changed-files: + - any-glob-to-any-file: + - 'vllm_ascend/*.py' +