feature: ci failure monitor improvements (#15055)

This commit is contained in:
Douglas Yang
2025-12-13 10:47:52 -08:00
committed by GitHub
parent 5d9c6bac07
commit ea91a720d5
2 changed files with 810 additions and 1116 deletions
+3 -14
View File
@@ -2,19 +2,8 @@ name: CI Failure Monitor
on: on:
schedule: schedule:
- cron: '*/30 * * * *' # Every 30 minutes - cron: '0 * * * *' # Every hour
workflow_dispatch: workflow_dispatch:
inputs:
limit:
description: 'Number of workflow runs to analyze (across all workflows)'
required: false
default: '1000'
type: string
threshold:
description: 'Alert threshold for consecutive failures'
required: false
default: '4'
type: string
concurrency: concurrency:
group: ci-failure-monitor-${{ github.ref }} group: ci-failure-monitor-${{ github.ref }}
@@ -51,8 +40,8 @@ jobs:
cd scripts/ci_monitor cd scripts/ci_monitor
python ci_failures_analysis.py \ python ci_failures_analysis.py \
--token $GITHUB_TOKEN \ --token $GITHUB_TOKEN \
--limit ${{ inputs.limit || '1000' }} \ --limit 100 \
--threshold ${{ inputs.threshold || '4' }} \ --threshold 4 \
--output ci_failure_analysis_$(date +%Y%m%d_%H%M%S).json --output ci_failure_analysis_$(date +%Y%m%d_%H%M%S).json
- name: Upload Analysis Results - name: Upload Analysis Results
File diff suppressed because it is too large Load Diff