Adding nightly tests as release guard for bot bump workflows (#13655)
This commit is contained in:
@@ -10,6 +10,9 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
bump-kernel-version-to-sglang:
|
bump-kernel-version-to-sglang:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
branch_name: ${{ steps.set_output.outputs.branch_name }}
|
||||||
|
needs_sync: ${{ steps.check_sync.outputs.needs_sync }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,6 +35,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Git and branch
|
- name: Configure Git and branch
|
||||||
if: steps.check_sync.outputs.needs_sync == 'true'
|
if: steps.check_sync.outputs.needs_sync == 'true'
|
||||||
|
id: set_output
|
||||||
run: |
|
run: |
|
||||||
git config user.name "sglang-bot"
|
git config user.name "sglang-bot"
|
||||||
git config user.email "sglang-bot@users.noreply.github.com"
|
git config user.email "sglang-bot@users.noreply.github.com"
|
||||||
@@ -41,6 +45,7 @@ jobs:
|
|||||||
git checkout -b "$BRANCH_NAME"
|
git checkout -b "$BRANCH_NAME"
|
||||||
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
|
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
|
||||||
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
|
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
|
||||||
|
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Run kernel version bump script
|
- name: Run kernel version bump script
|
||||||
if: steps.check_sync.outputs.needs_sync == 'true'
|
if: steps.check_sync.outputs.needs_sync == 'true'
|
||||||
@@ -53,3 +58,11 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
||||||
run: |
|
run: |
|
||||||
bash scripts/release/commit_and_pr_kernel_to_sglang.sh "$KERNEL_VERSION" "$BRANCH_NAME"
|
bash scripts/release/commit_and_pr_kernel_to_sglang.sh "$KERNEL_VERSION" "$BRANCH_NAME"
|
||||||
|
|
||||||
|
run-nightly-tests:
|
||||||
|
needs: bump-kernel-version-to-sglang
|
||||||
|
if: needs.bump-kernel-version-to-sglang.outputs.needs_sync == 'true'
|
||||||
|
uses: ./.github/workflows/nightly-test.yml
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.bump-kernel-version-to-sglang.outputs.branch_name }}
|
||||||
|
secrets: inherit
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
bump-sglang-version:
|
bump-sglang-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
branch_name: ${{ steps.set_output.outputs.branch_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -31,6 +33,7 @@ jobs:
|
|||||||
pip install tomli
|
pip install tomli
|
||||||
|
|
||||||
- name: Configure Git and branch
|
- name: Configure Git and branch
|
||||||
|
id: set_output
|
||||||
run: |
|
run: |
|
||||||
git config user.name "sglang-bot"
|
git config user.name "sglang-bot"
|
||||||
git config user.email "sglang-bot@users.noreply.github.com"
|
git config user.email "sglang-bot@users.noreply.github.com"
|
||||||
@@ -38,6 +41,7 @@ jobs:
|
|||||||
BRANCH_NAME="bot/bump-sglang-version-${{ github.event.inputs.new_version }}-${RANDOM_SUFFIX}"
|
BRANCH_NAME="bot/bump-sglang-version-${{ github.event.inputs.new_version }}-${RANDOM_SUFFIX}"
|
||||||
git checkout -b "$BRANCH_NAME"
|
git checkout -b "$BRANCH_NAME"
|
||||||
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
|
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
|
||||||
|
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Run SGLang version bump script
|
- name: Run SGLang version bump script
|
||||||
run: |
|
run: |
|
||||||
@@ -48,3 +52,10 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
||||||
run: |
|
run: |
|
||||||
bash scripts/release/commit_and_pr.sh "SGLang" "${{ github.event.inputs.new_version }}" "$BRANCH_NAME"
|
bash scripts/release/commit_and_pr.sh "SGLang" "${{ github.event.inputs.new_version }}" "$BRANCH_NAME"
|
||||||
|
|
||||||
|
run-nightly-tests:
|
||||||
|
needs: bump-sglang-version
|
||||||
|
uses: ./.github/workflows/nightly-test.yml
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.bump-sglang-version.outputs.branch_name }}
|
||||||
|
secrets: inherit
|
||||||
|
|||||||
@@ -9,6 +9,13 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "python/sglang/version.py"
|
- "python/sglang/version.py"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
ref:
|
||||||
|
description: 'Git ref (branch, tag, or SHA) to test. If not provided, uses the default branch.'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: nightly-test-${{ github.ref }}
|
group: nightly-test-${{ github.ref }}
|
||||||
@@ -21,6 +28,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -38,6 +47,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -67,6 +78,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -84,6 +97,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -116,6 +131,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -133,6 +150,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -152,6 +171,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -171,6 +192,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -192,6 +215,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user