rerun-test: show running state in reply comment (#25018)

This commit is contained in:
Liangsheng Yin
2026-05-11 17:04:29 -07:00
committed by GitHub
parent 34555aee9c
commit de098f4f4d
3 changed files with 173 additions and 108 deletions
+34 -4
View File
@@ -72,6 +72,9 @@ jobs:
if: inputs.is_cpu != 'true'
runs-on: ${{ inputs.runner_label }}
timeout-minutes: 120
permissions:
contents: read
issues: write
env:
RUNNER_LABELS: ${{ inputs.runner_label }}
SGLANG_CI_RDMA_ALL_DEVICES: ${{ inputs.runner_label == '8-gpu-h20' && 'mlx5_1,mlx5_2,mlx5_3,mlx5_4' || '' }}
@@ -81,6 +84,21 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || github.sha }}
- name: Mark runner picked up
if: inputs.reply_comment_id != '' && inputs.reply_marker != ''
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "${{ inputs.runner_label }}" == "1-gpu-5090" ]]; then
source /etc/profile.d/sglang-ci.sh
fi
python3 scripts/ci/utils/update_rerun_test_status.py \
--comment-id "${{ inputs.reply_comment_id }}" \
--marker "${{ inputs.reply_marker }}" \
--status running \
--repo "${{ github.repository }}"
- uses: ./.github/actions/check-maintenance
- name: Install dependencies
@@ -143,6 +161,9 @@ jobs:
if: inputs.is_cpu == 'true'
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
contents: read
issues: write
steps:
- name: Free disk space
run: |
@@ -154,6 +175,18 @@ jobs:
with:
ref: ${{ inputs.pr_head_sha || github.sha }}
- name: Mark runner picked up
if: inputs.reply_comment_id != '' && inputs.reply_marker != ''
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 scripts/ci/utils/update_rerun_test_status.py \
--comment-id "${{ inputs.reply_comment_id }}" \
--marker "${{ inputs.reply_marker }}" \
--status running \
--repo "${{ github.repository }}"
- uses: ./.github/actions/check-maintenance
- name: Set up Python
@@ -226,9 +259,6 @@ jobs:
with:
python-version: '3.10'
- name: Install dependencies
run: pip install requests
- name: Write back result to reply comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -238,7 +268,7 @@ jobs:
else
STATUS=failure
fi
python3 scripts/ci/utils/write_rerun_test_result.py \
python3 scripts/ci/utils/update_rerun_test_status.py \
--comment-id "${{ inputs.reply_comment_id }}" \
--marker "${{ inputs.reply_marker }}" \
--status "$STATUS" \