88 - main
99 paths :
1010 - " python/sglang/version.py"
11+ - " test/run_suite.py"
1112 workflow_dispatch :
13+ inputs :
14+ job_filter :
15+ description : ' Select which job to run (leave empty or "all" to run all jobs)'
16+ required : false
17+ type : choice
18+ default : ' all'
19+ options :
20+ - ' all'
21+ - ' nightly-test-general-1-gpu-runner'
22+ - ' nightly-test-general-4-gpu-h100'
23+ - ' nightly-test-general-8-gpu-h200'
24+ - ' nightly-test-general-8-gpu-h20'
25+ - ' nightly-test-text-accuracy-2-gpu-runner'
26+ - ' nightly-test-text-perf-2-gpu-runner'
27+ - ' nightly-test-vlm-accuracy-2-gpu-runner'
28+ - ' nightly-test-vlm-perf-2-gpu-runner'
29+ - ' nightly-test-multimodal-server-1-gpu'
30+ - ' nightly-test-multimodal-server-2-gpu'
31+ - ' nightly-test-perf-4-gpu-b200'
32+ - ' nightly-test-perf-8-gpu-b200'
1233 workflow_call :
1334 inputs :
1435 ref :
1536 description : ' Git ref (branch, tag, or SHA) to test. If not provided, uses the default branch.'
1637 required : false
1738 type : string
1839 default : ' '
40+ job_filter :
41+ description : ' Select which job to run (leave empty or "all" to run all jobs)'
42+ required : false
43+ type : string
44+ default : ' all'
1945
2046concurrency :
2147 group : nightly-test-nvidia-${{ github.ref }}
@@ -24,11 +50,13 @@ concurrency:
2450jobs :
2551 # General tests - 1 GPU
2652 nightly-test-general-1-gpu-runner :
27- if : github.repository == 'sgl-project/sglang'
53+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-general-1-gpu-runner')
2854 runs-on : 1-gpu-runner
2955 steps :
3056 - name : Checkout code
3157 uses : actions/checkout@v4
58+ with :
59+ ref : ${{ inputs.ref || github.ref }}
3260
3361 - name : Install dependencies
3462 run : |
@@ -38,15 +66,17 @@ jobs:
3866 timeout-minutes : 60
3967 run : |
4068 cd test
41- python3 run_suite_nightly .py --suite nightly-1-gpu --continue-on-error
69+ python3 run_suite .py --hw cuda -- suite nightly-1-gpu --nightly --continue-on-error
4270
4371 # General tests - 4 GPU H100
4472 nightly-test-general-4-gpu-h100 :
45- if : github.repository == 'sgl-project/sglang'
73+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-general-4-gpu-h100')
4674 runs-on : 4-gpu-h100
4775 steps :
4876 - name : Checkout code
4977 uses : actions/checkout@v4
78+ with :
79+ ref : ${{ inputs.ref || github.ref }}
5080
5181 - name : Install dependencies
5282 run : |
@@ -56,17 +86,19 @@ jobs:
5686 timeout-minutes : 30
5787 run : |
5888 cd test
59- python3 run_suite_nightly .py --suite nightly-4-gpu --continue-on-error
89+ python3 run_suite .py --hw cuda -- suite nightly-4-gpu --nightly --continue-on-error
6090
6191 # General tests - 8 GPU H200
6292 nightly-test-general-8-gpu-h200 :
63- if : github.repository == 'sgl-project/sglang'
93+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-general-8-gpu-h200')
6494 runs-on : 8-gpu-h200
6595 env :
6696 RUNNER_LABELS : 8-gpu-h200
6797 steps :
6898 - name : Checkout code
6999 uses : actions/checkout@v4
100+ with :
101+ ref : ${{ inputs.ref || github.ref }}
70102
71103 - name : Install dependencies
72104 run : |
78110 GPU_CONFIG : " 8-gpu-h200"
79111 run : |
80112 cd test
81- python3 run_suite_nightly .py --suite nightly-8-gpu-h200 --continue-on-error
113+ python3 run_suite .py --hw cuda -- suite nightly-8-gpu-h200 --nightly --continue-on-error
82114
83115 - name : Run Qwen3-235B nightly performance test
84116 timeout-minutes : 180
@@ -158,13 +190,15 @@ jobs:
158190
159191 # General tests - 8 GPU H20
160192 nightly-test-general-8-gpu-h20 :
161- if : github.repository == 'sgl-project/sglang'
193+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-general-8-gpu-h20')
162194 runs-on : 8-gpu-h20
163195 env :
164196 SGLANG_CI_RDMA_ALL_DEVICES : " mlx5_1,mlx5_2,mlx5_3,mlx5_4"
165197 steps :
166198 - name : Checkout code
167199 uses : actions/checkout@v4
200+ with :
201+ ref : ${{ inputs.ref || github.ref }}
168202
169203 - name : Install dependencies
170204 run : |
@@ -176,15 +210,17 @@ jobs:
176210 GPU_CONFIG : " 8-gpu-h20"
177211 run : |
178212 cd test
179- python3 run_suite_nightly .py --suite nightly-8-gpu-h20 --continue-on-error
213+ python3 run_suite .py --hw cuda -- suite nightly-8-gpu-h20 --nightly --continue-on-error
180214
181215 # Text model accuracy tests
182216 nightly-test-text-accuracy-2-gpu-runner :
183- if : github.repository == 'sgl-project/sglang'
217+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-text-accuracy-2-gpu-runner')
184218 runs-on : 2-gpu-runner
185219 steps :
186220 - name : Checkout code
187221 uses : actions/checkout@v4
222+ with :
223+ ref : ${{ inputs.ref || github.ref }}
188224
189225 - name : Install dependencies
190226 run : |
@@ -198,11 +234,13 @@ jobs:
198234
199235 # Text model performance tests
200236 nightly-test-text-perf-2-gpu-runner :
201- if : github.repository == 'sgl-project/sglang'
237+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-text-perf-2-gpu-runner')
202238 runs-on : 2-gpu-runner
203239 steps :
204240 - name : Checkout code
205241 uses : actions/checkout@v4
242+ with :
243+ ref : ${{ inputs.ref || github.ref }}
206244
207245 - name : Install dependencies
208246 run : |
@@ -229,11 +267,13 @@ jobs:
229267
230268 # VLM accuracy tests
231269 nightly-test-vlm-accuracy-2-gpu-runner :
232- if : github.repository == 'sgl-project/sglang'
270+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-vlm-accuracy-2-gpu-runner')
233271 runs-on : 2-gpu-runner
234272 steps :
235273 - name : Checkout code
236274 uses : actions/checkout@v4
275+ with :
276+ ref : ${{ inputs.ref || github.ref }}
237277
238278 - name : Install dependencies
239279 run : |
@@ -247,11 +287,13 @@ jobs:
247287
248288 # VLM performance tests
249289 nightly-test-vlm-perf-2-gpu-runner :
250- if : github.repository == 'sgl-project/sglang'
290+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-vlm-perf-2-gpu-runner')
251291 runs-on : 2-gpu-runner
252292 steps :
253293 - name : Checkout code
254294 uses : actions/checkout@v4
295+ with :
296+ ref : ${{ inputs.ref || github.ref }}
255297
256298 - name : Install dependencies
257299 run : |
@@ -278,7 +320,7 @@ jobs:
278320
279321 # diffusion performance tests
280322 nightly-test-multimodal-server-1-gpu :
281- if : github.repository == 'sgl-project/sglang'
323+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-multimodal-server-1-gpu')
282324 runs-on : 1-gpu-runner
283325 strategy :
284326 fail-fast : false
@@ -288,6 +330,8 @@ jobs:
288330 steps :
289331 - name : Checkout code
290332 uses : actions/checkout@v4
333+ with :
334+ ref : ${{ inputs.ref || github.ref }}
291335
292336 - name : Install dependencies
293337 run : |
@@ -309,7 +353,7 @@ jobs:
309353
310354
311355 nightly-test-multimodal-server-2-gpu :
312- if : github.repository == 'sgl-project/sglang'
356+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-multimodal-server-2-gpu')
313357 runs-on : 2-gpu-runner
314358 strategy :
315359 fail-fast : false
@@ -319,6 +363,8 @@ jobs:
319363 steps :
320364 - name : Checkout code
321365 uses : actions/checkout@v4
366+ with :
367+ ref : ${{ inputs.ref || github.ref }}
322368
323369 - name : Install dependencies
324370 run : |
@@ -340,11 +386,13 @@ jobs:
340386
341387 # B200 Performance tests - 4 GPU
342388 nightly-test-perf-4-gpu-b200 :
343- if : github.repository == 'sgl-project/sglang'
389+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-perf-4-gpu-b200')
344390 runs-on : 4-gpu-b200
345391 steps :
346392 - name : Checkout code
347393 uses : actions/checkout@v4
394+ with :
395+ ref : ${{ inputs.ref || github.ref }}
348396
349397 - name : Install dependencies
350398 run : |
@@ -354,17 +402,19 @@ jobs:
354402 timeout-minutes : 60
355403 run : |
356404 cd test
357- python3 run_suite_nightly .py --suite nightly-4-gpu-b200 --continue-on-error
405+ python3 run_suite .py --hw cuda -- suite nightly-4-gpu-b200 --nightly --continue-on-error
358406
359407 # B200 Performance tests - 8 GPU
360408 nightly-test-perf-8-gpu-b200 :
361- if : github.repository == 'sgl-project/sglang'
409+ if : github.repository == 'sgl-project/sglang' && (inputs.job_filter == '' || inputs.job_filter == 'all' || inputs.job_filter == 'nightly-test-perf-8-gpu-b200')
362410 runs-on : 8-gpu-b200
363411 env :
364412 RUNNER_LABELS : 8-gpu-b200
365413 steps :
366414 - name : Checkout code
367415 uses : actions/checkout@v4
416+ with :
417+ ref : ${{ inputs.ref || github.ref }}
368418
369419 - name : Install dependencies
370420 run : |
0 commit comments