|
1 | 1 | name: PR - vLLM |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_call: |
| 4 | + pull_request: |
| 5 | + branches: [main] |
| 6 | + types: [opened, reopened, synchronize] |
| 7 | + paths: |
| 8 | + - "**vllm**" |
| 9 | + |
| 10 | +permissions: |
| 11 | + contents: read |
| 12 | + pull-requests: read |
5 | 13 |
|
6 | 14 | env: |
7 | 15 | # CI Image configuration |
|
18 | 26 | FORCE_COLOR: "1" |
19 | 27 |
|
20 | 28 | jobs: |
| 29 | + gatekeeper: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + concurrency: |
| 32 | + group: ${{ github.workflow }}-gate-${{ github.event.pull_request.number }} |
| 33 | + cancel-in-progress: true |
| 34 | + steps: |
| 35 | + - name: Checkout base branch (safe) |
| 36 | + uses: actions/checkout@v5 |
| 37 | + with: |
| 38 | + ref: ${{ github.event.pull_request.base.sha }} |
| 39 | + fetch-depth: 1 |
| 40 | + |
| 41 | + - name: Run permission gate (from base) |
| 42 | + uses: ./.github/actions/pr-permission-gate |
| 43 | + |
21 | 44 | check-changes: |
| 45 | + needs: [gatekeeper] |
| 46 | + if: success() |
22 | 47 | runs-on: ubuntu-latest |
23 | 48 | concurrency: |
24 | | - group: ${{ github.workflow }}-vllm-check-changes-${{ github.event.pull_request.number }} |
| 49 | + group: ${{ github.workflow }}-check-changes-${{ github.event.pull_request.number }} |
25 | 50 | cancel-in-progress: true |
26 | 51 | outputs: |
27 | 52 | build-change: ${{ steps.changes.outputs.build-change }} |
@@ -50,10 +75,10 @@ jobs: |
50 | 75 | - "scripts/vllm/**" |
51 | 76 | - "scripts/common/**" |
52 | 77 | - "scripts/telemetry/**" |
| 78 | + - ".github/workflows/pr-vllm*" |
53 | 79 | test-change: |
54 | 80 | - "test/vllm/**" |
55 | 81 |
|
56 | | - # - ".github/workflows/pr-vllm*" |
57 | 82 | # ============================================== |
58 | 83 | # =============== vLLM EC2 jobs ================ |
59 | 84 | # ============================================== |
@@ -111,7 +136,7 @@ jobs: |
111 | 136 | (needs.check-changes.outputs.build-change == 'true' || needs.check-changes.outputs.test-change == 'true') |
112 | 137 | runs-on: ubuntu-latest |
113 | 138 | concurrency: |
114 | | - group: ${{ github.workflow }}-set-vllm-ec2-test-environment-${{ github.event.pull_request.number }} |
| 139 | + group: ${{ github.workflow }}-set-ec2-test-environment-${{ github.event.pull_request.number }} |
115 | 140 | cancel-in-progress: true |
116 | 141 | outputs: |
117 | 142 | aws-account-id: ${{ steps.set-env.outputs.AWS_ACCOUNT_ID }} |
@@ -395,7 +420,7 @@ jobs: |
395 | 420 | (needs.check-changes.outputs.build-change == 'true' || needs.check-changes.outputs.test-change == 'true') |
396 | 421 | runs-on: ubuntu-latest |
397 | 422 | concurrency: |
398 | | - group: ${{ github.workflow }}-set-vllm-rayserve-test-environment-${{ github.event.pull_request.number }} |
| 423 | + group: ${{ github.workflow }}-set-rayserve-test-environment-${{ github.event.pull_request.number }} |
399 | 424 | cancel-in-progress: true |
400 | 425 | outputs: |
401 | 426 | aws-account-id: ${{ steps.set-env.outputs.AWS_ACCOUNT_ID }} |
@@ -679,7 +704,7 @@ jobs: |
679 | 704 | (needs.check-changes.outputs.build-change == 'true' || needs.check-changes.outputs.test-change == 'true') |
680 | 705 | runs-on: ubuntu-latest |
681 | 706 | concurrency: |
682 | | - group: ${{ github.workflow }}-set-vllm-sagemaker-test-environment-${{ github.event.pull_request.number }} |
| 707 | + group: ${{ github.workflow }}-set-sagemaker-test-environment-${{ github.event.pull_request.number }} |
683 | 708 | cancel-in-progress: true |
684 | 709 | outputs: |
685 | 710 | aws-account-id: ${{ steps.set-env.outputs.AWS_ACCOUNT_ID }} |
|
0 commit comments