[CI] Improve Lark CI cards: structured layout, PDT timestamps, slow-only queue digest (#37884)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user