diff mbox series

python3-protobuf: upgrade 4.25.3 -> 5.29.3

Message ID CAGqXGjQPi6+Bq1eSFLJ2fusuNv0QQLv9o1ityXLGu5873r875A@mail.gmail.com
State New
Headers show
Series python3-protobuf: upgrade 4.25.3 -> 5.29.3 | expand

Commit Message

unit exe Feb. 28, 2025, 5:36 a.m. UTC
Upgrade to the latest release.

* Update PKG-INFO md5 checksum
* Update SRC_URI sha256 checksum

Running a python gRPC server using the latest 1.70 python3 grpc related
recipes in OE master is broken due to import change in protobuf generated
code that I am told was introduced in protobuf v27.

With python3-protobuf_4.25.3 one will run into issues when they run their
gRPC server, for example:

root@radxa-zero-3e:~# python3 /usr/bin/instrument_server.py
Traceback (most recent call last):
  File "/usr/bin/instrument_server.py", line 4, in <module>
    import instrument_pb2
  File "/usr/bin/instrument_pb2.py", line 9, in <module>
    from google.protobuf import runtime_version as _runtime_version
ImportError: cannot import name 'runtime_version' from 'google.protobuf'
(/usr/lib/python3.13/site-packages/google/protobuf/__init__.py)

Signed-off-by: unit exe <unitexe70@gmail.com>
---
 ...{python3-protobuf_4.25.3.bb => python3-protobuf_5.29.3.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-protobuf_4.25.3.bb =>
python3-protobuf_5.29.3.bb} (90%)

 "

 inherit pypi setuptools3
-SRC_URI[sha256sum] =
"25b5d0b42fd000320bd7830b349e3b696435f3b329810427a6bcce6a5492cc5c"
+SRC_URI[sha256sum] =
"5da0f41edaf117bde316404bad1a486cb4ededf8e4a54891296f648e8e076620"

 CVE_PRODUCT += "google:protobuf protobuf:protobuf google-protobuf
protobuf-python"

Comments

patchtest@automation.yoctoproject.org Feb. 28, 2025, 5:46 a.m. UTC | #1
Thank you for your submission. Patchtest identified one
or more issues with the patch. Please see the log below for
more information:

---
Testing patch /home/patchtest/share/mboxes/python3-protobuf-upgrade-4.25.3---5.29.3.patch

FAIL: test mbox format: Series has malformed diff lines. Create the series again using git-format-patch and ensure it applies using git am (test_mbox.TestMbox.test_mbox_format)

PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test commit message user tags (test_mbox.TestMbox.test_commit_message_user_tags)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)

SKIP: pretest pylint: Python-unidiff parse error (test_python_pylint.PyLint.pretest_pylint)
SKIP: pretest src uri left files: No modified recipes, skipping pretest (test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE check ignore: No modified recipes or older target branch, skipping test (test_metadata.TestMetadata.test_cve_check_ignore)
SKIP: test CVE tag format: Parse error Hunk diff line expected: https://github.com/protocolbuffers/protobuf/blob/main/third_party/utf8_range/LICENSE
SKIP: test Signed-off-by presence: Parse error Hunk diff line expected: https://github.com/protocolbuffers/protobuf/blob/main/third_party/utf8_range/LICENSE
SKIP: test Upstream-Status presence: Parse error Hunk diff line expected: https://github.com/protocolbuffers/protobuf/blob/main/third_party/utf8_range/LICENSE
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum modified not mentioned: No modified recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: Python-unidiff parse error (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: No modified recipes, skipping pretest (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
b/meta-python/recipes-devtools/python/python3-protobuf_5.29.3.bb
similarity index 90%
rename from meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
rename to meta-python/recipes-devtools/python/python3-protobuf_5.29.3.bb
index e1dd8e17c7..c146e1eb1e 100644
--- a/meta-python/recipes-devtools/python/python3-protobuf_4.25.3.bb
+++ b/meta-python/recipes-devtools/python/python3-protobuf_5.29.3.bb
@@ -5,12 +5,12 @@  SECTION = "devel/python"
 #
https://github.com/protocolbuffers/protobuf/blob/main/third_party/utf8_range/LICENSE
 LICENSE = "BSD-3-Clause & MIT"
 LIC_FILES_CHKSUM = " \
-
 file://PKG-INFO;beginline=8;endline=8;md5=53dbfa56f61b90215a9f8f0d527c043d
\
+
 file://PKG-INFO;beginline=8;endline=8;md5=be628fb2c2ba7982037799701e5913bf
\

 file://utf8_range/utf8_range.h;beginline=1;endline=2;md5=f05b3ef36cc354d7134597075a1af64f
\