From 064af7d4255e25fc023b0a7e80dcd174dc6bdaf4 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Thu, 9 Jul 2026 15:38:58 +0000 Subject: [PATCH] ci: dispatch full PyTorch tests for dev releases Let release_type == dev dispatch the full PyTorch test suite in addition to nightly. The package index URL is already derived from the build/publish step output (MULTI_ARCH_INDEX_URLS[release_type]), so dev runs test against the dev index (rocm.devreleases.amd.com) automatically. Dev builds are on-demand and only reach the dispatch job when run_full_pytorch_tests is set, so they bypass the nightly weekly-cadence gate and dispatch whenever requested. Closes #5781 --- ...multi_arch_build_portable_linux_pytorch_wheels.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multi_arch_build_portable_linux_pytorch_wheels.yml b/.github/workflows/multi_arch_build_portable_linux_pytorch_wheels.yml index 2ccc9f3ec5f..40938e39a53 100644 --- a/.github/workflows/multi_arch_build_portable_linux_pytorch_wheels.yml +++ b/.github/workflows/multi_arch_build_portable_linux_pytorch_wheels.yml @@ -455,13 +455,13 @@ jobs: # workflow builds a single (python_version, pytorch_git_ref), the build job's # torch_version output is unambiguous and only this build's success gates the # dispatch -- a failure for one ref no longer skips testing the others (#5777). - # Scoped to nightly gfx94X-dcgpu Python 3.12 builds for now. + # Scoped to nightly/dev gfx94X-dcgpu Python 3.12 builds for now. dispatch_pytorch_wheels_full_test: name: Dispatch PyTorch Full Test | torch ${{ inputs.pytorch_git_ref }} if: >- ${{ inputs.run_full_pytorch_tests && - inputs.release_type == 'nightly' && + (inputs.release_type == 'nightly' || inputs.release_type == 'dev') && inputs.python_version == '3.12' && contains(inputs.amdgpu_families, 'gfx94X-dcgpu') }} @@ -472,12 +472,15 @@ jobs: contents: read env: PYTORCH_GIT_REF: ${{ inputs.pytorch_git_ref }} + RELEASE_TYPE: ${{ inputs.release_type }} steps: - name: Check full test cadence id: cadence - # Release branches test daily; the nightly branch tests weekly (Sunday). + # Dev builds are on-demand (only reach here when run_full_pytorch_tests + # is set), so they always dispatch. For nightly builds: release branches + # test daily; the nightly branch tests weekly (Sunday). run: | - if [ "${PYTORCH_GIT_REF}" != "nightly" ] || [ "$(date -u +%u)" = "7" ]; then + if [ "${RELEASE_TYPE}" = "dev" ] || [ "${PYTORCH_GIT_REF}" != "nightly" ] || [ "$(date -u +%u)" = "7" ]; then echo "dispatch=true" >> "$GITHUB_OUTPUT" else echo "dispatch=false" >> "$GITHUB_OUTPUT"