Repository navigation
[Python] Run Dataflow TFT benchmark tests on Python 3.11 to avoid protobuf resolution clash - #40333
Merged
Merged
Conversation
…tobuf resolution clash
Contributor
Author
|
R: @tvalentyn |
Contributor
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
tvalentyn
approved these changes
Sep 29, 2026
Contributor
|
thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #39667
Description
This PR updates
dataflow_cloudml_benchmark_tests_py_versionsinsdks/python/test-suites/gradle.propertiesfrom3.10to3.11.Background & Root Cause
The Dataflow TensorFlow Transform benchmark suite (
:sdks:python:test-suites:dataflow:tftTests) experienced a worker startup and execution regression (sdk boot latency ballooned from ~1.5 minutes to ~6 minutes).Investigation of worker startup logs revealed a pip dependency resolution conflict triggered by
cloudml/requirements.txt:tensorflow-metadata==1.21.0(required bytfx_bslandtensorflow-transform) contains a Python<3.11-specific constraint:protobuf<=6.32;python_version<"3.11".google-cloud-bigtableto>=2.42.0, which strictly requiresprotobuf>=6.33.5.apache-beam==2.75.0and downgradingpyarrowto23.0.1.--extra_package(apache-beam.tar.gz) forces a reinstall of master code, which compiles all Cython/C++ extensions from source directly on the worker VM. This alone consumes over 4 minutes of 100% CPU on each worker before the harness can even start.Solution
In
tensorflow-metadata==1.21.0'ssetup.py, the protobuf constraint for Python 3.11+ has no upper bound:'protobuf>=4.25.2;python_version>="3.11"'