Skip to content

Commit d691d3b

Browse files
Kangyan-Zhousfiisf
authored andcommitted
Improve Per Commit Test job filtering for sglang-kernel (sgl-project#18054)
1 parent b4f2500 commit d691d3b

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed

.github/workflows/pr-test-amd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ jobs:
9999
sgl_kernel:
100100
- "sgl-kernel/**"
101101
- ".github/workflows/pr-test-amd.yml"
102+
# Exclude non-ROCm platform configs and code
103+
- "!sgl-kernel/pyproject_cpu.toml"
104+
- "!sgl-kernel/pyproject.toml"
105+
- "!sgl-kernel/pyproject_musa.toml"
106+
- "!sgl-kernel/setup_musa.py"
107+
- "!sgl-kernel/csrc/cpu/**"
108+
# Exclude documentation and non-functional files
109+
- "!sgl-kernel/README.md"
110+
- "!sgl-kernel/LICENSE"
111+
- "!sgl-kernel/THIRDPARTYNOTICES.txt"
112+
- "!sgl-kernel/.clang-format"
113+
- "!sgl-kernel/analyze_whl_kernel_sizes.py"
114+
- "!sgl-kernel/rename_wheels.sh"
102115
multimodal_gen:
103116
- "python/sglang/multimodal_gen/**"
104117
- "python/sglang/cli/**"

.github/workflows/pr-test-xeon.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ jobs:
5858
- "python/sglang/!(multimodal_gen)/**"
5959
- "python/pyproject_cpu.toml"
6060
- "test/**"
61-
- "sgl-kernel/**"
61+
# Only trigger on CPU-specific sgl-kernel changes
62+
- "sgl-kernel/pyproject_cpu.toml"
63+
- "sgl-kernel/csrc/cpu/**"
64+
- "sgl-kernel/python/**"
65+
- "sgl-kernel/include/**"
66+
- "sgl-kernel/tests/**"
6267
- ".github/workflows/pr-test-xeon.yml"
6368
- "docker/xeon.Dockerfile"
6469

.github/workflows/pr-test-xpu.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ jobs:
5858
- "python/pyproject_xpu.toml"
5959
- "test/**"
6060
- "sgl-kernel/**"
61+
# Exclude non-XPU platform configs and code
62+
- "!sgl-kernel/pyproject_cpu.toml"
63+
- "!sgl-kernel/pyproject_rocm.toml"
64+
- "!sgl-kernel/pyproject_musa.toml"
65+
- "!sgl-kernel/setup_rocm.py"
66+
- "!sgl-kernel/setup_musa.py"
67+
- "!sgl-kernel/csrc/cpu/**"
68+
# Exclude documentation and non-functional files
69+
- "!sgl-kernel/README.md"
70+
- "!sgl-kernel/LICENSE"
71+
- "!sgl-kernel/THIRDPARTYNOTICES.txt"
72+
- "!sgl-kernel/.clang-format"
73+
- "!sgl-kernel/analyze_whl_kernel_sizes.py"
74+
- "!sgl-kernel/rename_wheels.sh"
6175
- ".github/workflows/pr-test-xpu.yml"
6276
- "docker/xpu.Dockerfile"
6377

.github/workflows/pr-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,20 @@ jobs:
122122
- ".github/workflows/pr-test.yml"
123123
sgl_kernel:
124124
- "sgl-kernel/**"
125+
# Exclude non-CUDA platform configs and code
126+
- "!sgl-kernel/pyproject_cpu.toml"
127+
- "!sgl-kernel/pyproject_rocm.toml"
128+
- "!sgl-kernel/pyproject_musa.toml"
129+
- "!sgl-kernel/setup_rocm.py"
130+
- "!sgl-kernel/setup_musa.py"
131+
- "!sgl-kernel/csrc/cpu/**"
132+
# Exclude documentation and non-functional files
133+
- "!sgl-kernel/README.md"
134+
- "!sgl-kernel/LICENSE"
135+
- "!sgl-kernel/THIRDPARTYNOTICES.txt"
136+
- "!sgl-kernel/.clang-format"
137+
- "!sgl-kernel/analyze_whl_kernel_sizes.py"
138+
- "!sgl-kernel/rename_wheels.sh"
125139
jit_kernel:
126140
- "python/sglang/jit_kernel/**"
127141
- "python/pyproject.toml"

0 commit comments

Comments
 (0)