Unverified Commit 6a8a3c05 authored by Andrey Talman's avatar Andrey Talman Committed by GitHub
Browse files

Fix vision unit tests infra failures (#7332)


Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
parent 126e3e75
...@@ -767,7 +767,7 @@ jobs: ...@@ -767,7 +767,7 @@ jobs:
image: ubuntu-2004-cuda-11.4:202110-01 image: ubuntu-2004-cuda-11.4:202110-01
resource_class: gpu.nvidia.medium resource_class: gpu.nvidia.medium
environment: environment:
image_name: "pytorch/manylinux-cuda116" image_name: "pytorch/manylinux-cuda117"
CU_VERSION: << parameters.cu_version >> CU_VERSION: << parameters.cu_version >>
PYTHON_VERSION: << parameters.python_version >> PYTHON_VERSION: << parameters.python_version >>
steps: steps:
...@@ -1363,15 +1363,6 @@ workflows: ...@@ -1363,15 +1363,6 @@ workflows:
- nightly - nightly
name: unittest_linux_gpu_py3.10 name: unittest_linux_gpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_linux_gpu:
cu_version: cu117
filters:
branches:
only:
- main
- nightly
name: unittest_linux_gpu_py3.11
python_version: '3.11'
- unittest_windows_cpu: - unittest_windows_cpu:
cu_version: cpu cu_version: cpu
name: unittest_windows_cpu_py3.8 name: unittest_windows_cpu_py3.8
...@@ -1384,10 +1375,6 @@ workflows: ...@@ -1384,10 +1375,6 @@ workflows:
cu_version: cpu cu_version: cpu
name: unittest_windows_cpu_py3.10 name: unittest_windows_cpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_windows_cpu:
cu_version: cpu
name: unittest_windows_cpu_py3.11
python_version: '3.11'
- unittest_windows_gpu: - unittest_windows_gpu:
cu_version: cu117 cu_version: cu117
name: unittest_windows_gpu_py3.8 name: unittest_windows_gpu_py3.8
...@@ -1410,15 +1397,6 @@ workflows: ...@@ -1410,15 +1397,6 @@ workflows:
- nightly - nightly
name: unittest_windows_gpu_py3.10 name: unittest_windows_gpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_windows_gpu:
cu_version: cu117
filters:
branches:
only:
- main
- nightly
name: unittest_windows_gpu_py3.11
python_version: '3.11'
- unittest_macos_cpu: - unittest_macos_cpu:
cu_version: cpu cu_version: cpu
name: unittest_macos_cpu_py3.8 name: unittest_macos_cpu_py3.8
...@@ -1431,10 +1409,6 @@ workflows: ...@@ -1431,10 +1409,6 @@ workflows:
cu_version: cpu cu_version: cpu
name: unittest_macos_cpu_py3.10 name: unittest_macos_cpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_macos_cpu:
cu_version: cpu
name: unittest_macos_cpu_py3.11
python_version: '3.11'
cmake: cmake:
jobs: jobs:
...@@ -1446,7 +1420,7 @@ workflows: ...@@ -1446,7 +1420,7 @@ workflows:
cu_version: cu117 cu_version: cu117
name: cmake_linux_gpu name: cmake_linux_gpu
python_version: '3.8' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda116 wheel_docker_image: pytorch/manylinux-cuda117
- cmake_windows_cpu: - cmake_windows_cpu:
cu_version: cpu cu_version: cpu
name: cmake_windows_cpu name: cmake_windows_cpu
......
...@@ -767,7 +767,7 @@ jobs: ...@@ -767,7 +767,7 @@ jobs:
image: ubuntu-2004-cuda-11.4:202110-01 image: ubuntu-2004-cuda-11.4:202110-01
resource_class: gpu.nvidia.medium resource_class: gpu.nvidia.medium
environment: environment:
image_name: "pytorch/manylinux-cuda116" image_name: "pytorch/manylinux-cuda117"
CU_VERSION: << parameters.cu_version >> CU_VERSION: << parameters.cu_version >>
PYTHON_VERSION: << parameters.python_version >> PYTHON_VERSION: << parameters.python_version >>
steps: steps:
......
...@@ -262,6 +262,11 @@ def unittest_workflows(indentation=6): ...@@ -262,6 +262,11 @@ def unittest_workflows(indentation=6):
if os_type == "linux" and device_type == "cpu": if os_type == "linux" and device_type == "cpu":
continue continue
for i, python_version in enumerate(PYTHON_VERSIONS): for i, python_version in enumerate(PYTHON_VERSIONS):
# Turn off unit tests for 3.11, unit test are not setup properly
if python_version == "3.11":
continue
job = { job = {
"name": f"unittest_{os_type}_{device_type}_py{python_version}", "name": f"unittest_{os_type}_{device_type}_py{python_version}",
"python_version": python_version, "python_version": python_version,
...@@ -290,7 +295,7 @@ def cmake_workflows(indentation=6): ...@@ -290,7 +295,7 @@ def cmake_workflows(indentation=6):
job["cu_version"] = "cu117" if device == "gpu" else "cpu" job["cu_version"] = "cu117" if device == "gpu" else "cpu"
if device == "gpu" and os_type == "linux": if device == "gpu" and os_type == "linux":
job["wheel_docker_image"] = "pytorch/manylinux-cuda116" job["wheel_docker_image"] = "pytorch/manylinux-cuda117"
jobs.append({f"cmake_{os_type}_{device}": job}) jobs.append({f"cmake_{os_type}_{device}": job})
return indent(indentation, jobs) return indent(indentation, jobs)
......
...@@ -5,7 +5,7 @@ unset PYTORCH_VERSION ...@@ -5,7 +5,7 @@ unset PYTORCH_VERSION
# so no need to set PYTORCH_VERSION. # so no need to set PYTORCH_VERSION.
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config. # In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
set -e set -ex
eval "$(./conda/bin/conda shell.bash hook)" eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env conda activate ./env
...@@ -34,7 +34,12 @@ if [ "${os}" == "MacOSX" ]; then ...@@ -34,7 +34,12 @@ if [ "${os}" == "MacOSX" ]; then
conda install -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}"::pytorch "${cudatoolkit}" conda install -y -c "pytorch-${UPLOAD_CHANNEL}" "pytorch-${UPLOAD_CHANNEL}"::pytorch "${cudatoolkit}"
else else
conda install -y -c "pytorch-${UPLOAD_CHANNEL}" -c nvidia "pytorch-${UPLOAD_CHANNEL}"::pytorch[build="*${version}*"] "${cudatoolkit}" conda install -y -c "pytorch-${UPLOAD_CHANNEL}" -c nvidia "pytorch-${UPLOAD_CHANNEL}"::pytorch[build="*${version}*"] "${cudatoolkit}"
# make sure local cuda is set to required cuda version and not CUDA version by default
rm -f /usr/local/cuda
ln -s /usr/local/cuda-${version} /usr/local/cuda
fi fi
printf "* Installing torchvision\n" printf "* Installing torchvision\n"
python setup.py develop python setup.py develop
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# #
# Do not install PyTorch and torchvision here, otherwise they also get cached. # Do not install PyTorch and torchvision here, otherwise they also get cached.
set -e set -ex
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Avoid error: "fatal: unsafe repository" # Avoid error: "fatal: unsafe repository"
...@@ -39,7 +39,7 @@ conda activate "${env_dir}" ...@@ -39,7 +39,7 @@ conda activate "${env_dir}"
# 3. Install Conda dependencies # 3. Install Conda dependencies
printf "* Installing dependencies (except PyTorch)\n" printf "* Installing dependencies (except PyTorch)\n"
FFMPEG_PIN="=4.2" FFMPEG_PIN="=4.2"
if [[ "${PYTHON_VERSION}" = "3.9" ]]; then if [[ "${PYTHON_VERSION}" == "3.9" ]]; then
FFMPEG_PIN=">=4.2" FFMPEG_PIN=">=4.2"
fi fi
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# #
# Do not install PyTorch and torchvision here, otherwise they also get cached. # Do not install PyTorch and torchvision here, otherwise they also get cached.
set -e set -ex
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
root_dir="$(git rev-parse --show-toplevel)" root_dir="$(git rev-parse --show-toplevel)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment