Ci monitor support performance (#10965)

This commit is contained in:
Xiaoyu Zhang
2025-09-27 09:11:21 +08:00
committed by GitHub
parent 592ddf374f
commit 2387c22b56
3 changed files with 922 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
pip install requests matplotlib pandas
- name: Run CI Analysis
env:
@@ -43,9 +43,20 @@ jobs:
cd scripts/ci_monitor
python ci_analyzer.py --token $GITHUB_TOKEN --limit ${{ github.event.inputs.limit || '1000' }} --output ci_analysis_$(date +%Y%m%d_%H%M%S).json
- name: Run Performance Analysis
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_FOR_NIGHTLY_CI }}
PYTHONUNBUFFERED: 1
PYTHONIOENCODING: utf-8
run: |
cd scripts/ci_monitor
python ci_analyzer_perf.py --token $GITHUB_TOKEN --limit 500 --output-dir performance_tables_$(date +%Y%m%d_%H%M%S)
- name: Upload Analysis Results
uses: actions/upload-artifact@v4
with:
name: ci-analysis-results-${{ github.run_number }}
path: scripts/ci_monitor/ci_analysis_*.json
path: |
scripts/ci_monitor/ci_analysis_*.json
scripts/ci_monitor/performance_tables_*
retention-days: 30