Skip to content

Commit adc04ca

Browse files
authored
Fix gRPC failures in Python PreCommit tests (#37350)
* Fixed failures in Python PreCommit tests * Remove explicit runner parameter * Removed Python 3.13 special case for bundle timeout
1 parent 911ec6a commit adc04ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdks/python/apache_beam/yaml/yaml_testing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(self, pipeline_spec, test_spec, options, fix_tests):
4646
self._test_spec = test_spec
4747
self._options = options
4848
self._fix_tests = fix_tests
49+
self._fixes = None
4950

5051
def runTest(self):
5152
self._fixes = run_test(

sdks/python/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ def configure_beam_rpc_timeouts():
5454
"""
5555
print("\n--- Applying Beam RPC timeout configuration ---")
5656

57-
# Set gRPC keepalive and timeout settings
5857
timeout_env_vars = {
5958
'GRPC_ARG_KEEPALIVE_TIME_MS': '30000',
60-
'GRPC_ARG_KEEPALIVE_TIMEOUT_MS': '5000',
59+
'GRPC_ARG_KEEPALIVE_TIMEOUT_MS': '10000',
6160
'GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA': '0',
6261
'GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS': '1',
6362
'GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS': '300000',
@@ -66,7 +65,7 @@ def configure_beam_rpc_timeouts():
6665
# Additional stability settings for DinD environment
6766
'GRPC_ARG_MAX_RECONNECT_BACKOFF_MS': '120000',
6867
'GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS': '1000',
69-
'GRPC_ARG_MAX_CONNECTION_IDLE_MS': '300000',
68+
'GRPC_ARG_MAX_CONNECTION_IDLE_MS': '600000',
7069
'GRPC_ARG_MAX_CONNECTION_AGE_MS': '1800000',
7170

7271
# Beam-specific retry and timeout settings

0 commit comments

Comments
 (0)