mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[CI] Add full debug build to trunk (#164974)
But not test, just import torch, as regression test for https://github.com/pytorch/pytorch/issues/164297 Test plan: Re-apply #164974 on top of this change and observer the failure in the workflows: https://github.com/pytorch/pytorch/actions/runs/18383302153/job/52375282838 Pull Request resolved: https://github.com/pytorch/pytorch/pull/164974 Approved by: https://github.com/seemethere, https://github.com/clee2000, https://github.com/atalman ghstack dependencies: #164968, #164969
This commit is contained in:
committed by
PyTorch MergeBot
parent
fac85fcfb5
commit
e7fd296930
@ -233,7 +233,9 @@ if [[ "${BUILD_ENVIRONMENT}" != *cuda* ]]; then
|
|||||||
export BUILD_STATIC_RUNTIME_BENCHMARK=ON
|
export BUILD_STATIC_RUNTIME_BENCHMARK=ON
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$BUILD_ENVIRONMENT" == *-debug* ]]; then
|
if [[ "$BUILD_ENVIRONMENT" == *-full-debug* ]]; then
|
||||||
|
export CMAKE_BUILD_TYPE=Debug
|
||||||
|
elif [[ "$BUILD_ENVIRONMENT" == *-debug* ]]; then
|
||||||
export CMAKE_BUILD_TYPE=RelWithAssert
|
export CMAKE_BUILD_TYPE=RelWithAssert
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -299,6 +301,11 @@ else
|
|||||||
python -m build --wheel --no-isolation
|
python -m build --wheel --no-isolation
|
||||||
fi
|
fi
|
||||||
pip_install_whl "$(echo dist/*.whl)"
|
pip_install_whl "$(echo dist/*.whl)"
|
||||||
|
if [[ "$BUILD_ENVIRONMENT" == *full-debug* ]]; then
|
||||||
|
# Regression test for https://github.com/pytorch/pytorch/issues/164297
|
||||||
|
# Torch should be importable and that's about it
|
||||||
|
pushd /; python -c "import torch;print(torch.__config__.show(), torch.randn(5) + 1.7)"; popd
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${BUILD_ADDITIONAL_PACKAGES:-}" == *vision* ]]; then
|
if [[ "${BUILD_ADDITIONAL_PACKAGES:-}" == *vision* ]]; then
|
||||||
install_torchvision
|
install_torchvision
|
||||||
|
11
.github/workflows/trunk.yml
vendored
11
.github/workflows/trunk.yml
vendored
@ -249,3 +249,14 @@ jobs:
|
|||||||
docker-image: ${{ needs.linux-jammy-py3-clang12-executorch-build.outputs.docker-image }}
|
docker-image: ${{ needs.linux-jammy-py3-clang12-executorch-build.outputs.docker-image }}
|
||||||
test-matrix: ${{ needs.linux-jammy-py3-clang12-executorch-build.outputs.test-matrix }}
|
test-matrix: ${{ needs.linux-jammy-py3-clang12-executorch-build.outputs.test-matrix }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
linux-jammy-py3_10-gcc11-full-debug-build-only:
|
||||||
|
name: linux-jammy-py3.10-gcc11-full-debug-build-only
|
||||||
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
|
needs: get-label-type
|
||||||
|
with:
|
||||||
|
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}"
|
||||||
|
runner: linux.2xlarge.memory
|
||||||
|
build-environment: linux-jammy-py3.10-gcc11-full-debug-build-only
|
||||||
|
docker-image-name: ci-image:pytorch-linux-jammy-py3.10-gcc11
|
||||||
|
secrets: inherit
|
||||||
|
Reference in New Issue
Block a user