Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use other fallback coders for protobuf message base class #33432

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

shunping
Copy link
Contributor

This PR addresses internal test failures (internal bug ID: 385108730) introduced by recent Reshuffle code changes. It does not impact existing Reshuffle functionality, but is a necessary prerequisite for upcoming Reshuffle modifications.

@shunping shunping changed the title Use other fallback coders for protobuf Message base class. Use other fallback coders for protobuf Message base class Dec 20, 2024
@shunping
Copy link
Contributor Author

r: @robertwb

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

Copy link
Contributor

@robertwb robertwb left a comment

Choose a reason for hiding this comment

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

Thanks!

sdks/python/apache_beam/coders/coders.py Outdated Show resolved Hide resolved
sdks/python/apache_beam/coders/coders.py Outdated Show resolved Hide resolved
sdks/python/apache_beam/coders/coders_test.py Outdated Show resolved Hide resolved
@robertwb
Copy link
Contributor

Looks like there's still some test failures. Is ma.__class__ not test_message.MessageA for some reason in test_proto_coder?

@shunping shunping changed the title Use other fallback coders for protobuf Message base class Use other fallback coders for protobuf message base class Dec 21, 2024
@shunping
Copy link
Contributor Author

shunping commented Dec 21, 2024

Looks like there's still some test failures. Is ma.__class__ not test_message.MessageA for some reason in test_proto_coder?

The failed check is related to "google.protobuf.message" not being imported. It seems that the global flag "TYPE_CHECKING" is set differently on gha vs in my local machine.

It is fixed now. PTAL. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants