|
20 | 20 | - "sgl-kernel/**" |
21 | 21 | - ".github/workflows/pr-test-amd.yml" |
22 | 22 | workflow_dispatch: |
| 23 | + inputs: |
| 24 | + target_stage: |
| 25 | + description: "Specific stage to run (optional, for quick testing)" |
| 26 | + required: false |
| 27 | + type: string |
| 28 | + default: "" |
23 | 29 |
|
24 | 30 | concurrency: |
25 | 31 | group: pr-test-amd-${{ github.ref }} |
|
54 | 60 | # =============================================== sgl-kernel ==================================================== |
55 | 61 | sgl-kernel-unit-test-amd: |
56 | 62 | needs: [check-changes] |
57 | | - if: needs.check-changes.outputs.sgl_kernel == 'true' |
| 63 | + if: | |
| 64 | + always() && |
| 65 | + ( |
| 66 | + (inputs.target_stage == 'sgl-kernel-unit-test-amd') || |
| 67 | + ( |
| 68 | + !inputs.target_stage && |
| 69 | + needs.check-changes.outputs.sgl_kernel == 'true' |
| 70 | + ) |
| 71 | + ) |
58 | 72 | strategy: |
59 | 73 | fail-fast: false |
60 | 74 | matrix: |
@@ -90,8 +104,16 @@ jobs: |
90 | 104 |
|
91 | 105 | stage-a-test-1-amd: |
92 | 106 | needs: [check-changes] |
93 | | - if: always() && !failure() && !cancelled() && |
94 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 107 | + if: | |
| 108 | + always() && |
| 109 | + ( |
| 110 | + (inputs.target_stage == 'stage-a-test-1-amd') || |
| 111 | + ( |
| 112 | + !inputs.target_stage && |
| 113 | + (!failure() && !cancelled()) && |
| 114 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 115 | + ) |
| 116 | + ) |
95 | 117 | strategy: |
96 | 118 | fail-fast: false |
97 | 119 | matrix: |
@@ -120,8 +142,16 @@ jobs: |
120 | 142 |
|
121 | 143 | unit-test-backend-1-gpu-amd: |
122 | 144 | needs: [check-changes, stage-a-test-1-amd] |
123 | | - if: always() && !failure() && !cancelled() && |
124 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 145 | + if: | |
| 146 | + always() && |
| 147 | + ( |
| 148 | + (inputs.target_stage == 'unit-test-backend-1-gpu-amd') || |
| 149 | + ( |
| 150 | + !inputs.target_stage && |
| 151 | + (!failure() && !cancelled()) && |
| 152 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 153 | + ) |
| 154 | + ) |
125 | 155 | strategy: |
126 | 156 | fail-fast: false |
127 | 157 | matrix: |
@@ -150,8 +180,16 @@ jobs: |
150 | 180 |
|
151 | 181 | unit-test-backend-2-gpu-amd: |
152 | 182 | needs: [check-changes, stage-a-test-1-amd] |
153 | | - if: always() && !failure() && !cancelled() && |
154 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 183 | + if: | |
| 184 | + always() && |
| 185 | + ( |
| 186 | + (inputs.target_stage == 'unit-test-backend-2-gpu-amd') || |
| 187 | + ( |
| 188 | + !inputs.target_stage && |
| 189 | + (!failure() && !cancelled()) && |
| 190 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 191 | + ) |
| 192 | + ) |
155 | 193 | strategy: |
156 | 194 | fail-fast: false |
157 | 195 | matrix: |
@@ -181,8 +219,17 @@ jobs: |
181 | 219 | unit-test-backend-8-gpu-amd: |
182 | 220 | needs: [check-changes, unit-test-backend-2-gpu-amd] |
183 | 221 | # Temporarily disabled - uncomment when ready to re-enable |
184 | | - if: false && always() && !failure() && !cancelled() && |
185 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 222 | + if: | |
| 223 | + always() && |
| 224 | + ( |
| 225 | + (inputs.target_stage == 'unit-test-backend-8-gpu-amd') || |
| 226 | + ( |
| 227 | + false && |
| 228 | + !inputs.target_stage && |
| 229 | + (!failure() && !cancelled()) && |
| 230 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 231 | + ) |
| 232 | + ) |
186 | 233 | env: |
187 | 234 | RUNNER_LABELS: linux-mi300-gpu-8 |
188 | 235 | strategy: |
@@ -219,8 +266,16 @@ jobs: |
219 | 266 |
|
220 | 267 | performance-test-1-gpu-part-1-amd: |
221 | 268 | needs: [check-changes, stage-a-test-1-amd] |
222 | | - if: always() && !failure() && !cancelled() && |
223 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 269 | + if: | |
| 270 | + always() && |
| 271 | + ( |
| 272 | + (inputs.target_stage == 'performance-test-1-gpu-part-1-amd') || |
| 273 | + ( |
| 274 | + !inputs.target_stage && |
| 275 | + (!failure() && !cancelled()) && |
| 276 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 277 | + ) |
| 278 | + ) |
224 | 279 | strategy: |
225 | 280 | fail-fast: false |
226 | 281 | matrix: |
@@ -264,8 +319,16 @@ jobs: |
264 | 319 |
|
265 | 320 | performance-test-1-gpu-part-2-amd: |
266 | 321 | needs: [check-changes, stage-a-test-1-amd] |
267 | | - if: always() && !failure() && !cancelled() && |
268 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 322 | + if: | |
| 323 | + always() && |
| 324 | + ( |
| 325 | + (inputs.target_stage == 'performance-test-1-gpu-part-2-amd') || |
| 326 | + ( |
| 327 | + !inputs.target_stage && |
| 328 | + (!failure() && !cancelled()) && |
| 329 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 330 | + ) |
| 331 | + ) |
269 | 332 | strategy: |
270 | 333 | fail-fast: false |
271 | 334 | matrix: |
@@ -303,8 +366,16 @@ jobs: |
303 | 366 |
|
304 | 367 | performance-test-2-gpu-amd: |
305 | 368 | needs: [check-changes, unit-test-backend-2-gpu-amd] |
306 | | - if: always() && !failure() && !cancelled() && |
307 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 369 | + if: | |
| 370 | + always() && |
| 371 | + ( |
| 372 | + (inputs.target_stage == 'performance-test-2-gpu-amd') || |
| 373 | + ( |
| 374 | + !inputs.target_stage && |
| 375 | + (!failure() && !cancelled()) && |
| 376 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 377 | + ) |
| 378 | + ) |
308 | 379 | strategy: |
309 | 380 | fail-fast: false |
310 | 381 | matrix: |
@@ -352,8 +423,16 @@ jobs: |
352 | 423 |
|
353 | 424 | accuracy-test-1-gpu-amd: |
354 | 425 | needs: [check-changes, stage-a-test-1-amd] |
355 | | - if: always() && !failure() && !cancelled() && |
356 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 426 | + if: | |
| 427 | + always() && |
| 428 | + ( |
| 429 | + (inputs.target_stage == 'accuracy-test-1-gpu-amd') || |
| 430 | + ( |
| 431 | + !inputs.target_stage && |
| 432 | + (!failure() && !cancelled()) && |
| 433 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 434 | + ) |
| 435 | + ) |
357 | 436 | strategy: |
358 | 437 | fail-fast: false |
359 | 438 | matrix: |
@@ -383,8 +462,16 @@ jobs: |
383 | 462 |
|
384 | 463 | accuracy-test-2-gpu-amd: |
385 | 464 | needs: [check-changes, accuracy-test-1-gpu-amd] |
386 | | - if: always() && !failure() && !cancelled() && |
387 | | - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 465 | + if: | |
| 466 | + always() && |
| 467 | + ( |
| 468 | + (inputs.target_stage == 'accuracy-test-2-gpu-amd') || |
| 469 | + ( |
| 470 | + !inputs.target_stage && |
| 471 | + (!failure() && !cancelled()) && |
| 472 | + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) |
| 473 | + ) |
| 474 | + ) |
388 | 475 | strategy: |
389 | 476 | fail-fast: false |
390 | 477 | matrix: |
|
0 commit comments