ci: move metrics scripts under scripts/ci/utils (#20986)
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/amd-ci-job-monitor.yml'
|
||||
- 'scripts/ci/query_job_status.py'
|
||||
- 'scripts/ci/utils/query_job_status.py'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
hours:
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
- name: Generate Custom Job Report
|
||||
timeout-minutes: 30
|
||||
run: |
|
||||
python scripts/ci/query_job_status.py \
|
||||
python scripts/ci/utils/query_job_status.py \
|
||||
--repo ${{ github.repository }} \
|
||||
--job "${{ inputs.job_filter }}" \
|
||||
--workflow "pr-test-amd.yml" \
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
- name: Generate Report
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
python scripts/ci/query_job_status.py \
|
||||
python scripts/ci/utils/query_job_status.py \
|
||||
--repo ${{ github.repository }} \
|
||||
--job "${{ matrix.job_name }}" \
|
||||
--workflow "pr-test-amd.yml" \
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
- name: Generate Nightly Report
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
python scripts/ci/query_job_status.py \
|
||||
python scripts/ci/utils/query_job_status.py \
|
||||
--repo ${{ github.repository }} \
|
||||
--job "${{ matrix.job_name }}" \
|
||||
--workflow "nightly-test-amd.yml" \
|
||||
|
||||
@@ -157,7 +157,7 @@ jobs:
|
||||
- name: Collect performance metrics
|
||||
if: always()
|
||||
run: |
|
||||
python3 scripts/ci/save_metrics.py \
|
||||
python3 scripts/ci/utils/save_metrics.py \
|
||||
--gpu-config 8-gpu-h200 \
|
||||
--partition ${{ matrix.partition }} \
|
||||
--run-id ${{ github.run_id }} \
|
||||
@@ -257,7 +257,7 @@ jobs:
|
||||
- name: Collect performance metrics
|
||||
if: always()
|
||||
run: |
|
||||
python3 scripts/ci/save_metrics.py \
|
||||
python3 scripts/ci/utils/save_metrics.py \
|
||||
--gpu-config 8-gpu-b200 \
|
||||
--partition ${{ matrix.partition }} \
|
||||
--run-id ${{ github.run_id }} \
|
||||
@@ -434,7 +434,7 @@ jobs:
|
||||
- name: Collect diffusion performance metrics
|
||||
if: always()
|
||||
run: |
|
||||
python3 scripts/ci/save_diffusion_metrics.py \
|
||||
python3 scripts/ci/utils/save_diffusion_metrics.py \
|
||||
--gpu-config 1-gpu-runner \
|
||||
--run-id ${{ github.run_id }} \
|
||||
--output python/diffusion-metrics-1gpu-partition-${{ matrix.part }}.json \
|
||||
@@ -490,7 +490,7 @@ jobs:
|
||||
- name: Collect diffusion performance metrics
|
||||
if: always()
|
||||
run: |
|
||||
python3 scripts/ci/save_diffusion_metrics.py \
|
||||
python3 scripts/ci/utils/save_diffusion_metrics.py \
|
||||
--gpu-config 2-gpu-runner \
|
||||
--run-id ${{ github.run_id }} \
|
||||
--output python/diffusion-metrics-2gpu-partition-${{ matrix.part }}.json \
|
||||
@@ -589,7 +589,7 @@ jobs:
|
||||
|
||||
- name: Merge metrics
|
||||
run: |
|
||||
python3 scripts/ci/merge_metrics.py \
|
||||
python3 scripts/ci/utils/merge_metrics.py \
|
||||
--input-dir metrics/ \
|
||||
--output consolidated-metrics-${{ github.run_id }}.json \
|
||||
--run-id ${{ github.run_id }} \
|
||||
|
||||
@@ -114,24 +114,24 @@ jobs:
|
||||
with:
|
||||
filters: |
|
||||
main_package:
|
||||
- "python/sglang/!(multimodal_gen)/**"
|
||||
- ".github/workflows/pr-test.yml"
|
||||
- "python/pyproject.toml"
|
||||
- "python/sglang/!(multimodal_gen)/**"
|
||||
- "scripts/ci/cuda/*"
|
||||
- "scripts/ci/utils/*"
|
||||
- "test/**"
|
||||
- ".github/workflows/pr-test.yml"
|
||||
sgl_kernel:
|
||||
- "sgl-kernel/**"
|
||||
jit_kernel:
|
||||
- "python/sglang/jit_kernel/**"
|
||||
- "python/pyproject.toml"
|
||||
- ".github/workflows/pr-test.yml"
|
||||
multimodal_gen:
|
||||
- ".github/workflows/pr-test.yml"
|
||||
- "python/pyproject.toml"
|
||||
- "python/sglang/multimodal_gen/**"
|
||||
- "python/sglang/jit_kernel/**"
|
||||
- "python/sglang/cli/**"
|
||||
- "python/pyproject.toml"
|
||||
jit_kernel:
|
||||
- ".github/workflows/pr-test.yml"
|
||||
- "python/pyproject.toml"
|
||||
- "python/sglang/jit_kernel/**"
|
||||
sgl_kernel:
|
||||
- "sgl-kernel/**"
|
||||
|
||||
# For /rerun-stage (workflow_dispatch with target_stage), dorny/paths-filter doesn't work
|
||||
# correctly because it falls back to "last commit" detection which breaks for merge commits.
|
||||
|
||||
Reference in New Issue
Block a user