You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by jr...@apache.org on 2024/10/14 15:03:59 UTC

(beam) branch master updated: Pin protobuf version for TF dependency tests (#32719)

This is an automated email from the ASF dual-hosted git repository.

jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new b94f8a74b5a Pin protobuf version for TF dependency tests (#32719)
b94f8a74b5a is described below

commit b94f8a74b5a9c2a5216320342f038b03879dd289
Author: Jack McCluskey <34...@users.noreply.github.com>
AuthorDate: Mon Oct 14 11:03:51 2024 -0400

    Pin protobuf version for TF dependency tests (#32719)
    
    * Pin protobuf version for TF dependency tests
    
    * pin specfic protobuf version
    
    * increment tested TF version
    
    * pin at higher version of protobuf
    
    * fix incorrect configuration
    
    * try bumping tf version
    
    * further specify dependency versions
    
    * try adding other ml testing deps for compat
    
    * fix transformers tests
    
    * tweak deps for transformers
    
    * whitespace
---
 sdks/python/tox.ini | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini
index 8cc125d946a..8cdc4a98bbf 100644
--- a/sdks/python/tox.ini
+++ b/sdks/python/tox.ini
@@ -394,10 +394,12 @@ commands =
 
 [testenv:py39-tensorflow-212]
 deps =
-  212: tensorflow>=2.12rc1,<2.13
-  # Help pip resolve conflict with typing-extensions for old version of TF https://github.com/apache/beam/issues/30852
-  212: pydantic<2.7
-extras = test,gcp
+  212: 
+    tensorflow>=2.12rc1,<2.13
+    # Help pip resolve conflict with typing-extensions for old version of TF https://github.com/apache/beam/issues/30852
+    pydantic<2.7
+    protobuf==4.25.5
+extras = test,gcp,ml_test
 commands =
   # Log tensorflow version for debugging
   /bin/sh -c "pip freeze | grep -E tensorflow"
@@ -428,7 +430,8 @@ deps =
   430: transformers>=4.30.0,<4.31.0
   torch>=1.9.0,<1.14.0
   tensorflow==2.12.0
-extras = test,gcp
+  protobuf==4.25.5
+extras = test,gcp,ml_test
 commands =
   # Log transformers and its dependencies version for debugging
   /bin/sh -c "pip freeze | grep -E transformers"