Adding nightly tests as release guard for bot bump workflows (#13655)

This commit is contained in:
Douglas Yang
2025-11-20 10:04:36 -08:00
committed by GitHub
parent 2dec555d36
commit fc9efdcb98
3 changed files with 49 additions and 0 deletions
@@ -15,6 +15,8 @@ permissions:
jobs:
bump-sglang-version:
runs-on: ubuntu-latest
outputs:
branch_name: ${{ steps.set_output.outputs.branch_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -31,6 +33,7 @@ jobs:
pip install tomli
- name: Configure Git and branch
id: set_output
run: |
git config user.name "sglang-bot"
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}"
git checkout -b "$BRANCH_NAME"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
- name: Run SGLang version bump script
run: |
@@ -48,3 +52,10 @@ jobs:
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
run: |
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