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

[core] Fix protobuf breaking change by adding a compat layer. #43172

Merged
merged 6 commits into from
Feb 15, 2024

Conversation

rynewang
Copy link
Contributor

Latest postmerge failure linux://python/ray/tests:test_output turns out to be from a recent protobuf pre-release change. It changed an argument name which breaks our event logger. This PR introduces a compatibility layer to support both args.

Also re-enabled core minimal tests in premerge.

Copy link
Collaborator

@jjyao jjyao left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix.

Comment on lines 36 to 38
raise ValueError(
f"Cannot find {old_arg_name} or {new_arg_name} in MessageToDict signature"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's safer to just return kwargs in this case. Since in the future, they might change the signature of MessageToDict to MessageToDict(**kwargs)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Ruiyang Wang <[email protected]>
Signed-off-by: Ruiyang Wang <[email protected]>
@jjyao jjyao merged commit c6ab403 into ray-project:master Feb 15, 2024
9 checks passed
rynewang added a commit to rynewang/ray that referenced this pull request Feb 15, 2024
…oject#43172)

Latest postmerge failure linux://python/ray/tests:test_output turns out to be from a recent protobuf pre-release change. It changed an argument name which breaks our event logger. This PR introduces a compatibility layer to support both args.

Also re-enabled core minimal tests in premerge.

Signed-off-by: Ruiyang Wang <[email protected]>
rynewang added a commit that referenced this pull request Feb 15, 2024
#43188)

Latest postmerge failure linux://python/ray/tests:test_output turns out to be from a recent protobuf pre-release change. It changed an argument name which breaks our event logger. This PR introduces a compatibility layer to support both args.

Also re-enabled core minimal tests in premerge.

Signed-off-by: Ruiyang Wang <[email protected]>
@rynewang rynewang deleted the pb-compat branch June 7, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants