You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/12/08 20:49:49 UTC

[GitHub] [beam] AnandInguva opened a new pull request, #24599: Update build dependencies and mypy-protobuf

AnandInguva opened a new pull request, #24599:
URL: https://github.com/apache/beam/pull/24599

   **Please** add a meaningful description for your change here
   
   ------------------------
   
   Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
   
    - [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
    - [ ] Update `CHANGES.md` with noteworthy changes.
    - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/get-started-contributing/#make-the-reviewers-job-easier).
   
   To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
   
   GitHub Actions Tests Status (on master branch)
   ------------------------------------------------------------------------------------------------
   [![Build python source distribution and wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Go tests](https://github.com/apache/beam/workflows/Go%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update build dependencies and mypy-protobuf

Posted by GitBox <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1359964125

   https://github.com/protocolbuffers/protobuf/issues/10051 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113718135


##########
sdks/python/setup.py:
##########
@@ -300,24 +291,24 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<2.19',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',
             'google-cloud-spanner>=3.0.0,<4',
             # GCP Packages required by ML functionality
-            'google-cloud-dlp>=3.0.0,<4',
-            'google-cloud-language>=1.3.0,<2',
-            'google-cloud-videointelligence>=1.8.0,<2',
+            'google-cloud-dlp>=3.0.0,<4.0',
+            'google-cloud-language>=2.0,<3.0',
+            'google-cloud-videointelligence>=2.0,<3.0',
             'google-cloud-vision>=2,<4',
-            'google-cloud-recommendations-ai>=0.1.0,<0.8.0'
+            'google-cloud-recommendations-ai>=0.1.0,<1.0'
           ],
           'interactive': [
-            'facets-overview>=1.0.0,<2',
+            'facets-overview>=1.1.0,<2',
             'google-cloud-dataproc>=3.0.0,<3.2.0',

Review Comment:
   can we bump this one as well?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464342293

   Run Python 3.10 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1460697590

   Run Python Dataflow ValidatesContainer


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132791358


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -140,19 +140,4 @@ def report_latency(self, now, latency_ms, num_mutations):
 
 
 def extract_byte_size(proto_message):

Review Comment:
   do we still need this  helper function?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1114635795


##########
sdks/python/setup.py:
##########
@@ -300,25 +296,25 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<3',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',

Review Comment:
   cc: @johnjcasey FYI.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194173300


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   Thanks, this is less severe, so it only affects dev version



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194160794


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   we intentionally removed google-cloud-debugger from Dataflow containers, perhaps there was confused between this two deps.



##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   we intentionally removed google-cloud-debugger from Dataflow containers, perhaps there was confusion between this two deps.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132819556


##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,30 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# TODO(https://github.com/apache/beam/issues/25796) - uncomment onnx tox task once onnx supports protobuf 4.x.x
+# [testenv:py{37,38,39,310}-onnx-113]
 # TODO(https://github.com/apache/beam/issues/25443)
 # apparently tox has problem when substitution key has single value. Change back to -onnx-{113,...}
 # when multiple onnx versions are tested.
-deps =
-  onnxruntime==1.13.1
-  pandas==1.5.2
-  torch==1.13.1
-  tensorflow==2.11.0
-  tf2onnx==1.13.0
-  skl2onnx==1.13
-  transformers==4.25.1
-extras = test,gcp
-commands =
-  # Log onnx version for debugging
-  /bin/sh -c "pip freeze | grep -E onnx"
-  # Run all ONNX unit tests
-  pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_onnx {posargs}
+# deps =
+#  onnxruntime==1.13.1
+#  pandas==1.5.2
+# torch==1.13.1
+# tensorflow==2.11.0

Review Comment:
   looks like this change is already in your PR



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464341439

   Run Python 3.8 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132789015


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/datastoreio_test.py:
##########
@@ -49,8 +49,20 @@
   client = None
 
 
-# TODO(https://github.com/apache/beam/issues/25625)
-# remove this FakeMutation and replace it with proto.Message class.
+# used for internal testing only
+class ByteSize():

Review Comment:
   Name this class as Fake[ClassNameThatYouAreFaking], for example: FakeMessage.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132603741


##########
sdks/python/apache_beam/ml/gcp/naturallanguageml.py:
##########
@@ -93,12 +92,11 @@ def AnnotateText(
   https://cloud.google.com/natural-language/docs.
 
   Args:
-    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection of
-      :class:`Document` objects.
-    features (`Union[Mapping[str, bool], types.AnnotateTextRequest.Features]`):
-      A dictionary of natural language operations to be performed on given
-      text in the following format::
+    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection
+            of :class:`Document` objects.
 
+    features: A dictionary of natural language operations to be performed

Review Comment:
   something in context to `cannot find module/attribute named features`.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update build dependencies and mypy-protobuf

Posted by GitBox <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1343364691

   https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113717582


##########
sdks/python/setup.py:
##########
@@ -300,24 +291,24 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<2.19',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',
             'google-cloud-spanner>=3.0.0,<4',
             # GCP Packages required by ML functionality
-            'google-cloud-dlp>=3.0.0,<4',
-            'google-cloud-language>=1.3.0,<2',
-            'google-cloud-videointelligence>=1.8.0,<2',
+            'google-cloud-dlp>=3.0.0,<4.0',

Review Comment:
   likewise below



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] johnjcasey commented on a diff in pull request #24599: Update GCP dependencies in Beam Python SDK

Posted by "johnjcasey (via GitHub)" <gi...@apache.org>.
johnjcasey commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1114685862


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -137,3 +137,22 @@ def report_latency(self, now, latency_ms, num_mutations):
       num_mutations: int, number of mutations contained in the RPC.
     """
     self._commit_time_per_entity_ms.add(now, latency_ms / num_mutations)
+
+
+def extract_byte_size(proto_message):
+  """
+    Gets the byte size from a google.protobuf or proto-plus message

Review Comment:
   I don't know of any reason to not stop supporting v1



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Python SDK build dependencies

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1438792443

   Run Python PreCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132597896


##########
sdks/python/test-suites/tox/py38/build.gradle:
##########
@@ -103,21 +103,13 @@ test.dependsOn "testPy38pytorch-113"
 preCommitPyCoverage.dependsOn "testPy38pytorch-113"
 
 // Create a test task for each minor version of onnx
-toxTask "testPy38onnx-113", "py38-onnx-113", "${posargs}"
-test.dependsOn "testPy38onnx-113"
-preCommitPyCoverage.dependsOn "testPy38onnx-113"
+// toxTask "testPy38onnx-113", "py38-onnx-113", "${posargs}"

Review Comment:
   https://github.com/onnx/onnx/issues/4239 - we need to skip onnx tests since Protobuf 4.x.x is not yet supported on onnx and it is failing IT tests



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132706300


##########
sdks/python/apache_beam/ml/gcp/naturallanguageml.py:
##########
@@ -93,12 +92,11 @@ def AnnotateText(
   https://cloud.google.com/natural-language/docs.
 
   Args:
-    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection of
-      :class:`Document` objects.
-    features (`Union[Mapping[str, bool], types.AnnotateTextRequest.Features]`):
-      A dictionary of natural language operations to be performed on given
-      text in the following format::
+    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection
+            of :class:`Document` objects.
 
+    features: A dictionary of natural language operations to be performed

Review Comment:
   what's the error or stacktrace?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132813652


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/datastoreio_test.py:
##########
@@ -49,8 +49,20 @@
   client = None
 
 
-# TODO(https://github.com/apache/beam/issues/25625)
-# remove this FakeMutation and replace it with proto.Message class.
+# used for internal testing only
+class ByteSize():

Review Comment:
   Changed it to FakeByteSize()



##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -140,19 +140,4 @@ def report_latency(self, now, latency_ms, num_mutations):
 
 
 def extract_byte_size(proto_message):

Review Comment:
   No



##########
sdks/python/apache_beam/io/gcp/datastore/v1new/datastoreio_test.py:
##########
@@ -49,8 +49,20 @@
   client = None
 
 
-# TODO(https://github.com/apache/beam/issues/25625)
-# remove this FakeMutation and replace it with proto.Message class.
+# used for internal testing only
+class ByteSize():

Review Comment:
   Changed it to FakeByteSize



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1465265425

   Run Python 3.9 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194145145


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   Any reason removing google-cloud-profiler dep in base image? This has broken the google-cloud-profiler support on Beam ~v2.47.0~
   
   Update: confirmed that support on v2.47.0 is not affected. It only affects dev version for now



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194159405


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   This was not intentional. Looks like Dataflow containers still include it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1131447454


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -137,3 +137,22 @@ def report_latency(self, now, latency_ms, num_mutations):
       num_mutations: int, number of mutations contained in the RPC.
     """
     self._commit_time_per_entity_ms.add(now, latency_ms / num_mutations)
+
+
+def extract_byte_size(proto_message):
+  """
+    Gets the byte size from a google.protobuf or proto-plus message

Review Comment:
   - you can access ByteSize in ProtoPlus message by msg._pb.ByteSize(). We access the ._pb in other places in Beam already.
   - you can modify FakeMutation to support the accessor as above.  
   -  given that we increase 'google-cloud-datastore>=2.0.0,<3',  I don't see a reason to support older version of the messages.  FakeMutation is purely test code, so keeping branching in the SDK code to accommodate the test code sounds like unnecessary complexity. 
   



##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -137,3 +137,22 @@ def report_latency(self, now, latency_ms, num_mutations):
       num_mutations: int, number of mutations contained in the RPC.
     """
     self._commit_time_per_entity_ms.add(now, latency_ms / num_mutations)
+
+
+def extract_byte_size(proto_message):
+  """
+    Gets the byte size from a google.protobuf or proto-plus message

Review Comment:
   - you can access ByteSize in ProtoPlus message by `msg._pb.ByteSize()`. We access the ._pb in other places in Beam already.
   - you can modify FakeMutation to support the accessor as above.  
   -  given that we increase 'google-cloud-datastore>=2.0.0,<3',  I don't see a reason to support older version of the messages.  FakeMutation is purely test code, so keeping branching in the SDK code to accommodate the test code sounds like unnecessary complexity. 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113716978


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0
 guppy3  # Memory profiler
 mmh3  # Optimizes execution of some Beam codepaths. TODO: Make it Beam's dependency.
 nltk  # Commonly used for natural language processing.
 nose==1.3.7  # For Dataflow internal testing. TODO: remove this.
 python-snappy  # Optimizes execution of some Beam codepaths.
 scipy
 scikit-learn
-tensorflow
+protobuf

Review Comment:
   this is already a beam dependency, no need to mention it here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113717404


##########
sdks/python/setup.py:
##########
@@ -300,24 +291,24 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<2.19',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',
             'google-cloud-spanner>=3.0.0,<4',
             # GCP Packages required by ML functionality
-            'google-cloud-dlp>=3.0.0,<4',
-            'google-cloud-language>=1.3.0,<2',
-            'google-cloud-videointelligence>=1.8.0,<2',
+            'google-cloud-dlp>=3.0.0,<4.0',

Review Comment:
   ```suggestion
               'google-cloud-dlp>=3.0.0,<4',
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] lostluck commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "lostluck (via GitHub)" <gi...@apache.org>.
lostluck commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1442409739

   It's a flake/ very faulty testing paradigm. But unrelated to this change. That i can solve.
   
   The GoPortable PreCommits are dying before things get to Go in gradle. There's a bad lockfile on the machine that runs that one from the looks of it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update build dependencies and mypy-protobuf

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1421221626

   The `urns` are not getting build when protobuf is updated to 4.21.11.
   
   Can be reproduced with
   1. python setup.py sdist
   2. pip install dist/apache-beam-x.xx.x.dev0.tar.gz


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] github-actions[bot] commented on pull request #24599: Update Python SDK build dependencies

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1438859572

   Assigning reviewers. If you would like to opt out of this review, comment `assign to next reviewer`:
   
   R: @tvalentyn for label python.
   
   Available commands:
   - `stop reviewer notifications` - opt out of the automated review tooling
   - `remind me after tests pass` - tag the comment author after tests pass
   - `waiting on author` - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)
   
   The PR bot will only process comments in the main thread (not review comments).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113710788


##########
sdks/python/setup.py:
##########
@@ -300,24 +291,24 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<2.19',

Review Comment:
   ```suggestion
               'google-cloud-bigquery-storage>=2.6.3,<3',
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113714260


##########
sdks/python/setup.py:
##########
@@ -252,6 +242,7 @@ def get_portability_package_data():
         'objsize>=0.6.1,<0.7.0',
         'pymongo>=3.8.0,<4.0.0',
         'proto-plus>=1.7.1,<2',
+        'protobuf>=4.00,<=5',

Review Comment:
   1) Don't use <= in upper bounds.  Once version 5 is released, the version 5.0.0 will always be used by Beam SDK. If 5.0.0 is buggy, protobuf won't be able to produce a patch release that old version of Beam will pick up. See: https://docs.google.com/document/d/1gxQF8mciRYgACNpCy1wlR7TBa8zN-Tl6PebW-U8QvBk/edit?resourcekey=0-XcHRyFh4KRPkA0GsdUmU3g#heading=h.lev3iz8uzeuh
   
   ```suggestion
           # use a tighter upper bound in protobuf dependency
           # to make sure the minor version at job submission
           # does not exceed the minor version at runtime.
           # To avoid depending on an old dependency, update the minor version on
           # every Beam release, see: https://github.com/apache/beam/issues/23119
           'protobuf>=4.0.0,<4.23.0',
   ```
   
   2) we will have to update the linked issue to also update protobuf dependency for each release.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1442410979

   > It's a flake/ very faulty testing paradigm. But unrelated to this change. That i can solve.
   > 
   > The GoPortable PreCommits are dying before things get to Go in gradle. There's a bad lockfile on the machine that runs that one from the looks of it.
   
   Thanks for the info. I will ignore that test for this change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1460697273

   Run Python Dataflow ValidatesRunner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132601935


##########
sdks/python/setup.py:
##########
@@ -300,25 +296,25 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<3',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',
             'google-cloud-spanner>=3.0.0,<4',
             # GCP Packages required by ML functionality
             'google-cloud-dlp>=3.0.0,<4',
-            'google-cloud-language>=1.3.0,<2',
-            'google-cloud-videointelligence>=1.8.0,<2',
+            'google-cloud-language>=2.0,<3',
+            'google-cloud-videointelligence>=2.0,<3',
             'google-cloud-vision>=2,<4',
-            'google-cloud-recommendations-ai>=0.1.0,<0.8.0'
+            'google-cloud-recommendations-ai>=0.1.0,<1'

Review Comment:
   Sounds good. I will make the change



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132781971


##########
sdks/python/apache_beam/ml/gcp/__init__.py:
##########
@@ -14,3 +14,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
+# TODO(https://github.com/apache/beam/issues/25625)

Review Comment:
   Added some context and added versions here and in the issue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464341846

   Run Python 3.9 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1117281654


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -137,3 +137,22 @@ def report_latency(self, now, latency_ms, num_mutations):
       num_mutations: int, number of mutations contained in the RPC.
     """
     self._commit_time_per_entity_ms.add(now, latency_ms / num_mutations)
+
+
+def extract_byte_size(proto_message):
+  """
+    Gets the byte size from a google.protobuf or proto-plus message

Review Comment:
   There are some helper functions which converts key or entity to protobuf. There are certain piece of test code that replicates this behavior using `FakeMutation` object. In tests, FakeMutation object has attr ByteSize() in which we calculate byte size of messages. 
   
   To replace the FakeMutation class, we need to refactor some pieces of code. So for now, I am keeping this as it is  now and I filed an issue https://github.com/apache/beam/issues/25625 to tackle this not only for this library but for other GCP dependencies as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] codecov[bot] commented on pull request #24599: Update Python SDK build dependencies

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1439261502

   # [Codecov](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#24599](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (188a5d6) into [master](https://codecov.io/gh/apache/beam/commit/c160a081923c45d8c9304a57802533b744a54663?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (c160a08) will **decrease** coverage by `0.02%`.
   > The diff coverage is `n/a`.
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #24599      +/-   ##
   ==========================================
   - Coverage   72.65%   72.64%   -0.02%     
   ==========================================
     Files         759      759              
     Lines      100689   100642      -47     
   ==========================================
   - Hits        73160    73113      -47     
     Misses      26121    26121              
     Partials     1408     1408              
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...ache\_beam/coders/proto2\_coder\_test\_messages\_pb2.py](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vY29kZXJzL3Byb3RvMl9jb2Rlcl90ZXN0X21lc3NhZ2VzX3BiMi5weQ==) | `100.00% <ø> (ø)` | |
   | [.../apache\_beam/io/gcp/datastore/v1new/datastoreio.py](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vaW8vZ2NwL2RhdGFzdG9yZS92MW5ldy9kYXRhc3RvcmVpby5weQ==) | `86.11% <ø> (-0.06%)` | :arrow_down: |
   | [.../python/apache\_beam/io/gcp/datastore/v1new/util.py](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vaW8vZ2NwL2RhdGFzdG9yZS92MW5ldy91dGlsLnB5) | `100.00% <ø> (ø)` | |
   | [...dks/python/apache\_beam/ml/gcp/naturallanguageml.py](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vbWwvZ2NwL25hdHVyYWxsYW5ndWFnZW1sLnB5) | `93.47% <ø> (-0.40%)` | :arrow_down: |
   | [...s/python/apache\_beam/ml/gcp/videointelligenceml.py](https://codecov.io/gh/apache/beam/pull/24599?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vbWwvZ2NwL3ZpZGVvaW50ZWxsaWdlbmNlbWwucHk=) | `94.02% <ø> (ø)` | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] robertwb commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "robertwb (via GitHub)" <gi...@apache.org>.
robertwb commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1113671034


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -137,3 +137,22 @@ def report_latency(self, now, latency_ms, num_mutations):
       num_mutations: int, number of mutations contained in the RPC.
     """
     self._commit_time_per_entity_ms.add(now, latency_ms / num_mutations)
+
+
+def extract_byte_size(proto_message):
+  """
+    Gets the byte size from a google.protobuf or proto-plus message
+
+    google-cloud-datastore moved from using protobuf to using
+    proto-plus messages.
+    protobuf object has attribute ByteSize() but proto.Message() objects
+    don't. Workaround:
+    https://github.com/googleapis/proto-plus-python/issues/163
+    """
+  if hasattr(proto_message, "ByteSize"):
+    # google.protobuf message
+    return proto_message.ByteSize()
+  if hasattr(type(proto_message), "pb"):
+    # proto-plus message
+    return type(proto_message).pb(proto_message).ByteSize()
+  return None

Review Comment:
   Throw an exception here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132813744


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -140,19 +140,4 @@ def report_latency(self, now, latency_ms, num_mutations):
 
 
 def extract_byte_size(proto_message):

Review Comment:
   No. Removed it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132798374


##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,30 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# TODO(https://github.com/apache/beam/issues/25796) - uncomment onnx tox task once onnx supports protobuf 4.x.x
+# [testenv:py{37,38,39,310}-onnx-113]
 # TODO(https://github.com/apache/beam/issues/25443)
 # apparently tox has problem when substitution key has single value. Change back to -onnx-{113,...}
 # when multiple onnx versions are tested.
-deps =
-  onnxruntime==1.13.1
-  pandas==1.5.2
-  torch==1.13.1
-  tensorflow==2.11.0
-  tf2onnx==1.13.0
-  skl2onnx==1.13
-  transformers==4.25.1
-extras = test,gcp
-commands =
-  # Log onnx version for debugging
-  /bin/sh -c "pip freeze | grep -E onnx"
-  # Run all ONNX unit tests
-  pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_onnx {posargs}
+# deps =
+#  onnxruntime==1.13.1
+#  pandas==1.5.2
+# torch==1.13.1
+# tensorflow==2.11.0

Review Comment:
   should be TF 2.12.0 too, my guess.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1470495038

   Run Python_PVR_Flink PreCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464521309

   Run Python 3.8 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194145145


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   Any reason removing google-cloud-profiler dep in base image? This has broken the google-cloud-profiler support on Beam v2.47.0



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464521639

   Run Python 3.7 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132821282


##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,30 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# TODO(https://github.com/apache/beam/issues/25796) - uncomment onnx tox task once onnx supports protobuf 4.x.x
+# [testenv:py{37,38,39,310}-onnx-113]
 # TODO(https://github.com/apache/beam/issues/25443)
 # apparently tox has problem when substitution key has single value. Change back to -onnx-{113,...}
 # when multiple onnx versions are tested.
-deps =
-  onnxruntime==1.13.1
-  pandas==1.5.2
-  torch==1.13.1
-  tensorflow==2.11.0
-  tf2onnx==1.13.0
-  skl2onnx==1.13
-  transformers==4.25.1
-extras = test,gcp
-commands =
-  # Log onnx version for debugging
-  /bin/sh -c "pip freeze | grep -E onnx"
-  # Run all ONNX unit tests
-  pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_onnx {posargs}
+# deps =
+#  onnxruntime==1.13.1
+#  pandas==1.5.2
+# torch==1.13.1
+# tensorflow==2.11.0

Review Comment:
   Yes, I commented the 3 lines here and uncommented the onnx task in `tox.ini`.  Without the commands in tox/py38/build.gradle, the commands of onnx in `tox.ini` would be no-op



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464341014

   Run Python 3.7 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1466303921

   blocker: tensorflow_hub 0.12 (latest) is not compatible with tensorflow 2.12, which makes our TF integration tests fail. We need to wait until tensorflow_hub releases a newer version.
   
   * we can skip the TF tests for now and have a tracking issue for tensorflow_hub release and unskip them before the next release. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1458677615

   Run Python Dataflow ValidatesContainer


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1471000369

   Thanks, @AnandInguva !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] lostluck commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "lostluck (via GitHub)" <gi...@apache.org>.
lostluck commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1442408085

   Run Go PreCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1117317974


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0
 guppy3  # Memory profiler
 mmh3  # Optimizes execution of some Beam codepaths. TODO: Make it Beam's dependency.
 nltk  # Commonly used for natural language processing.
 nose==1.3.7  # For Dataflow internal testing. TODO: remove this.
 python-snappy  # Optimizes execution of some Beam codepaths.
 scipy
 scikit-learn
-tensorflow
+protobuf

Review Comment:
   Ack. will remove it in a different commit and add tensorflow once 2.12 is released.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Python SDK build dependencies

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1439263767

   https://github.com/onnx/onnx/issues/4239 - ONNX is also on protobuf < 4. This could be a blocker when people want to use latest version of Beam containing protobuf. Hopefully at that time, ONNX might update to newer version of protobuf


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1458678155

   Run Python Dataflow ValidatesRunner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Python SDK build dependencies

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1438786169

   Some of the GCP dependencies needed to be updated to support newer version of protobuf. Some of the GCP dependencies, for example google-cloud-language was in 1.x.x. To update it to 2.x.x or greater, there are some breaking changes needed to be taken care of. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1114365292


##########
sdks/python/setup.py:
##########
@@ -252,6 +242,7 @@ def get_portability_package_data():
         'objsize>=0.6.1,<0.7.0',
         'pymongo>=3.8.0,<4.0.0',
         'proto-plus>=1.7.1,<2',
+        'protobuf>=4.00,<=5',

Review Comment:
   That should be < instead of <=. Thanks for catching it. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132601556


##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,29 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# [testenv:py{37,38,39,310}-onnx-113]

Review Comment:
   Commented the onnx tests here and in the tox/py38/build.gradle. We can uncomment them once onnx supports them. I will create a GH issue and add a todo in both places



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132801046


##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,30 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# TODO(https://github.com/apache/beam/issues/25796) - uncomment onnx tox task once onnx supports protobuf 4.x.x
+# [testenv:py{37,38,39,310}-onnx-113]
 # TODO(https://github.com/apache/beam/issues/25443)
 # apparently tox has problem when substitution key has single value. Change back to -onnx-{113,...}
 # when multiple onnx versions are tested.
-deps =
-  onnxruntime==1.13.1
-  pandas==1.5.2
-  torch==1.13.1
-  tensorflow==2.11.0
-  tf2onnx==1.13.0
-  skl2onnx==1.13
-  transformers==4.25.1
-extras = test,gcp
-commands =
-  # Log onnx version for debugging
-  /bin/sh -c "pip freeze | grep -E onnx"
-  # Run all ONNX unit tests
-  pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_onnx {posargs}
+# deps =
+#  onnxruntime==1.13.1
+#  pandas==1.5.2
+# torch==1.13.1
+# tensorflow==2.11.0

Review Comment:
   In general, it is not common to have large chunks of commented out code in the live codebase. It quickly rots and people tend to delete it when seeing it. One option is to disable the task here: https://github.com/apache/beam/blob/13a7cbf73f9db22fab5b7a8b5377bd8ec73538de/sdks/python/test-suites/tox/py38/build.gradle#L106, which should probably be a 1-line change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464520893

   Run Python 3.10 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132781971


##########
sdks/python/apache_beam/ml/gcp/__init__.py:
##########
@@ -14,3 +14,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
+# TODO(https://github.com/apache/beam/issues/25625)

Review Comment:
   Added some context.



##########
sdks/python/apache_beam/runners/pipeline_context.py:
##########
@@ -310,7 +310,13 @@ def get_or_create_environment_with_resource_hints(
       """Creates an environment that has necessary hints and returns its id."""
       template_env = self.environments.get_proto_from_id(template_env_id)
       cloned_env = beam_runner_api_pb2.Environment()
-      cloned_env.CopyFrom(template_env)
+      # Remove the suppress warning for type once mypy is updated to

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1470999989

   merging 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1470494380

   Run Python 3.7 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132774918


##########
sdks/python/apache_beam/ml/gcp/naturallanguageml.py:
##########
@@ -93,12 +92,11 @@ def AnnotateText(
   https://cloud.google.com/natural-language/docs.
 
   Args:
-    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection of
-      :class:`Document` objects.
-    features (`Union[Mapping[str, bool], types.AnnotateTextRequest.Features]`):
-      A dictionary of natural language operations to be performed on given
-      text in the following format::
+    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection
+            of :class:`Document` objects.
 
+    features: A dictionary of natural language operations to be performed

Review Comment:
   Looks like the error was due to extra line added. I revered the doc string change. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1131449261


##########
sdks/python/apache_beam/ml/gcp/__init__.py:
##########
@@ -14,3 +14,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
+# TODO(https://github.com/apache/beam/issues/25625)

Review Comment:
   I don't follow these comments.



##########
sdks/python/apache_beam/runners/pipeline_context.py:
##########
@@ -310,7 +310,13 @@ def get_or_create_environment_with_resource_hints(
       """Creates an environment that has necessary hints and returns its id."""
       template_env = self.environments.get_proto_from_id(template_env_id)
       cloned_env = beam_runner_api_pb2.Environment()
-      cloned_env.CopyFrom(template_env)
+      # Remove the suppress warning for type once mypy is updated to

Review Comment:
   nit: let's be clear about what minimal version is required until TODO can be lifted. Optionally, you can moe details error in the bug.



##########
sdks/python/setup.py:
##########
@@ -300,25 +296,25 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=2.0.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
-            'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
-            'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigquery>=2.0.0,<4',
+            'google-cloud-bigquery-storage>=2.6.3,<3',
+            'google-cloud-core>=2.0.0,<3',
+            'google-cloud-bigtable>=2.0.0,<3',
             'google-cloud-spanner>=3.0.0,<4',
             # GCP Packages required by ML functionality
             'google-cloud-dlp>=3.0.0,<4',
-            'google-cloud-language>=1.3.0,<2',
-            'google-cloud-videointelligence>=1.8.0,<2',
+            'google-cloud-language>=2.0,<3',
+            'google-cloud-videointelligence>=2.0,<3',
             'google-cloud-vision>=2,<4',
-            'google-cloud-recommendations-ai>=0.1.0,<0.8.0'
+            'google-cloud-recommendations-ai>=0.1.0,<1'

Review Comment:
   ```suggestion
               'google-cloud-recommendations-ai>=0.1.0,<0.11'
   ```



##########
sdks/python/test-suites/tox/py38/build.gradle:
##########
@@ -103,21 +103,13 @@ test.dependsOn "testPy38pytorch-113"
 preCommitPyCoverage.dependsOn "testPy38pytorch-113"
 
 // Create a test task for each minor version of onnx
-toxTask "testPy38onnx-113", "py38-onnx-113", "${posargs}"
-test.dependsOn "testPy38onnx-113"
-preCommitPyCoverage.dependsOn "testPy38onnx-113"
+// toxTask "testPy38onnx-113", "py38-onnx-113", "${posargs}"

Review Comment:
   what is the context for these changes? 



##########
sdks/python/apache_beam/ml/gcp/naturallanguageml.py:
##########
@@ -93,12 +92,11 @@ def AnnotateText(
   https://cloud.google.com/natural-language/docs.
 
   Args:
-    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection of
-      :class:`Document` objects.
-    features (`Union[Mapping[str, bool], types.AnnotateTextRequest.Features]`):
-      A dictionary of natural language operations to be performed on given
-      text in the following format::
+    pcoll (:class:`~apache_beam.pvalue.PCollection`): An input PCollection
+            of :class:`Document` objects.
 
+    features: A dictionary of natural language operations to be performed

Review Comment:
   What are the issues w/ keeping the type in the docstring?



##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,29 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# [testenv:py{37,38,39,310}-onnx-113]

Review Comment:
   leftover?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1460697417

   Run Python Dataflow V2 ValidatesRunner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132794104


##########
sdks/python/apache_beam/runners/pipeline_context.py:
##########
@@ -310,8 +310,9 @@ def get_or_create_environment_with_resource_hints(
       """Creates an environment that has necessary hints and returns its id."""
       template_env = self.environments.get_proto_from_id(template_env_id)
       cloned_env = beam_runner_api_pb2.Environment()
+      # (TODO https://github.com/apache/beam/issues/25615)
       # Remove the suppress warning for type once mypy is updated to
-      # newer version. https://github.com/apache/beam/issues/25615

Review Comment:
   Can we say: 
         # Remove the suppress warning for type once mypy is updated to  0.941 or higher?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Python SDK build dependencies

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1438956606

   Notes: Tensorflow<=2.11 has a restriction on Protobuf. https://github.com/tensorflow/tensorflow/blob/80170ee25b406758c04880a3b49ed9499667012e/tensorflow/tools/pip_package/setup.py#L107
   
   Tensorflow 2.12 is going to be released on Feb 28th, 2023. Include 2.12 in the base_image_requriements_manual.txt instead of removing tensorflow from the containers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1442400883

   @lostluck the Go precommit is failing. Is it related to the changes made by you?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn merged pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn merged PR #24599:
URL: https://github.com/apache/beam/pull/24599


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194160794


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   we intentionally removed google-cloud-debugger from Dataflow containers, perhaps there was confusion between these two deps.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194168100


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   Dataflow container now does not include it. Can be seen by https://github.com/apache/beam/blob/master/sdks/python/container/py38/base_image_requirements.txt where google-cloud-profiler is no longer listed in. I now get error using profiler: #26698 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Python SDK build dependencies

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1114594261


##########
sdks/python/apache_beam/io/gcp/datastore/v1new/util.py:
##########
@@ -137,3 +137,22 @@ def report_latency(self, now, latency_ms, num_mutations):
       num_mutations: int, number of mutations contained in the RPC.
     """
     self._commit_time_per_entity_ms.add(now, latency_ms / num_mutations)
+
+
+def extract_byte_size(proto_message):
+  """
+    Gets the byte size from a google.protobuf or proto-plus message

Review Comment:
   Let's increase the lower bound on Datastore and assume proto-plus messages for simplicity. the v2 dependency has been available for more than 1 year now, I don't think we need to support v1.
   cc: @johnjcasey FYI.



##########
sdks/python/setup.py:
##########
@@ -300,25 +296,25 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<3',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',
             'google-cloud-spanner>=3.0.0,<4',
             # GCP Packages required by ML functionality
             'google-cloud-dlp>=3.0.0,<4',
-            'google-cloud-language>=1.3.0,<2',
-            'google-cloud-videointelligence>=1.8.0,<2',
+            'google-cloud-language>=2.0,<3',
+            'google-cloud-videointelligence>=2.0,<3',
             'google-cloud-vision>=2,<4',
-            'google-cloud-recommendations-ai>=0.1.0,<0.8.0'
+            'google-cloud-recommendations-ai>=0.1.0,<1'

Review Comment:
   let's keep the upper bound restricted by a minor version, until they release 1.x.



##########
sdks/python/setup.py:
##########
@@ -300,25 +296,25 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<3',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',

Review Comment:
   let's increase `google-cloud-bigtable>=2` for similar reasons, v2 has been longer than 1 year.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1194170523


##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   ahh...this was not intentional. 
   
   @Abacn these are beam external images. Dataflow images are internal: https://source.corp.google.com/piper///depot/google3/third_party/cloud/dataflow/worker/images/base_python/Dockerfile.base-python;rcl=522192081;l=117



##########
sdks/python/container/base_image_requirements_manual.txt:
##########
@@ -32,14 +32,11 @@ cython<1
 # some versions of libraries that launch Beam pipelines, like tensorflow-transform.
 # Leaving 'future' in our containers for now prevent breaking tft users.
 future
-# TODO: Remove the upper bound once Tensorflow 2.11 is released.
-# https://github.com/apache/beam/issues/23355
-google-cloud-profiler<4.0.0

Review Comment:
   ahh...this was not intentional.  
   
   @Abacn these are beam external images. Dataflow images are internal: https://source.corp.google.com/piper///depot/google3/third_party/cloud/dataflow/worker/images/base_python/Dockerfile.base-python;rcl=522192081;l=117



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on a diff in pull request #24599: Update GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1114652393


##########
sdks/python/setup.py:
##########
@@ -300,25 +296,25 @@ def get_portability_package_data():
             # https://github.com/googleapis/google-cloud-python/issues/10566
             'google-auth>=1.18.0,<3',
             'google-auth-httplib2>=0.1.0,<0.2.0',
-            'google-cloud-datastore>=1.8.0,<2',
+            'google-cloud-datastore>=1.8.0,<3',
             'google-cloud-pubsub>=2.1.0,<3',
             'google-cloud-pubsublite>=1.2.0,<2',
             # GCP packages required by tests
             'google-cloud-bigquery>=1.6.0,<4',
-            'google-cloud-bigquery-storage>=2.6.3,<2.17',
+            'google-cloud-bigquery-storage>=2.6.3,<3',
             'google-cloud-core>=0.28.1,<3',
-            'google-cloud-bigtable>=0.31.1,<2',
+            'google-cloud-bigtable>=0.31.1,<3',

Review Comment:
   Okay. I haven't gone through all GCP deps yet because they didn't fail the code when we update dependencies. But it would be good to have latest bounds for GCP dependencies since many of them have had some breaking changes in the past.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132658313


##########
sdks/python/tox.ini:
##########
@@ -320,31 +320,29 @@ commands =
   # Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
   /bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pytorch {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
 
-[testenv:py{37,38,39,310}-onnx-113]
+# [testenv:py{37,38,39,310}-onnx-113]

Review Comment:
   sg



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn commented on a diff in pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn commented on code in PR #24599:
URL: https://github.com/apache/beam/pull/24599#discussion_r1132796839


##########
sdks/python/apache_beam/ml/gcp/__init__.py:
##########
@@ -14,3 +14,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+
+# TODO(https://github.com/apache/beam/issues/25625)

Review Comment:
   this comment looks out of place here. let's keep the file as is and use the issue you filed for tracking purposes and further discussion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1458677888

   Run Python Dataflow V2 ValidatesRunner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1464521030

   Run Python 3.9 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1465265474

   Run Python 3.7 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update build dependencies and mypy-protobuf

Posted by GitBox <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1343360385

   Local tested error in Python 3.8 MacOS env:
   
   ```
   Traceback (most recent call last):
     File "/Users/anandinguva/.pyenv/versions/3.8.12/lib/python3.8/runpy.py", line 185, in _run_module_as_main
       mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
     File "/Users/anandinguva/.pyenv/versions/3.8.12/lib/python3.8/runpy.py", line 111, in _get_module_details
       __import__(pkg_name)
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/__init__.py", line 92, in <module>
       from apache_beam import coders
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/coders/__init__.py", line 17, in <module>
       from apache_beam.coders.coders import *
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/coders/coders.py", line 59, in <module>
       from apache_beam.coders import coder_impl
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/coders/coder_impl.py", line 63, in <module>
       from apache_beam.typehints.schemas import named_tuple_from_schema
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/typehints/__init__.py", line 38, in <module>
       from apache_beam.typehints.arrow_type_compatibility import *
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/typehints/arrow_type_compatibility.py", line 32, in <module>
       from apache_beam.portability.api import schema_pb2
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/__init__.py", line 21, in <module>
       from .org.apache.beam.model.pipeline import v1
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/__init__.py", line 17, in <module>
       from . import external_transforms_pb2
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/external_transforms_pb2.py", line 14, in <module>
       from . import schema_pb2 as org_dot_apache_dot_beam_dot_model_dot_pipeline_dot_v1_dot_schema__pb2
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/schema_pb2.py", line 15, in <module>
       from . import beam_runner_api_pb2 as org_dot_apache_dot_beam_dot_model_dot_pipeline_dot_v1_dot_beam__runner__api__pb2
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/beam_runner_api_pb2.py", line 14, in <module>
       from . import endpoints_pb2 as org_dot_apache_dot_beam_dot_model_dot_pipeline_dot_v1_dot_endpoints__pb2
     File "/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/endpoints_pb2.py", line 36, in <module>
       _descriptor.FieldDescriptor(
     File "/Users/anandinguva/.pyenv/versions/deps_3.8.12/lib/python3.8/site-packages/google/protobuf/descriptor.py", line 560, in __new__
       _message.Message._CheckCalledFromGeneratedFile()
   TypeError: Descriptors cannot not be created directly.
   If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
   If you cannot immediately regenerate your protos, some other possible workarounds are:
    1. Downgrade the protobuf package to 3.20.x or lower.
    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1444181000

   ![image](https://user-images.githubusercontent.com/34158215/221257738-414b1c99-91fb-47de-82b9-a49bbb38c312.png)
   
   These three tests will be passed once tensorflow 2.12 is released. We can wait until Feb 28th.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on pull request #24599: Update Protobuf and GCP dependencies in Beam Python SDK

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1470349047

   Run Python 3.9 PostCommit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org