From 0eb3dd1d72d76af8b4a898ec36e685bd1a723ed4 Mon Sep 17 00:00:00 2001 From: Huanyu He Date: Wed, 3 Jul 2024 14:31:30 -0700 Subject: [PATCH] fix cibuildwheel issue "Could not resolve host: mirrorlist.centos.org; Unknown error" (#2207) Summary: Pull Request resolved: https://github.com/pytorch/torchrec/pull/2207 # context * there is a recent error in the "Build Dynamic Embedding Wheels" test ``` + sh -c 'env CUDA_VERSION=11.8 contrib/dynamic_embedding/tools/before_linux_build.sh' + distro=rhel7 + arch=x86_64 + CUDA_VERSION=11.8 ++ echo 11.8 ++ tr . ' ' ++ awk '{print $1}' + CUDA_MAJOR_VERSION=11 ++ echo 11.8 ++ tr . ' ' ++ awk '{print $2}' + CUDA_MINOR_VERSION=8 + yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo Loaded plugins: fastestmirror, ovl adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo grabbing file https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo to /etc/yum.repos.d/cuda-rhel7.repo repo saved to /etc/yum.repos.d/cuda-rhel7.repo + yum install -y cuda-toolkit-11-8 libcudnn8-devel Loaded plugins: fastestmirror, ovl Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error" ``` Differential Revision: D59347488 --- .github/workflows/build_dynamic_embedding_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_dynamic_embedding_wheels.yml b/.github/workflows/build_dynamic_embedding_wheels.yml index 8dd7231b0..504cf50e0 100644 --- a/.github/workflows/build_dynamic_embedding_wheels.yml +++ b/.github/workflows/build_dynamic_embedding_wheels.yml @@ -41,7 +41,7 @@ jobs: with: submodules: recursive - - uses: pypa/cibuildwheel@v2.8.0 + - uses: pypa/cibuildwheel@v2.19.2 with: package-dir: contrib/dynamic_embedding env: