From 559202b544a4ecb6f785cb97ebc1b6bcdf460dc5 Mon Sep 17 00:00:00 2001 From: Alison Shao <54658187+alisonshao@users.noreply.github.com> Date: Sun, 7 Dec 2025 18:42:04 -0800 Subject: [PATCH] [CI] Fix unit-test-backend-8-gpu-b200 running on every /rerun-stage (#14591) --- .github/workflows/pr-test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 8bed15cb3..706ef434f 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -1209,11 +1209,14 @@ jobs: unit-test-backend-8-gpu-b200: needs: [check-changes, call-gate, unit-test-backend-2-gpu] if: | - (inputs.target_stage == 'unit-test-backend-8-gpu-b200') || + always() && ( - always() && - (github.event_name == 'schedule' || (!failure() && !cancelled())) && - ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) + (inputs.target_stage == 'unit-test-backend-8-gpu-b200') || + ( + !inputs.target_stage && + (github.event_name == 'schedule' || (!failure() && !cancelled())) && + ((needs.check-changes.outputs.main_package == 'true') || (needs.check-changes.outputs.sgl_kernel == 'true')) + ) ) runs-on: 8-gpu-b200 env: