feature: ci failure monitor improvements (#15055)
This commit is contained in:
@@ -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
Reference in New Issue
Block a user