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

[3][cleanup][gcs] Remove redis based pubsub. #23520

Merged
merged 40 commits into from
Mar 31, 2022
Merged

Conversation

fishbone
Copy link
Contributor

Why are these changes needed?

This PR removes redis based pubsub.

Related issue number

Checks

  • 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 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 :(

@fishbone fishbone changed the title [3][cleanup][gcs] Remove redis based pubsub. [wip][3][cleanup][gcs] Remove redis based pubsub. Mar 27, 2022
@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Mar 28, 2022
Base automatically changed from 2-remove-client-options to master March 29, 2022 19:02
@fishbone fishbone changed the title [wip][3][cleanup][gcs] Remove redis based pubsub. [3][cleanup][gcs] Remove redis based pubsub. Mar 30, 2022
@fishbone
Copy link
Contributor Author

@mwtian could you help review this PR as well?

@mwtian
Copy link
Member

mwtian commented Mar 30, 2022

Will take a look tomorrow.

Copy link
Member

@mwtian mwtian left a comment

Choose a reason for hiding this comment

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

Looks good overall! Just a question about manual vs automatic edits to the mocks. There are two tests failed to build too.

@@ -84,30 +78,40 @@ class MockPublisherInterface : public PublisherInterface {
namespace ray {
namespace pubsub {

instrumented_io_context __io_service;
Copy link
Member

Choose a reason for hiding this comment

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

Double underscore prefixes are reserved for compilers. Ideally, we don't definite variables in headers, unless with inline or as a static local variable: https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables.

Also IIUC files under src/mock are generated programmatically at the beginning. Should we keep it that way and put customized mocks in other locations? Then we would be able to re-run the tool to generate new mocks if needed. Otherwise it seems easy for mocks and actual interfaces to diverge.

@fishbone fishbone merged commit 87dc57d into master Mar 31, 2022
@fishbone fishbone deleted the 3-cpp-pubsub-remove branch March 31, 2022 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants