Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix: restrict google protobuf version #2175

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

haimjether
Copy link
Contributor

  • protobuf version in versions larger than 4.25.5 when used by google-cloud-pubsub raises the following error:

site-packages/google/protobuf/internal/well_known_types.py", line 443, in FromTimedelta
raise AttributeError(
AttributeError: Fail to convert to Duration.
Expected a timedelta like object got str: 'str' object has no attribute 'seconds'

Fix this by restriction of the allowed package versions

  • Added unit test to validate pubsub and protobuf compatibility
  • Enabled google-cloud-pubsub package versions bump

- protobuf version in versions larger than 4.25.5 when used by google-cloud-pubsub
  raises the following error:

site-packages/google/protobuf/internal/well_known_types.py", line 443, in FromTimedelta
    raise AttributeError(
AttributeError: Fail to convert to Duration.
Expected a timedelta like object got str: 'str' object has no attribute 'seconds'

  Fix this by restriction of the allowed package versions
- Added unit test to validate pubsub and protobuf compatibility
- Enabled google-cloud-pubsub package versions bump
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.48%. Comparing base (c2b069d) to head (c69bd65).
Report is 20 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2175   +/-   ##
=======================================
  Coverage   81.48%   81.48%           
=======================================
  Files          77       77           
  Lines        9507     9507           
  Branches     1148     1148           
=======================================
  Hits         7747     7747           
  Misses       1569     1569           
  Partials      191      191           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Nusnus Nusnus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!
Thanks!

@Nusnus Nusnus merged commit e5ea1f6 into celery:main Oct 23, 2024
37 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants