Skip to content

[Benchmark] Fix benchmark manual cmd#8153

Merged
zhangchiqing merged 4 commits intomasterfrom
leo/fix-local-benchmark-cmd
Nov 19, 2025
Merged

[Benchmark] Fix benchmark manual cmd#8153
zhangchiqing merged 4 commits intomasterfrom
leo/fix-local-benchmark-cmd

Conversation

@zhangchiqing
Copy link
Member

This PR fixes the local benchmark util. It gets stuck on metrics server.Ready at the beginning, because the server was not started.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment on lines +83 to 84
server.Start(signalerCtx)
<-server.Ready()
Copy link
Member Author

@zhangchiqing zhangchiqing Nov 14, 2025

Choose a reason for hiding this comment

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

It was stuck on <-server.Ready because server.Start was not called.

@zhangchiqing zhangchiqing marked this pull request as ready for review November 14, 2025 16:58
@zhangchiqing zhangchiqing requested a review from a team as a code owner November 14, 2025 16:58
@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2025

Codecov Report

❌ Patch coverage is 0% with 30 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
integration/benchmark/cmd/manual/main.go 0.00% 30 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment on lines +71 to +75
case err, ok := <-errChan:
if !ok {
// Channel was closed without an error (shouldn't happen, but handle gracefully)
return
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
case err, ok := <-errChan:
if !ok {
// Channel was closed without an error (shouldn't happen, but handle gracefully)
return
}
case err := <-errChan:

Feel free to keep for clarity, but I don't think this clause is necessary. (If ok=false, then err=nil)

Co-authored-by: Jordan Schalm <jordan.schalm@flowfoundation.org>
@zhangchiqing zhangchiqing added this pull request to the merge queue Nov 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 17, 2025
@zhangchiqing zhangchiqing added this pull request to the merge queue Nov 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2025
@zhangchiqing zhangchiqing added this pull request to the merge queue Nov 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 18, 2025
@zhangchiqing zhangchiqing added this pull request to the merge queue Nov 19, 2025
Merged via the queue into master with commit 50ea7e4 Nov 19, 2025
61 checks passed
@zhangchiqing zhangchiqing deleted the leo/fix-local-benchmark-cmd branch November 19, 2025 02:44
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.

4 participants