Skip to content

Commit

Permalink
[Release 0.16] Release only changes (#2206)
Browse files Browse the repository at this point in the history
* [Release 0.16] Release only changes

* Set secrets for test env

* Exclude rocm from build matrix

* remove extra space

---------

Co-authored-by: Omkar Salpekar <osalpekar@gmail.com>
  • Loading branch information
atalman and osalpekar committed Sep 26, 2023
1 parent 45e4b8c commit 4e255c9
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 26 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-conda-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: conda
os: linux
Expand All @@ -35,7 +35,7 @@ jobs:
smoke-test-script: test/smoke_tests/smoke_tests.py
package-name: torchtext
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@release/2.1
with:
conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }}
Expand All @@ -52,3 +52,4 @@ jobs:
trigger-event: ${{ github.event_name }}
secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
5 changes: 3 additions & 2 deletions .github/workflows/build-conda-m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: conda
os: macos-arm64
Expand All @@ -34,7 +34,7 @@ jobs:
smoke-test-script: test/smoke_tests/smoke_tests.py
package-name: torchtext
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.1
with:
conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }}
Expand All @@ -52,3 +52,4 @@ jobs:
trigger-event: ${{ github.event_name }}
secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
5 changes: 3 additions & 2 deletions .github/workflows/build-conda-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: conda
os: macos
Expand All @@ -34,7 +34,7 @@ jobs:
smoke-test-script: test/smoke_tests/smoke_tests.py
package-name: torchtext
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.1
with:
conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }}
Expand All @@ -52,3 +52,4 @@ jobs:
trigger-event: ${{ github.event_name }}
secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
5 changes: 3 additions & 2 deletions .github/workflows/build-conda-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: conda
os: windows
Expand All @@ -35,7 +35,7 @@ jobs:
smoke-test-script: test/smoke_tests/smoke_tests.py
package-name: torchtext
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@main
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@release/2.1
with:
conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }}
Expand All @@ -50,3 +50,4 @@ jobs:
trigger-event: ${{ github.event_name }}
secrets:
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with:
job-name: Build doc
runner: linux.2xlarge
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-wheels-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ on:

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.1
with:
package-type: wheel
os: linux
test-infra-repository: pytorch/test-infra
test-infra-ref: main
with-cuda: disable
with-rocm: disable
build:
needs: generate-matrix
strategy:
Expand All @@ -34,7 +35,7 @@ jobs:
smoke-test-script: test/smoke_tests/smoke_tests.py
package-name: torchtext
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.1
with:
repository: ${{ matrix.repository }}
ref: ""
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels-m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: wheel
os: macos-arm64
Expand All @@ -33,7 +33,7 @@ jobs:
package-name: torchtext
smoke-test-script: test/smoke_tests/smoke_tests.py
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.1
with:
repository: ${{ matrix.repository }}
ref: ""
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: wheel
os: macos
Expand All @@ -33,7 +33,7 @@ jobs:
package-name: torchtext
smoke-test-script: test/smoke_tests/smoke_tests.py
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.1
with:
repository: ${{ matrix.repository }}
ref: ""
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

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.1
with:
package-type: wheel
os: windows
Expand All @@ -35,7 +35,7 @@ jobs:
smoke-test-script: test/smoke_tests/smoke_tests.py
package-name: torchtext
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.1
with:
repository: ${{ matrix.repository }}
ref: ""
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
python_version: ["3.8"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with:
runner: linux.12xlarge
repository: pytorch/text
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
python-source-and-configs:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with:
repository: pytorch/text
script: |
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
echo '::endgroup::'
c-source:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with:
repository: pytorch/text
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-linux-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
python_version: ["3.8", "3.9", "3.10"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with:
runner: linux.12xlarge
repository: pytorch/text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-linux-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python_version: ["3.8"]
cuda_arch_version: ["11.7"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with:
runner: linux.g5.4xlarge.nvidia.gpu
repository: pytorch/text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-macos-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
python_version: ["3.8", "3.9", "3.10"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.1
with:
runner: macos-12
repository: pytorch/text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
python_version: ["3.8", "3.9", "3.10"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.1
with:
runner: windows.4xlarge
repository: pytorch/text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on:
type: string
jobs:
validate-binaries:
uses: pytorch/test-infra/.github/workflows/validate-domain-library.yml@main
uses: pytorch/test-infra/.github/workflows/validate-domain-library.yml@release/2.1
with:
package_type: "conda,wheel"
os: ${{ inputs.os }}
Expand Down
1 change: 0 additions & 1 deletion packaging/install_torchdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if [ "$channel" != "nightly" ] && [ "$channel" != "test" ]; then
exit 1
fi


if [ "$package_type" = "wheel" ]; then
install_cmd="pip install"
if [ "$channel" = "nightly" ]; then
Expand Down

0 comments on commit 4e255c9

Please sign in to comment.