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

[serve] Remove extra pickle serialization for gRPCRequest #49943

Merged
merged 5 commits into from
Jan 19, 2025

Conversation

edoakes
Copy link
Contributor

@edoakes edoakes commented Jan 18, 2025

Why are these changes needed?

We were pickling the inner proto message, then again pickling the gRPCRequest object. No need to do both.

Also cleaned up the request_object method signature for clarity.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes requested review from GeneDer and zcin January 18, 2025 14:11
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jan 18, 2025
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

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

:shipit:

@edoakes edoakes merged commit e4eaf87 into ray-project:master Jan 19, 2025
5 checks passed
jimmyxie-figma pushed a commit to jimmyxie-figma/ray that referenced this pull request Jan 20, 2025
…oject#49943)

We were pickling the inner proto message, then again pickling the
`gRPCRequest` object. No need to do both.

Also cleaned up the `request_object` method signature for clarity.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Jimmy Xie <rxie@figma.com>
jimmyxie-figma pushed a commit to jimmyxie-figma/ray that referenced this pull request Jan 20, 2025
…oject#49943)

We were pickling the inner proto message, then again pickling the
`gRPCRequest` object. No need to do both.

Also cleaned up the `request_object` method signature for clarity.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Jimmy Xie <rxie@figma.com>
anson627 pushed a commit to anson627/ray that referenced this pull request Jan 31, 2025
…oject#49943)

We were pickling the inner proto message, then again pickling the
`gRPCRequest` object. No need to do both.

Also cleaned up the `request_object` method signature for clarity.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Anson Qian <anson627@gmail.com>
srinathk10 pushed a commit that referenced this pull request Feb 2, 2025
We were pickling the inner proto message, then again pickling the
`gRPCRequest` object. No need to do both.

Also cleaned up the `request_object` method signature for clarity.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
anyadontfly pushed a commit to anyadontfly/ray that referenced this pull request Feb 13, 2025
…oject#49943)

We were pickling the inner proto message, then again pickling the
`gRPCRequest` object. No need to do both.

Also cleaned up the `request_object` method signature for clarity.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Puyuan Yao <williamyao034@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants