Skip to content

[core] Make raylet NodeManager testable - #53120

Merged
edoakes merged 7 commits into
ray-project:masterfrom
dayshah:node-manager-testing
May 23, 2025
Merged

edoakes merged 7 commits into
ray-project:masterfrom
dayshah:node-manager-testing

Conversation

@dayshah

@dayshah dayshah commented May 18, 2025 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Making node manager testable by injecting in

  • client call manager
  • worker rpc pool
  • core worker subscriber
  • object directory
  • object manager
  • plasma store client

Creating mocks based on interfaces for the above when necessary.

Also removing the plasma store client + actual Plasma Store Evict message sending and handling codepath because it was unused and dead code.

Related issue number

Checks

@dayshah dayshah added the go add ONLY when ready to merge, run all tests label May 18, 2025
@dayshah
dayshah force-pushed the node-manager-testing branch from 4b248e1 to 81c6ebd Compare May 18, 2025 21:56
@dayshah
dayshah force-pushed the node-manager-testing branch from d9a23ca to 1e0528b Compare May 19, 2025 06:07
@dayshah
dayshah requested a review from a team May 19, 2025 17:23
@dayshah
dayshah marked this pull request as ready for review May 19, 2025 17:23
/// After this call, the buffer returned by Get() is no longer valid.
///
/// \param object_id The ID of the object that is no longer needed.
/// \return The return status.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed the comments on this interface because they're all copy pasted right below in the actual PlasmaClient implementation.

@dayshah
dayshah marked this pull request as draft May 21, 2025 16:30
@dayshah

dayshah commented May 21, 2025

Copy link
Copy Markdown
Contributor Author

Making it a draft so #53205 can be merged first and make this smaller.

edoakes pushed a commit that referenced this pull request May 22, 2025
There's some dead plasma eviction code that's not used anywhere.
Removing the dead code and creating a mock for the PlasmaClient here.

This is split up from #53120 to
make reviewing that less intimidating.

---------

Signed-off-by: dayshah <[email protected]>
Signed-off-by: Dhyey Shah <[email protected]>
@dayshah
dayshah marked this pull request as ready for review May 22, 2025 23:59
@dayshah

dayshah commented May 23, 2025

Copy link
Copy Markdown
Contributor Author

Ready for review again and ~200 less lines @israbbani @edoakes

@edoakes edoakes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A great start!

@edoakes
edoakes merged commit c825dfe into ray-project:master May 23, 2025
@dayshah
dayshah deleted the node-manager-testing branch July 16, 2025 05:48
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.

4 participants