-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Improve TransferAgentTest.SyncMessage #6250
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe Changes
Estimated code review effort1 (~3 minutes) Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
/bot run --add-multi-gpu-test |
PR_Github #12539 [ run ] triggered by Bot |
@@ -228,7 +228,7 @@ TEST_F(TransferAgentTest, Connect) | |||
|
|||
TEST_F(TransferAgentTest, SyncMessage) | |||
{ | |||
|
|||
const size_t MAX_QUERY_TIMES = std::numeric_limits<size_t>::max(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be moved to right before the call site? It's better to be a constexpr std::size_t.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updated the line
/bot run --add-multi-gpu-test |
PR_Github #12546 [ run ] triggered by Bot |
PR_Github #12539 [ run ] completed with state |
|
||
const size_t MAX_QUERY_TIMES = std::numeric_limits<size_t>::max(); | ||
auto notif = nixlAgent1->getNotifiedSyncMessages(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chuangz0 Do you think it is worth adding a blocking variant of getNotifiedSyncMessages()
? The infinite loop should happen inside this function variant.
PR_Github #12546 [ run ] completed with state |
/bot run --add-multi-gpu-test |
PR_Github #12582 [ run ] triggered by Bot |
PR_Github #12582 [ run ] completed with state |
/bot run --add-multi-gpu-test |
PR_Github #12621 [ run ] triggered by Bot |
PR_Github #12621 [ run ] completed with state |
/bot run --add-multi-gpu-test |
PR_Github #12627 [ run ] triggered by Bot |
PR_Github #12627 [ run ] completed with state |
/bot run --add-multi-gpu-test |
PR_Github #12640 [ run ] triggered by Bot |
PR_Github #12640 [ run ] completed with state |
f63f5e7
to
6a811f7
Compare
/bot run --add-multi-gpu-test |
PR_Github #12652 [ run ] triggered by Bot |
PR_Github #12652 [ run ] completed with state |
Signed-off-by: Bo Deng <[email protected]>
Signed-off-by: Bo Deng <[email protected]>
6a811f7
to
1b1b187
Compare
Not related to the PR, #6287 may fix the timeout issue |
/bot run --add-multi-gpu-test |
PR_Github #12694 [ run ] triggered by Bot |
PR_Github #12694 [ run ] completed with state |
It's expected that the request is completed when agent gets notified sync messages.
Summary by CodeRabbit
Summary by CodeRabbit