From 8a0aa4b3721f89fdbfae57c1dcbc4ef7bed733a8 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Fri, 15 Oct 2021 14:41:59 -0700 Subject: [PATCH] Update Mac test runs to download RVM directly from GitHub (#9107) Our Mac test runs recently started failing to download RVM. The issue appears to be a combination of an SSL certificate expiring and old OpenSSL versions having a bug preventing them from validating the replacement certificate: https://github.com/rvm/rvm/issues/5133 This commit works around the problem by downloading RVM from GitHub as suggested in one of the comments on the issue above. --- kokoro/macos/prepare_build_macos_rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kokoro/macos/prepare_build_macos_rc b/kokoro/macos/prepare_build_macos_rc index ef428fcda30c..c0017b64ac82 100755 --- a/kokoro/macos/prepare_build_macos_rc +++ b/kokoro/macos/prepare_build_macos_rc @@ -33,5 +33,8 @@ if [[ "${KOKORO_INSTALL_RVM:-}" == "yes" ]] ; then curl -sSL https://rvm.io/mpapis.asc | gpg --import - curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - - curl -sSL https://get.rvm.io | bash -s stable --ruby + # Old OpenSSL versions cannot handle the SSL certificate used by + # https://get.rvm.io, so as a workaround we download RVM directly from + # GitHub. See this issue for details: https://github.com/rvm/rvm/issues/5133 + curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable --ruby fi