Skip to content

Commit

Permalink
Add an option to validate using version set. Remove macos x86 validat…
Browse files Browse the repository at this point in the history
…ion (#1748)
  • Loading branch information
atalman authored Mar 20, 2024
1 parent 65f8e7d commit f7ada6f
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/validate_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ else
INSTALLATION=${INSTALLATION/"torch "/"torch==${RELEASE_VERSION} "}
INSTALLATION=${INSTALLATION/"-y pytorch "/"-y pytorch==${RELEASE_VERSION} "}
INSTALLATION=${INSTALLATION/"::pytorch "/"::pytorch==${RELEASE_VERSION} "}

if [[ ${USE_VERSION_SET} == 'true' ]]; then
INSTALLATION=${INSTALLATION/"torchvision "/"torchvision==${VISION_RELEASE_VERSION} "}
INSTALLATION=${INSTALLATION/"torchaudio "/"torchaudio==${AUDIO_RELEASE_VERSION} "}
fi
fi

export OLD_PATH=${PATH}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/validate-aarch64-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ jobs:
export TORCH_ONLY=${{ inputs.torchonly }}
export RELEASE_VERSION=${{ inputs.version }}
export USE_FORCE_REINSTALL=${{ inputs.use-force-reinstall }}
export USE_VERSION_SET=${{ inputs.use-version-set }}
if [[ ${USE_VERSION_SET} == 'true' ]]; then
export VISION_RELEASE_VERSION = ${{ inputs.release-matrix.torchvision }}
export AUDIO_RELEASE_VERSION = ${{ inputs.release-matrix.torchaudio }}
fi
printf '%s\n' ${{ toJson(inputs.release-matrix) }} > release_matrix.json
eval "$(conda shell.bash hook)"
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/validate-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
include-test-ops:
description: 'Include Test Ops tests (only Linux)'
default: false
Expand Down Expand Up @@ -112,6 +117,7 @@ jobs:
ref: ${{ inputs.ref || github.ref }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
use-version-set: ${{ inputs.use-version-set }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
Expand All @@ -125,6 +131,7 @@ jobs:
ref: ${{ inputs.ref || github.ref }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
use-version-set: ${{ inputs.use-version-set }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
include-test-ops: ${{ inputs.include-test-ops }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
Expand All @@ -139,6 +146,7 @@ jobs:
ref: ${{ inputs.ref || github.ref }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
use-version-set: ${{ inputs.use-version-set }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
Expand All @@ -152,6 +160,7 @@ jobs:
ref: ${{ inputs.ref || github.ref }}
torchonly: ${{ inputs.torchonly }}
version: ${{ inputs.version }}
use-version-set: ${{ inputs.use-version-set }}
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
use-force-reinstall: ${{ inputs.use-force-reinstall }}
8 changes: 0 additions & 8 deletions .github/workflows/validate-domain-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ jobs:
os: windows
channel: ${{ inputs.channel }}
with-cuda: ${{ inputs.with_cuda }}
generate-macos-matrix:
if: (inputs.os == 'macos' || inputs.os == 'all')
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: ${{ inputs.package_type }}
os: macos
channel: ${{ inputs.channel }}
with-cuda: ${{ inputs.with_cuda }}
generate-macos-arm64-matrix:
if: (inputs.os == 'macos-arm64' || inputs.os == 'all')
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/validate-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
release-matrix:
description: 'Release matrix - optional'
default: ""
Expand Down Expand Up @@ -68,6 +73,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
release-matrix:
description: 'Release matrix - optional'
default: ""
Expand Down Expand Up @@ -119,6 +129,12 @@ jobs:
export INCLUDE_TEST_OPS=${{ inputs.include-test-ops }}
export USE_ONLY_DL_PYTORCH_ORG=${{ inputs.use-only-dl-pytorch-org }}
export RELEASE_VERSION=${{ inputs.version }}
export USE_VERSION_SET=${{ inputs.use-version-set }}
if [[ ${USE_VERSION_SET} == 'true' ]]; then
export VISION_RELEASE_VERSION = ${{ inputs.release-matrix.torchvision }}
export AUDIO_RELEASE_VERSION = ${{ inputs.release-matrix.torchaudio }}
fi
export USE_FORCE_REINSTALL=${{ inputs.use-force-reinstall }}
export TARGET_OS="linux"
eval "$(conda shell.bash hook)"
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/validate-macos-arm64-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
release-matrix:
description: 'Release matrix - optional'
default: ""
Expand Down Expand Up @@ -63,6 +68,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
release-matrix:
description: 'Release matrix - optional'
default: ""
Expand Down Expand Up @@ -108,6 +118,11 @@ jobs:
export TORCH_ONLY=${{ inputs.torchonly }}
export RELEASE_VERSION=${{ inputs.version }}
export USE_FORCE_REINSTALL=${{ inputs.use-force-reinstall }}
export USE_VERSION_SET=${{ inputs.use-version-set }}
if [[ ${USE_VERSION_SET} == 'true' ]]; then
export VISION_RELEASE_VERSION = ${{ inputs.release-matrix.torchvision }}
export AUDIO_RELEASE_VERSION = ${{ inputs.release-matrix.torchaudio }}
fi
printf '%s\n' ${{ toJson(inputs.release-matrix) }} > release_matrix.json
source ./.github/scripts/validate_binaries.sh
15 changes: 15 additions & 0 deletions .github/workflows/validate-windows-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
release-matrix:
description: 'Release matrix - optional'
default: ""
Expand Down Expand Up @@ -63,6 +68,11 @@ on:
default: ""
required: false
type: string
use-version-set:
description: 'Applies when version is used, use version for each domain'
default: false
required: false
type: boolean
release-matrix:
description: 'Release matrix - optional'
default: ""
Expand Down Expand Up @@ -109,6 +119,11 @@ jobs:
export TORCH_ONLY=${{ inputs.torchonly }}
export RELEASE_VERSION=${{ inputs.version }}
export USE_FORCE_REINSTALL=${{ inputs.use-force-reinstall }}
export USE_VERSION_SET=${{ inputs.use-version-set }}
if [[ ${USE_VERSION_SET} == 'true' ]]; then
export VISION_RELEASE_VERSION = ${{ inputs.release-matrix.torchvision }}
export AUDIO_RELEASE_VERSION = ${{ inputs.release-matrix.torchaudio }}
fi
printf '%s\n' ${{ toJson(inputs.release-matrix) }} > release_matrix.json
source /c/Jenkins/Miniconda3/etc/profile.d/conda.sh
Expand Down

0 comments on commit f7ada6f

Please sign in to comment.