Unverified Commit 3e94dffe authored by Eli Uriegas's avatar Eli Uriegas Committed by GitHub
Browse files

Skip inception v3 in test/test_quantized_models (#1885)



* ci: Add verbosity to pytest results, store in ci

Makes the pytest runs for building conda packages more verbose and
stores the results for viewing inside of CircleCI
Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>

* test: Skip inception v3 in test_quantized_models

Was causing timeouts on circleci due to long run time, re-enable when
tests can be brought to a reasonable time again.
Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>
parent 819b2e9f
...@@ -105,6 +105,8 @@ jobs: ...@@ -105,6 +105,8 @@ jobs:
root: /opt/conda/conda-bld/linux-64 root: /opt/conda/conda-bld/linux-64
paths: paths:
- "*" - "*"
- store_test_results:
path: build_results/
binary_linux_conda_cuda: binary_linux_conda_cuda:
<<: *binary_common <<: *binary_common
...@@ -190,6 +192,8 @@ jobs: ...@@ -190,6 +192,8 @@ jobs:
conda install -yq conda-build "conda-package-handling!=1.5.0" conda install -yq conda-build "conda-package-handling!=1.5.0"
bash packaging/build_conda.sh bash packaging/build_conda.sh
shell: powershell.exe shell: powershell.exe
- store_test_results:
path: build_results/
binary_win_conda_cuda: binary_win_conda_cuda:
<<: *binary_common <<: *binary_common
...@@ -246,6 +250,8 @@ jobs: ...@@ -246,6 +250,8 @@ jobs:
root: /Users/distiller/miniconda3/conda-bld/osx-64 root: /Users/distiller/miniconda3/conda-bld/osx-64
paths: paths:
- "*" - "*"
- store_test_results:
path: build_results/
# Requires org-member context # Requires org-member context
binary_conda_upload: binary_conda_upload:
......
...@@ -105,6 +105,8 @@ jobs: ...@@ -105,6 +105,8 @@ jobs:
root: /opt/conda/conda-bld/linux-64 root: /opt/conda/conda-bld/linux-64
paths: paths:
- "*" - "*"
- store_test_results:
path: build_results/
binary_linux_conda_cuda: binary_linux_conda_cuda:
<<: *binary_common <<: *binary_common
...@@ -190,6 +192,8 @@ jobs: ...@@ -190,6 +192,8 @@ jobs:
conda install -yq conda-build "conda-package-handling!=1.5.0" conda install -yq conda-build "conda-package-handling!=1.5.0"
bash packaging/build_conda.sh bash packaging/build_conda.sh
shell: powershell.exe shell: powershell.exe
- store_test_results:
path: build_results/
binary_win_conda_cuda: binary_win_conda_cuda:
<<: *binary_common <<: *binary_common
...@@ -246,6 +250,8 @@ jobs: ...@@ -246,6 +250,8 @@ jobs:
root: /Users/distiller/miniconda3/conda-bld/osx-64 root: /Users/distiller/miniconda3/conda-bld/osx-64
paths: paths:
- "*" - "*"
- store_test_results:
path: build_results/
# Requires org-member context # Requires org-member context
binary_conda_upload: binary_conda_upload:
......
...@@ -10,4 +10,5 @@ export SOURCE_ROOT_DIR="$PWD" ...@@ -10,4 +10,5 @@ export SOURCE_ROOT_DIR="$PWD"
setup_conda_pytorch_constraint setup_conda_pytorch_constraint
setup_conda_cudatoolkit_constraint setup_conda_cudatoolkit_constraint
setup_visual_studio_constraint setup_visual_studio_constraint
setup_junit_results_folder
conda build $CONDA_CHANNEL_FLAGS -c defaults -c conda-forge --no-anaconda-upload --python "$PYTHON_VERSION" packaging/torchvision conda build $CONDA_CHANNEL_FLAGS -c defaults -c conda-forge --no-anaconda-upload --python "$PYTHON_VERSION" packaging/torchvision
...@@ -270,3 +270,9 @@ setup_visual_studio_constraint() { ...@@ -270,3 +270,9 @@ setup_visual_studio_constraint() {
cp packaging/$VSTOOLCHAIN_PACKAGE/conda_build_config.yaml packaging/torchvision/conda_build_config.yaml cp packaging/$VSTOOLCHAIN_PACKAGE/conda_build_config.yaml packaging/torchvision/conda_build_config.yaml
fi fi
} }
setup_junit_results_folder() {
if [[ "$CI" == "true" ]]; then
export CONDA_PYTORCH_BUILD_RESULTS_DIRECTORY="${SOURCE_ROOT_DIR}/build_results/results.xml"
fi
}
...@@ -49,7 +49,7 @@ test: ...@@ -49,7 +49,7 @@ test:
- ca-certificates - ca-certificates
{{ environ.get('CONDA_TYPING_CONSTRAINT') }} {{ environ.get('CONDA_TYPING_CONSTRAINT') }}
commands: commands:
pytest . pytest . --verbose --junitxml={{ environ.get("CONDA_PYTORCH_BUILD_RESULTS_DIRECTORY", "build/test_results.xml" )}}
about: about:
......
...@@ -83,7 +83,10 @@ for model_name in get_available_quantizable_models(): ...@@ -83,7 +83,10 @@ for model_name in get_available_quantizable_models():
input_shape = (1, 3, 299, 299) input_shape = (1, 3, 299, 299)
self._test_classification_model(model_name, input_shape) self._test_classification_model(model_name, input_shape)
setattr(ModelTester, "test_" + model_name, do_test) # inception_v3 was causing timeouts on circleci
# See https://github.com/pytorch/vision/issues/1857
if model_name not in ['inception_v3']:
setattr(ModelTester, "test_" + model_name, do_test)
if __name__ == '__main__': if __name__ == '__main__':
......
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