From a84d0005c46301a2b1bfc11f664df7b1a703c64f Mon Sep 17 00:00:00 2001 From: "Ma, Guokai" Date: Thu, 29 Oct 2026 16:26:08 +0800 Subject: [PATCH 1/2] Run the v1 multi-rank CPU suite on pull requests Manual dispatch runs on master are green, so enable the pull_request and merge_group triggers per the rollout plan. Diff-based selection in collect-tests keeps unrelated PRs at mode=none; merge_group runs the full v1 scope because it has no PR base to diff against. Signed-off-by: Ma, Guokai --- .github/workflows/cpu-torch-latest-v1-multirank.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpu-torch-latest-v1-multirank.yml b/.github/workflows/cpu-torch-latest-v1-multirank.yml index cf2c86bd02b6..5dec2a827c75 100644 --- a/.github/workflows/cpu-torch-latest-v1-multirank.yml +++ b/.github/workflows/cpu-torch-latest-v1-multirank.yml @@ -13,10 +13,9 @@ name: cpu-torch-latest-v1-multirank # DS_MULTIRANK_ONLY drops single-rank tests, so a run spends its time on # world_size 2-4 CPU tests. # -# Trigger rollout: manual dispatch only for now. Starting as a required -# pull_request check would put an unvalidated ~1h suite in front of every PR; -# once this run is green across a few real PRs, add `pull_request:` back to the -# `on:` block and register the check with branch protection. +# Trigger rollout: manual dispatch validated the suite on master, so it now +# also runs on pull requests and in the merge queue; register the unit-tests +# check with branch protection to make it required. on: workflow_dispatch: @@ -49,6 +48,9 @@ on: required: false default: 'main' type: string + pull_request: + merge_group: + branches: [ master ] concurrency: group: ${{ github.workflow }}-${{ github.ref }} From d8263bbf473b2984adbb9f450b77c62a9283c9a0 Mon Sep 17 00:00:00 2001 From: aden Date: Fri, 6 Nov 2026 00:14:26 +0800 Subject: [PATCH 2/2] tests: skip unsupported FP16 in offload overflow recovery Fixes #9019. Assisted-by: OpenAI Codex Signed-off-by: aden --- tests/unit/v1/zero/test_zero2_offload_multi_backward.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/v1/zero/test_zero2_offload_multi_backward.py b/tests/unit/v1/zero/test_zero2_offload_multi_backward.py index 2e5fc39da925..e778ff8812e7 100644 --- a/tests/unit/v1/zero/test_zero2_offload_multi_backward.py +++ b/tests/unit/v1/zero/test_zero2_offload_multi_backward.py @@ -285,6 +285,8 @@ def test_finite_step_after_overflow(self, precision, low_precision_master): pytest.skip("CPUAdam is required for low-precision offloaded master weights") if precision == "bf16" and not get_accelerator().is_bf16_supported(): pytest.skip("BF16 is not supported") + if precision == "fp16" and not get_accelerator().is_fp16_supported(): + pytest.skip("FP16 is not supported") class TwoGroups(torch.nn.Module):