Add CI maintenance mode gate to pr-test.yml (#21069)

This commit is contained in:
Lianmin Zheng
2026-03-20 21:27:38 -07:00
committed by GitHub
parent 048d90e165
commit d5473f87c4
2 changed files with 167 additions and 4 deletions

View File

@@ -61,6 +61,7 @@ env:
permissions:
actions: write
contents: read
issues: read
pull-requests: read
jobs:
@@ -88,6 +89,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Show test partition assignments
continue-on-error: true
run: python3 test/show_partitions.py
@@ -329,6 +334,11 @@ jobs:
stage_a_result: ${{ steps.wait.outputs.result }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- uses: ./.github/actions/wait-for-jobs
id: wait
with:
@@ -354,6 +364,11 @@ jobs:
stage_b_result: ${{ steps.wait.outputs.result }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- uses: ./.github/actions/wait-for-jobs
id: wait
with:
@@ -411,6 +426,10 @@ jobs:
submodules: "recursive"
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
@@ -461,6 +480,10 @@ jobs:
submodules: "recursive"
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
@@ -500,6 +523,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Cleanup
run: |
ls -alh sgl-kernel/dist || true
@@ -538,6 +565,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Cleanup
run: |
ls -alh sgl-kernel/dist || true
@@ -571,13 +602,15 @@ jobs:
needs.check-changes.outputs.sgl_kernel == 'true'
runs-on: 1-gpu-h100
timeout-minutes: 240
env:
CI: true
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Cleanup
run: |
ls -alh sgl-kernel/dist || true
@@ -628,6 +661,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Cleanup
run: |
ls -alh sgl-kernel/dist || true
@@ -699,6 +736,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Install dependencies
timeout-minutes: 20
run: |
@@ -724,6 +765,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Install dependencies
timeout-minutes: 20
run: |
@@ -745,13 +790,15 @@ jobs:
needs.check-changes.outputs.jit_kernel == 'true'
runs-on: 1-gpu-h100
timeout-minutes: 240
env:
CI: true
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Install dependencies
timeout-minutes: 20
run: |
@@ -806,6 +853,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -855,6 +906,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Set up Python
uses: actions/setup-python@v5
with:
@@ -901,6 +956,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -958,6 +1017,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1008,6 +1071,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1060,6 +1127,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v6
@@ -1113,6 +1184,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1167,6 +1242,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1218,6 +1297,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1261,6 +1344,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1311,6 +1398,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1377,6 +1468,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1423,6 +1518,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1479,6 +1578,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v4
@@ -1541,6 +1644,10 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || inputs.git_ref || github.sha }}
- uses: ./.github/actions/check-maintenance
with:
github-token: ${{ github.token }}
- name: Download artifacts
if: needs.check-changes.outputs.sgl_kernel == 'true'
uses: actions/download-artifact@v6
@@ -1586,6 +1693,10 @@ jobs:
# strategy:
# fail-fast: false
# steps:
# - uses: ./.github/actions/check-maintenance
# with:
# github-token: ${{ github.token }}
#
# - name: Checkout code
# uses: actions/checkout@v4
# with: