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"