@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 9b3e2edd30
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 16, 19:30 UTC

[ci] Cancel fastcheck run when PR is marked ready (#7427)

Signed-off-by: kevin <kevin@anyscale.com>

Kevin H. Luu committed Aug 12, 2024 at 10:56 UTC 9b3e2edd30bda2926f38ec114ff82192e8993857
1 file changed +25
.github/workflows/cancel_fastcheck_when_ready.yml new
+25
@@ -0,0 +1,25 @@
1 +name: Cancel fastcheck run when PR is marked ready
2 +
3 +on:
4 + pull_request:
5 + types: [labeled]
6 +
7 +jobs:
8 + cancel-buildkite-run:
9 + if: github.event.label.name == 'invalid'
10 + runs-on: ubuntu-latest
11 + steps:
12 + - name: Cancel Buildkite Run
13 + env:
14 + BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
15 + BUILDKITE_ORG: vllm
16 + BUILDKITE_PIPELINE: fastcheck
17 + run: |
18 + echo "PR branch"
19 + FULL_BRANCH=${{ github.event.pull_request.head.repo.owner.login }}:${{ github.event.pull_request.head.ref }}
20 + LATEST_BUILD_NUMBER=$(curl -H "Authorization: Bearer $BUILDKITE_TOKEN" \
21 + "https://api.buildkite.com/v2/organizations/$BUILDKITE_ORG/pipelines/$BUILDKITE_PIPELINE/builds?branch=$FULL_BRANCH&state[]=scheduled&state[]=running" \
22 + | jq -r '.[0].number')
23 + echo "Latest build number: $LATEST_BUILD_NUMBER"
24 + curl -X POST -H "Authorization: Bearer $BUILDKITE_TOKEN" \
25 + "https://api.buildkite.com/v2/organizations/$BUILDKITE_ORG/pipelines/$BUILDKITE_PIPELINE/builds/$LATEST_BUILD_NUMBER/cancel"