Skip to content

Commit

Permalink
Promote SSL_CERT_FILE env variable to tests (#1834)
Browse files Browse the repository at this point in the history
This should fix "Network is unreachable" errors in Python tests.

Progress towards
#1708
  • Loading branch information
fweikert authored Dec 8, 2023
1 parent 3cfc36f commit 07afd38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildkite/bazelci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,10 @@ def execute_commands(
os.environ["BAZELISK_USER_AGENT"] = "Bazelisk/BazelCI"
test_env_vars.append("BAZELISK_USER_AGENT")

# Avoid "Network is unreachable" problems in Python tests due to IPv6
if os.getenv("SSL_CERT_FILE"):
test_env_vars.append("SSL_CERT_FILE")

# We use one binary for all Linux platforms (because we also just release one binary for all
# Linux versions and we have to ensure that it works on all of them).
binary_platform = platform if is_mac() or is_windows() else LINUX_BINARY_PLATFORM
Expand Down

0 comments on commit 07afd38

Please sign in to comment.