-
Notifications
You must be signed in to change notification settings - Fork 381
feat: flotilla metrics #5966
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?
feat: flotilla metrics #5966
Conversation
Greptile SummaryThis PR enhances the progress bar display across both Ray (Flotilla) and Native (Swordfish) runners with detailed metrics tracking. The changes add "rows in" and "rows out" statistics to progress bars, along with improved formatting using ship emoji (🚢) for Ray runner and elapsed time display. Key changes:
The implementation correctly uses mutable borrows in Rust ( Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Task as Task Execution
participant Source as SourceNode
participant CountingSender as CountingSender
participant Stats as RuntimeStats
participant Sub as StatisticsSubscriber
participant PyPB as Python ProgressBar
Note over Task,PyPB: Task Submission & Bar Creation
Task->>Sub: TaskEvent::Submitted
Sub->>PyPB: make_bar_or_update_total(bar_id, bar_name)
PyPB->>PyPB: Create bar with ship icon 🚢[idx]
Note over Task,PyPB: Data Processing & Metrics Collection
Source->>Source: get_data() returns partitions
loop For each partition
Source->>Stats: add_rows_in(part.len())
Source->>CountingSender: send(partition)
CountingSender->>Stats: add_rows_out(part.len())
end
Note over Task,PyPB: Task Completion & Progress Update
Task->>Sub: TaskEvent::Completed with stats
Sub->>Sub: Extract rows_in and rows_out from stats
Sub->>Sub: Accumulate totals in HashMap
Sub->>PyPB: update_bar(bar_id, "X rows out, Y rows in")
PyPB->>PyPB: Update description with checkmark ✓
PyPB->>PyPB: Display elapsed time and metrics
|
Greptile's behavior is changing!From now on, if a review finishes with no comments, we will not post an additional "statistics" comment to confirm that our review found nothing to comment on. However, you can confirm that we reviewed your changes in the status check section. This feature can be toggled off in your Code Review Settings by deselecting "Create a status check for each PR". |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5966 +/- ##
==========================================
+ Coverage 72.52% 72.68% +0.16%
==========================================
Files 970 970
Lines 126303 126639 +336
==========================================
+ Hits 91598 92051 +453
+ Misses 34705 34588 -117
🚀 New features to boost your workflow:
|
Changes Made
Added statistics on the number of input and output lines for each operator on the
flotilla, The style is similar toswordfish.Related Issues