[CI] Improve Lark CI cards: structured layout, PDT timestamps, slow-only queue digest (#37884)

This commit is contained in:
Liangsheng Yin
2026-09-03 16:18:56 -07:00
committed by GitHub
parent b44496389c
commit 8b0501399e
3 changed files with 233 additions and 118 deletions
+5 -4
View File
@@ -9,7 +9,7 @@ on:
branches: [main]
schedule:
- cron: '*/15 * * * *' # runner-health
- cron: '30 */6 * * *' # queue-digest
- cron: '30 */8 * * *' # queue-digest
workflow_dispatch:
inputs:
task:
@@ -105,7 +105,7 @@ jobs:
queue-digest:
if: >-
github.repository == 'sgl-project/sglang' && (
(github.event_name == 'schedule' && github.event.schedule == '30 */6 * * *') ||
(github.event_name == 'schedule' && github.event.schedule == '30 */8 * * *') ||
(github.event_name == 'workflow_dispatch' && inputs.task == 'queue-digest')
)
runs-on: ubuntu-latest
@@ -119,7 +119,8 @@ jobs:
python-version: '3.12'
- name: Post queue digest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PAT: an 8h window is ~400-500 API calls, too close to GITHUB_TOKEN's 1000/h
GITHUB_TOKEN: ${{ secrets.GH_PAT_FOR_NIGHTLY_CI_DATA }}
LARK_WEBHOOK: ${{ secrets.LARK_WEBHOOK }}
run: |
python scripts/ci_monitor/lark_notify.py $DRY_RUN_FLAG queue-digest --hours 6
python scripts/ci_monitor/lark_notify.py $DRY_RUN_FLAG queue-digest --hours 8 --only-if-slow