Skip to content

ci: Add verbosity to pytest results, store in ci #1880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
root: /opt/conda/conda-bld/linux-64
paths:
- "*"
- store_test_results:
path: build_results/

binary_linux_conda_cuda:
<<: *binary_common
Expand Down Expand Up @@ -190,6 +192,8 @@ jobs:
conda install -yq conda-build "conda-package-handling!=1.5.0"
bash packaging/build_conda.sh
shell: powershell.exe
- store_test_results:
path: build_results/

binary_win_conda_cuda:
<<: *binary_common
Expand Down Expand Up @@ -246,6 +250,8 @@ jobs:
root: /Users/distiller/miniconda3/conda-bld/osx-64
paths:
- "*"
- store_test_results:
path: build_results/

# Requires org-member context
binary_conda_upload:
Expand Down
6 changes: 6 additions & 0 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
root: /opt/conda/conda-bld/linux-64
paths:
- "*"
- store_test_results:
path: build_results/

binary_linux_conda_cuda:
<<: *binary_common
Expand Down Expand Up @@ -190,6 +192,8 @@ jobs:
conda install -yq conda-build "conda-package-handling!=1.5.0"
bash packaging/build_conda.sh
shell: powershell.exe
- store_test_results:
path: build_results/

binary_win_conda_cuda:
<<: *binary_common
Expand Down Expand Up @@ -246,6 +250,8 @@ jobs:
root: /Users/distiller/miniconda3/conda-bld/osx-64
paths:
- "*"
- store_test_results:
path: build_results/

# Requires org-member context
binary_conda_upload:
Expand Down
1 change: 1 addition & 0 deletions packaging/build_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export SOURCE_ROOT_DIR="$PWD"
setup_conda_pytorch_constraint
setup_conda_cudatoolkit_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
6 changes: 6 additions & 0 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,9 @@ setup_visual_studio_constraint() {
cp packaging/$VSTOOLCHAIN_PACKAGE/conda_build_config.yaml packaging/torchvision/conda_build_config.yaml
fi
}

setup_junit_results_folder() {
if [[ "$CI" == "true" ]]; then
export CONDA_PYTORCH_BUILD_RESULTS_DIRECTORY="${SOURCE_ROOT_DIR}/build_results/results.xml"
fi
}
2 changes: 1 addition & 1 deletion packaging/torchvision/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test:
- ca-certificates
{{ environ.get('CONDA_TYPING_CONSTRAINT') }}
commands:
pytest .
pytest . --verbose --junitxml={{ environ.get("CONDA_PYTORCH_BUILD_RESULTS_DIRECTORY", "build/test_results.xml" )}}


about:
Expand Down