slash command rerun UX: emoji semantics + result writeback (#24802)
This commit is contained in:
@@ -44,6 +44,16 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: "false"
|
||||
reply_comment_id:
|
||||
description: "Reply comment ID to write back result to"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
reply_marker:
|
||||
description: "Per-batch marker for locating the line in reply comment"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
env:
|
||||
SGLANG_IS_IN_CI: true
|
||||
@@ -196,3 +206,40 @@ jobs:
|
||||
done
|
||||
total_elapsed=$(( SECONDS - suite_start ))
|
||||
echo "All $total test(s) passed in ${total_elapsed}s"
|
||||
|
||||
write-back-result:
|
||||
needs: [rerun-test-cuda, rerun-test-cpu]
|
||||
if: always() && inputs.reply_comment_id != '' && inputs.reply_marker != ''
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
concurrency:
|
||||
group: rerun-test-writeback-${{ inputs.reply_comment_id }}
|
||||
cancel-in-progress: false
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
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 }}
|
||||
run: |
|
||||
if [[ "${{ needs.rerun-test-cuda.result }}" == "success" || "${{ needs.rerun-test-cpu.result }}" == "success" ]]; then
|
||||
STATUS=success
|
||||
else
|
||||
STATUS=failure
|
||||
fi
|
||||
python3 scripts/ci/utils/write_rerun_test_result.py \
|
||||
--comment-id "${{ inputs.reply_comment_id }}" \
|
||||
--marker "${{ inputs.reply_marker }}" \
|
||||
--status "$STATUS" \
|
||||
--repo "${{ github.repository }}"
|
||||
|
||||
Reference in New Issue
Block a user