Skip to content

Commit 1b29eb7

Browse files
No public description
PiperOrigin-RevId: 938057671
1 parent 6375d5f commit 1b29eb7

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

release/kokoro/release_linux.sh

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515

1616
set -e
1717

18+
echo "Updating ca-certificates..."
19+
apt-get update && apt-get install -y ca-certificates
20+
1821
if ! command -v pip3 &> /dev/null || ! command -v curl &> /dev/null || ! command -v docker &> /dev/null || ! command -v git &> /dev/null; then
1922
echo "Installing basic dependencies..."
20-
apt-get update && apt-get install -y python3-pip curl git ca-certificates
21-
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
23+
apt-get install -y python3-pip curl git
24+
fi
25+
26+
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
2227

2328
if ! command -v docker &> /dev/null; then
2429
echo "Installing docker CLI..."
@@ -36,7 +41,6 @@ if ! command -v pip3 &> /dev/null || ! command -v curl &> /dev/null || ! command
3641
mv docker /usr/local/bin/
3742
rm -f docker.tgz
3843
fi
39-
fi
4044

4145
# Avoid virtualenv/pip trying to download/upgrade tools from PyPI on host
4246
export VIRTUALENV_NO_DOWNLOAD=1
@@ -206,6 +210,25 @@ if [ "${DRY_RUN}" = "true" ]; then
206210
VERSION="0.1.2"
207211
fi
208212
popd
213+
214+
# TEMPORARY: run clone to debug SSL issue
215+
echo "[DRY RUN] TEMPORARY: Testing git clone to debug SSL issue"
216+
pushd "${REPO_DIR}"
217+
echo "DEBUG: Current date/time:"
218+
date
219+
echo "DEBUG: Testing curl to GitHub:"
220+
curl -I https://github.com || true
221+
echo "DEBUG: Rebuilding ca-certificates..."
222+
update-ca-certificates --fresh || true
223+
echo "DEBUG: Git config:"
224+
git config --list || true
225+
echo "DEBUG: Testing git clone with default SSL CA info (unset):"
226+
git config --global --unset http.sslCAinfo || true
227+
git clone https://github.com/cel-expr/cel-python.git test_clone_default && echo "Default clone SUCCEEDED" && rm -rf test_clone_default || echo "Default clone FAILED"
228+
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
229+
echo "DEBUG: Running actual git clone (might fail if explicit CA info is broken):"
230+
git clone https://github.com/cel-expr/cel-python.git
231+
popd
209232
else
210233
pushd "${REPO_DIR}"
211234
git clone https://github.com/cel-expr/cel-python.git

0 commit comments

Comments
 (0)