Skip to content

[History Server] create helper to extract similar pattern for session node listing - #5113

Open
markwu7 wants to merge 3 commits into
ray-project:masterfrom
markwu7:refactor/extract-similar-loop
Open

[History Server] create helper to extract similar pattern for session node listing#5113
markwu7 wants to merge 3 commits into
ray-project:masterfrom
markwu7:refactor/extract-similar-loop

Conversation

@markwu7

@markwu7 markwu7 commented Aug 9, 2026

Copy link
Copy Markdown

Why are these changes needed?

Since several code with duplicated pattern to list node directories under a session. Extract storage.ListSessionNodeDirs to de-duplicate the repeated session node-directory listing pattern.

Related issue number

Part of #5065
Follow-up to #4918

Labels

  • If this PR has user-facing changes that require documentation updates at release time, I have added the doc-updates-required label.
  • If this PR contains breaking changes, I have added the breaking-change label.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Manual test instructions

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 87a2d93. Configure here.

Comment thread historyserver/pkg/historyserver/router.go
Signed-off-by: Mark <markhww.jobs@gmail.com>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you also add unit test?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure, no problem!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@win5923 Just finished the unit test, PTAL!

Signed-off-by: Mark <markhww.jobs@gmail.com>
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