Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fix for python 3.13t #6356

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
17 changes: 12 additions & 5 deletions .github/actions/setup-binary-builds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ runs:
- name: Generate file from pytorch_pkg_helpers
working-directory: ${{ inputs.repository }}
shell: bash -l {0}
env:
PYTHON_VERSION: ${{ inputs.python-version }}
run: |
set -euxo pipefail
CONDA_ENV="${RUNNER_TEMP}/pytorch_pkg_helpers_${GITHUB_RUN_ID}"
Expand All @@ -144,12 +146,17 @@ runs:
if [[ "${PYTHON_VERSION:-}" == "3.13t" ]]; then
export PYTHON_VERSION=3.13
export CONDA_EXTRA_PARAM=" python-freethreading -c conda-forge"
if [[ "$(uname)" != Darwin ]]; then
# Pin conda and conda-libmamba-solver for 3.13t linux build
# this solver allows us to install anaconda dependencies on
# python-freethreading on conda-forge environment
conda install conda==24.7.1 conda-libmamba-solver=24.1.0

# Hack to pin downgrade conda conda-libmamba
# Pin conda and conda-libmamba-solver for 3.13t linux build
# this solver allows us to install anaconda dependencies on
# python-freethreading on conda-forge environment
if [[ "$(uname)" == Darwin ]]; then
# required to be able to downgrade on MacOS m1 side
conda install -y python=3.9
conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
fi
conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
fi

conda create \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ jobs:
cache-key: ${{ inputs.cache-key }}
repository: ${{ inputs.repository }}
script: ${{ inputs.pre-script }}
env:
REF: test_313t_m1
- name: Build the wheel (python-build-package)
if: ${{ inputs.build-platform == 'python-build-package' }}
working-directory: ${{ inputs.repository }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_wheels_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ jobs:
cache-key: ${{ inputs.cache-key }}
repository: ${{ inputs.repository }}
script: ${{ inputs.pre-script }}
env:
REF: test_313t_m1
- name: Build clean
working-directory: ${{ inputs.repository }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_build_wheels_linux_with_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: ${{ matrix.repository }}
with:
repository: ${{ matrix.repository }}
ref: nightly
ref: main
test-infra-repository: ${{ github.repository }}
test-infra-ref: ${{ github.ref }}
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/test_build_wheels_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ jobs:
fail-fast: false
matrix:
include:
- repository: pytorch/audio
conda-package-directory: packaging/torchaudio
smoke-test-script: test/smoke_test/smoke_test.py
package-name: torchaudio
- repository: pytorch/vision
pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh
Expand All @@ -43,7 +39,7 @@ jobs:
name: ${{ matrix.repository }}
with:
repository: ${{ matrix.repository }}
ref: nightly
ref: test_313t_m1
test-infra-repository: ${{ github.repository }}
test-infra-ref: ${{ github.ref }}
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/generate_binary_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def generate_wheels_matrix(
arches += [XPU]

if limit_pr_builds:
python_versions = [python_versions[0]]
python_versions = [python_versions[-1]]

global WHEEL_CONTAINER_IMAGES

Expand Down
Loading