From 5ce7db8adc447af29d89602d4d54a35d162f19a4 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Sat, 4 Oct 2025 15:14:46 -0400 Subject: [PATCH 01/14] add missing python, cuda, ffmpeg versions --- .github/workflows/linux_cuda_wheel.yaml | 10 +++------- .github/workflows/linux_wheel.yaml | 2 +- .github/workflows/macos_wheel.yaml | 2 +- .github/workflows/windows_wheel.yaml | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index f1801c0f6..97b7f62ae 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -64,14 +64,10 @@ jobs: # 3.10 corresponds to the minimum python version for which we build # the wheel unless the label cliflow/binaries/all is present in the # PR. - # For the actual release we should add that label and change this to - # include more python versions. - python-version: ['3.10'] - # We test against 12.6 and 13.0 to avoid having too big of a CI matrix, - # but for releases we should add 12.8. - cuda-version: ['12.6', '13.0'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + cuda-version: ['12.6', '12.8', '13.0'] # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325 - ffmpeg-version-for-tests: ['4.4.2', '6', '7'] + ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7'] container: image: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}" diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 020068269..55c912728 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -62,7 +62,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1'] needs: build steps: diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index 8392aec99..d1dec519b 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -64,7 +64,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1'] needs: build steps: diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index b5b3fc4ac..9b1188779 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -67,11 +67,11 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] # TODO: FFmpeg 5 on Windows segfaults in avcodec_open2() when passing # bad parameters. # See https://github.com/pytorch/torchcodec/pull/806 - ffmpeg-version-for-tests: ['4.4.2', '6.1.1', '7.0.1'] + ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1'] needs: build steps: - uses: actions/download-artifact@v4 From e21568faed25e61236c703b2b4323080af01852e Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Mon, 6 Oct 2025 12:36:06 -0400 Subject: [PATCH 02/14] add python versions to generate_matrix --- .github/workflows/linux_cuda_wheel.yaml | 1 + .github/workflows/linux_wheel.yaml | 1 + .github/workflows/macos_wheel.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 97b7f62ae..b67459cfe 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -36,6 +36,7 @@ jobs: with-rocm: disable with-cuda: enable build-python-only: "disable" + python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix strategy: diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 55c912728..31f1c137e 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -36,6 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" + python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index d1dec519b..e40f0eb0a 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -36,6 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" + python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix From a8c831d74602b1b7879b76d5fa6c3c5921787944 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Mon, 6 Oct 2025 13:23:44 -0400 Subject: [PATCH 03/14] added ciflow/binaries/all label, restart CI --- .github/workflows/docs.yaml | 2 +- .github/workflows/linux_cuda_wheel.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 0829246e0..630cc0cc9 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: # 3.10 corresponds to the minimum python version for which we build - # the wheel unless the label cliflow/binaries/all is present in the + # the wheel unless the label ciflow/binaries/all is present in the # PR. python-version: ['3.10'] cuda-version: ['12.6'] diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index b67459cfe..4cbb8a13e 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -63,7 +63,7 @@ jobs: fail-fast: false matrix: # 3.10 corresponds to the minimum python version for which we build - # the wheel unless the label cliflow/binaries/all is present in the + # the wheel unless the label ciflow/binaries/all is present in the # PR. python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] cuda-version: ['12.6', '12.8', '13.0'] From a9d3ab845812b03b50b9eae0bb0cae5259700200 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Tue, 7 Oct 2025 15:28:01 -0400 Subject: [PATCH 04/14] change main to release/2.8 --- .github/workflows/docs.yaml | 10 +++++----- .github/workflows/linux_cuda_wheel.yaml | 10 +++++----- .github/workflows/linux_wheel.yaml | 10 +++++----- .github/workflows/macos_wheel.yaml | 10 +++++----- .github/workflows/windows_wheel.yaml | 10 +++++----- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 630cc0cc9..e0aa14df2 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -15,12 +15,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 with-cpu: disable with-xpu: disable with-rocm: disable @@ -31,12 +31,12 @@ jobs: strategy: fail-fast: false name: Build and Upload wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.8 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -73,7 +73,7 @@ jobs: name: meta-pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 path: pytorch/torchcodec/dist/ - name: Setup miniconda using test-infra - uses: pytorch/test-infra/.github/actions/setup-miniconda@main + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 with: python-version: ${{ matrix.python-version }} # We install conda packages at the start because otherwise conda may have conflicts with dependencies. diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 4cbb8a13e..4f0ff52ad 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -25,12 +25,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 with-cpu: disable with-xpu: disable with-rocm: disable @@ -42,12 +42,12 @@ jobs: strategy: fail-fast: false name: Build and Upload wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.8 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -86,7 +86,7 @@ jobs: name: meta-pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 path: pytorch/torchcodec/dist/ - name: Setup miniconda using test-infra - uses: pytorch/test-infra/.github/actions/setup-miniconda@main + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 with: python-version: ${{ matrix.python-version }} # We install conda packages at the start because otherwise conda may have conflicts with dependencies. diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 31f1c137e..0fa49f206 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -26,12 +26,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 with-xpu: disable with-rocm: disable with-cuda: disable @@ -43,12 +43,12 @@ jobs: strategy: fail-fast: false name: Build and Upload Linux wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.8 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -82,7 +82,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch --index-url https://download.pytorch.org/whl/cpu - name: Install torchcodec from the wheel run: | wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index e40f0eb0a..6ac779e77 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -26,12 +26,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 with: package-type: wheel os: macos-arm64 test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 with-xpu: disable with-rocm: disable with-cuda: disable @@ -43,12 +43,12 @@ jobs: strategy: fail-fast: false name: Build and Upload Mac wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.8 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -87,7 +87,7 @@ jobs: - name: Install PyTorch run: | - python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch --index-url https://download.pytorch.org/whl/cpu - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index 9b1188779..ae1941a7c 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -26,12 +26,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 with: package-type: wheel os: windows test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 with-xpu: disable with-rocm: disable with-cuda: disable @@ -44,12 +44,12 @@ jobs: strategy: fail-fast: false name: Build and Upload Windows wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.8 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.8 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh # post-script: packaging/post_build_script.sh TODO: consider enabling post-build checks for Windows @@ -89,7 +89,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu + python -m pip install torch --index-url https://download.pytorch.org/whl/cpu - name: Install torchcodec from the wheel run: | wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` From 7cf6eb0e4f2de48e3548f0d84a53a0b5d6b0a7b7 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Tue, 7 Oct 2025 15:49:36 -0400 Subject: [PATCH 05/14] remove nightly from install --- .github/workflows/docs.yaml | 3 ++- .github/workflows/linux_cuda_wheel.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index e0aa14df2..8c9868e93 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -26,6 +26,7 @@ jobs: with-rocm: disable with-cuda: enable build-python-only: "disable" + python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix strategy: @@ -91,7 +92,7 @@ jobs: run: ${CONDA_RUN} python -m pip install --upgrade pip - name: Install PyTorch run: | - ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }} + ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }} ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 4f0ff52ad..9753628af 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -105,7 +105,7 @@ jobs: run: ${CONDA_RUN} python -m pip install --upgrade pip - name: Install PyTorch run: | - ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }} + ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }} ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | From dcb1aefa597c278acb157d2429c0cc493d9008e9 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Tue, 7 Oct 2025 17:05:51 -0400 Subject: [PATCH 06/14] add python 3.10 to windows, version->8 --- .github/workflows/windows_wheel.yaml | 2 +- version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index ae1941a7c..f9fc10625 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -36,7 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" - python-versions: '["3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' build: diff --git a/version.txt b/version.txt index 93acf06b0..a3df0a695 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.7.0a0 +0.8.0 From 505a7888e32805fbb0b24ac3ef54f4f5257c35c0 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 12:48:06 -0400 Subject: [PATCH 07/14] update to release 2.9 --- .github/workflows/docs.yaml | 10 +++++----- .github/workflows/linux_cuda_wheel.yaml | 10 +++++----- .github/workflows/linux_wheel.yaml | 8 ++++---- .github/workflows/macos_wheel.yaml | 8 ++++---- .github/workflows/windows_wheel.yaml | 8 ++++---- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8c9868e93..73a695cfd 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -15,12 +15,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 with-cpu: disable with-xpu: disable with-rocm: disable @@ -32,12 +32,12 @@ jobs: strategy: fail-fast: false name: Build and Upload wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.9 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -74,7 +74,7 @@ jobs: name: meta-pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 path: pytorch/torchcodec/dist/ - name: Setup miniconda using test-infra - uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.9 with: python-version: ${{ matrix.python-version }} # We install conda packages at the start because otherwise conda may have conflicts with dependencies. diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 9753628af..825c17273 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -25,12 +25,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 with-cpu: disable with-xpu: disable with-rocm: disable @@ -42,12 +42,12 @@ jobs: strategy: fail-fast: false name: Build and Upload wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.9 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh @@ -86,7 +86,7 @@ jobs: name: meta-pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 path: pytorch/torchcodec/dist/ - name: Setup miniconda using test-infra - uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.9 with: python-version: ${{ matrix.python-version }} # We install conda packages at the start because otherwise conda may have conflicts with dependencies. diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 0fa49f206..48697fe67 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -26,12 +26,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 with-xpu: disable with-rocm: disable with-cuda: disable @@ -43,12 +43,12 @@ jobs: strategy: fail-fast: false name: Build and Upload Linux wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.9 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index 6ac779e77..ee2cc4aba 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -26,12 +26,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9 with: package-type: wheel os: macos-arm64 test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 with-xpu: disable with-rocm: disable with-cuda: disable @@ -43,12 +43,12 @@ jobs: strategy: fail-fast: false name: Build and Upload Mac wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.9 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh post-script: packaging/post_build_script.sh diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index f9fc10625..e2a736051 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -26,12 +26,12 @@ defaults: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9 with: package-type: wheel os: windows test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 with-xpu: disable with-rocm: disable with-cuda: disable @@ -44,12 +44,12 @@ jobs: strategy: fail-fast: false name: Build and Upload Windows wheel - uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.8 + uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.9 with: repository: meta-pytorch/torchcodec ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: release/2.8 + test-infra-ref: release/2.9 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} pre-script: packaging/pre_build_script.sh # post-script: packaging/post_build_script.sh TODO: consider enabling post-build checks for Windows From 91115adb4d911327ca2d7bdad0d21a301e1e114a Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 13:54:32 -0400 Subject: [PATCH 08/14] remove cuda 13, only supported on nightly build --- .github/workflows/linux_cuda_wheel.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 825c17273..a6111f467 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -66,7 +66,7 @@ jobs: # the wheel unless the label ciflow/binaries/all is present in the # PR. python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] - cuda-version: ['12.6', '12.8', '13.0'] + cuda-version: ['12.6', '12.8', '12.9'] # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325 ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7'] From 61dbdf8d8bee88efc96316c0282fad641af73311 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 14:08:30 -0400 Subject: [PATCH 09/14] update wheels to pull torch 2.9 from test channel --- .github/workflows/linux_wheel.yaml | 2 +- .github/workflows/macos_wheel.yaml | 2 +- .github/workflows/windows_wheel.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 48697fe67..476952958 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -82,7 +82,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install torch --index-url https://download.pytorch.org/whl/cpu + python -m pip install torch --index-url https://download.pytorch.org/whl/test/cpu - name: Install torchcodec from the wheel run: | wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index ee2cc4aba..586420447 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -87,7 +87,7 @@ jobs: - name: Install PyTorch run: | - python -m pip install torch --index-url https://download.pytorch.org/whl/cpu + python -m pip install torch --index-url https://download.pytorch.org/whl/test/cpu - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index e2a736051..472bc56a5 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -89,7 +89,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install PyTorch run: | - python -m pip install torch --index-url https://download.pytorch.org/whl/cpu + python -m pip install torch --index-url https://download.pytorch.org/whl/test/cpu - name: Install torchcodec from the wheel run: | wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` From 0c4d714b240ba4f1c810fee689c5644ccead146a Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 14:14:49 -0400 Subject: [PATCH 10/14] update cuda wheels to pull from test channel, add back 13.0 --- .github/workflows/docs.yaml | 2 +- .github/workflows/linux_cuda_wheel.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 73a695cfd..4166e61b6 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -92,7 +92,7 @@ jobs: run: ${CONDA_RUN} python -m pip install --upgrade pip - name: Install PyTorch run: | - ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }} + ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/test/cu${{ env.cuda_version_without_periods }} ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index a6111f467..d5ad0e093 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -66,7 +66,7 @@ jobs: # the wheel unless the label ciflow/binaries/all is present in the # PR. python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] - cuda-version: ['12.6', '12.8', '12.9'] + cuda-version: ['12.6', '12.8', '12.9', '13.0'] # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325 ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7'] @@ -105,7 +105,7 @@ jobs: run: ${CONDA_RUN} python -m pip install --upgrade pip - name: Install PyTorch run: | - ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }} + ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/test/cu${{ env.cuda_version_without_periods }} ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | From 2add2cb117266787a33a2a5466c1ac4ee927a51d Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 14:41:05 -0400 Subject: [PATCH 11/14] remove unsupported python 3.9 - PR 848 --- .github/workflows/docs.yaml | 2 +- .github/workflows/linux_cuda_wheel.yaml | 2 +- .github/workflows/linux_wheel.yaml | 2 +- .github/workflows/macos_wheel.yaml | 2 +- .github/workflows/windows_wheel.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4166e61b6..3059c1f25 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -26,7 +26,7 @@ jobs: with-rocm: disable with-cuda: enable build-python-only: "disable" - python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix strategy: diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index d5ad0e093..797e71413 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -36,7 +36,7 @@ jobs: with-rocm: disable with-cuda: enable build-python-only: "disable" - python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix strategy: diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 476952958..4fdf6e59c 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -36,7 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" - python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index 586420447..45aa7895d 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -36,7 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" - python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.10", "3.11", "3.12", "3.13"]' build: needs: generate-matrix diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index 472bc56a5..992e51a62 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -36,7 +36,7 @@ jobs: with-rocm: disable with-cuda: disable build-python-only: "disable" - python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' + python-versions: '["3.10", "3.11", "3.12", "3.13"]' build: From 0f4b4335f4bd756c3158c3f60380b00a96fc1dd2 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 14:54:49 -0400 Subject: [PATCH 12/14] remove more locations of python 3.9 --- .github/workflows/linux_cuda_wheel.yaml | 2 +- .github/workflows/linux_wheel.yaml | 2 +- .github/workflows/macos_wheel.yaml | 2 +- .github/workflows/windows_wheel.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 797e71413..a366a1e78 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -65,7 +65,7 @@ jobs: # 3.10 corresponds to the minimum python version for which we build # the wheel unless the label ciflow/binaries/all is present in the # PR. - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] cuda-version: ['12.6', '12.8', '12.9', '13.0'] # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325 ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7'] diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 4fdf6e59c..7ae93be20 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -63,7 +63,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1'] needs: build steps: diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index 45aa7895d..e3c45ffc9 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -65,7 +65,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1'] needs: build steps: diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index 992e51a62..5f59ac196 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -67,7 +67,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] # TODO: FFmpeg 5 on Windows segfaults in avcodec_open2() when passing # bad parameters. # See https://github.com/pytorch/torchcodec/pull/806 From 7a2932f1636e876752b5f4e3982900332052b3c4 Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 15:39:53 -0400 Subject: [PATCH 13/14] drop unsupported cuda 12.9 --- .github/workflows/linux_cuda_wheel.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index a366a1e78..90fb2c7de 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -66,7 +66,7 @@ jobs: # the wheel unless the label ciflow/binaries/all is present in the # PR. python-version: ['3.10', '3.11', '3.12', '3.13'] - cuda-version: ['12.6', '12.8', '12.9', '13.0'] + cuda-version: ['12.6', '12.8', '13.0'] # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325 ffmpeg-version-for-tests: ['4.4.2', '5', '6', '7'] From ff8ce3660cb568392232d577f6f15cc292fdf22a Mon Sep 17 00:00:00 2001 From: Daniel Flores Date: Thu, 9 Oct 2025 16:22:54 -0400 Subject: [PATCH 14/14] specify test channel to fix builds? --- .github/workflows/docs.yaml | 1 + .github/workflows/linux_cuda_wheel.yaml | 1 + .github/workflows/linux_wheel.yaml | 1 + .github/workflows/macos_wheel.yaml | 1 + .github/workflows/windows_wheel.yaml | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 3059c1f25..8a16f97d0 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -19,6 +19,7 @@ jobs: with: package-type: wheel os: linux + channel: test test-infra-repository: pytorch/test-infra test-infra-ref: release/2.9 with-cpu: disable diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index 90fb2c7de..bbae4412b 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -29,6 +29,7 @@ jobs: with: package-type: wheel os: linux + channel: test test-infra-repository: pytorch/test-infra test-infra-ref: release/2.9 with-cpu: disable diff --git a/.github/workflows/linux_wheel.yaml b/.github/workflows/linux_wheel.yaml index 7ae93be20..da8a794ca 100644 --- a/.github/workflows/linux_wheel.yaml +++ b/.github/workflows/linux_wheel.yaml @@ -30,6 +30,7 @@ jobs: with: package-type: wheel os: linux + channel: test test-infra-repository: pytorch/test-infra test-infra-ref: release/2.9 with-xpu: disable diff --git a/.github/workflows/macos_wheel.yaml b/.github/workflows/macos_wheel.yaml index e3c45ffc9..6871c8b7b 100644 --- a/.github/workflows/macos_wheel.yaml +++ b/.github/workflows/macos_wheel.yaml @@ -30,6 +30,7 @@ jobs: with: package-type: wheel os: macos-arm64 + channel: test test-infra-repository: pytorch/test-infra test-infra-ref: release/2.9 with-xpu: disable diff --git a/.github/workflows/windows_wheel.yaml b/.github/workflows/windows_wheel.yaml index 5f59ac196..fdd4c47e5 100644 --- a/.github/workflows/windows_wheel.yaml +++ b/.github/workflows/windows_wheel.yaml @@ -30,6 +30,7 @@ jobs: with: package-type: wheel os: windows + channel: test test-infra-repository: pytorch/test-infra test-infra-ref: release/2.9 with-xpu: disable