Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
6a8a3c05
Unverified
Commit
6a8a3c05
authored
Feb 27, 2023
by
Andrey Talman
Committed by
GitHub
Feb 27, 2023
Browse files
Fix vision unit tests infra failures (#7332)
Co-authored-by:
Nicolas Hug
<
contact@nicolas-hug.com
>
parent
126e3e75
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
34 deletions
+18
-34
.circleci/config.yml
.circleci/config.yml
+2
-28
.circleci/config.yml.in
.circleci/config.yml.in
+1
-1
.circleci/regenerate.py
.circleci/regenerate.py
+6
-1
.circleci/unittest/linux/scripts/install.sh
.circleci/unittest/linux/scripts/install.sh
+6
-1
.circleci/unittest/linux/scripts/setup_env.sh
.circleci/unittest/linux/scripts/setup_env.sh
+2
-2
.circleci/unittest/windows/scripts/setup_env.sh
.circleci/unittest/windows/scripts/setup_env.sh
+1
-1
No files found.
.circleci/config.yml
View file @
6a8a3c05
...
@@ -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-cuda11
6
"
image_name
:
"
pytorch/manylinux-cuda11
7
"
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-cuda11
6
wheel_docker_image
:
pytorch/manylinux-cuda11
7
-
cmake_windows_cpu
:
-
cmake_windows_cpu
:
cu_version
:
cpu
cu_version
:
cpu
name
:
cmake_windows_cpu
name
:
cmake_windows_cpu
...
...
.circleci/config.yml.in
View file @
6a8a3c05
...
@@ -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-cuda11
6
"
image_name: "pytorch/manylinux-cuda11
7
"
CU_VERSION: << parameters.cu_version >>
CU_VERSION: << parameters.cu_version >>
PYTHON_VERSION: << parameters.python_version >>
PYTHON_VERSION: << parameters.python_version >>
steps:
steps:
...
...
.circleci/regenerate.py
View file @
6a8a3c05
...
@@ -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-cuda11
6
"
job
[
"wheel_docker_image"
]
=
"pytorch/manylinux-cuda11
7
"
jobs
.
append
({
f
"cmake_
{
os_type
}
_
{
device
}
"
:
job
})
jobs
.
append
({
f
"cmake_
{
os_type
}
_
{
device
}
"
:
job
})
return
indent
(
indentation
,
jobs
)
return
indent
(
indentation
,
jobs
)
...
...
.circleci/unittest/linux/scripts/install.sh
View file @
6a8a3c05
...
@@ -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
-e
x
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
.circleci/unittest/linux/scripts/setup_env.sh
View file @
6a8a3c05
...
@@ -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
-e
x
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
...
...
.circleci/unittest/windows/scripts/setup_env.sh
View file @
6a8a3c05
...
@@ -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
-e
x
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
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment