You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2026/04/02 08:44:40 UTC
(beam) 03/03: Next step
This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a commit to branch stacktrace-precommit-python
in repository https://gitbox.apache.org/repos/asf/beam.git
commit d65fe556c1ea5c9fdaecb90638266d9973028b78
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Thu Apr 2 11:20:37 2026 +0400
Next step
---
.github/workflows/beam_PreCommit_Python.yml | 1 +
sdks/python/apache_beam/yaml/yaml_provider.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/beam_PreCommit_Python.yml b/.github/workflows/beam_PreCommit_Python.yml
index 4d775aeed31..ccc919d8ef7 100644
--- a/.github/workflows/beam_PreCommit_Python.yml
+++ b/.github/workflows/beam_PreCommit_Python.yml
@@ -57,6 +57,7 @@ env:
PYTHONHASHSEED: "0"
OMP_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
+ GRPC_ENABLE_FORK_SUPPORT: "0"
# gRPC stability - more conservative for unstable networks
GRPC_ARG_KEEPALIVE_TIME_MS: "10000"
GRPC_ARG_KEEPALIVE_TIMEOUT_MS: "15000"
diff --git a/sdks/python/apache_beam/yaml/yaml_provider.py b/sdks/python/apache_beam/yaml/yaml_provider.py
index 5a3ccf6b0c2..c5e2d65a298 100755
--- a/sdks/python/apache_beam/yaml/yaml_provider.py
+++ b/sdks/python/apache_beam/yaml/yaml_provider.py
@@ -1412,7 +1412,8 @@ class PypiExpansionService:
@classmethod
def _create_venv_to_clone(cls, base_python: str) -> str:
- if '.dev' in beam_version:
+ _ci = os.environ.get('CI', '').lower() in ('true', '1', 'yes')
+ if '.dev' in beam_version and not _ci:
base_venv = os.path.dirname(os.path.dirname(base_python))
print('Cloning dev environment from', base_venv)
return base_venv