Repository navigation
Conversation
OutputManager.get_port takes an optional PortIdentity and returns the matching WorkerPort. When a port id is given it normalizes the unset id/internal defaults (id -> 0, internal -> False) and looks the port up in the _ports map, raising a KeyError that names the port when it is absent. When no port id is given it returns the first registered port, as the single-output callers rely on, but raises a KeyError when no output port has been added instead of indexing an empty list and throwing IndexError. test_output_manager adds TestGetPort covering the first-port default, the empty-ports guard, lookup of a non-first port by id, normalization of an unset field before lookup, and the unknown-port error.
Backport auto-label reportThis
|
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9608 +/- ##
============================================
- Coverage 91.57% 91.57% -0.01%
Complexity 5182 5182
============================================
Files 1300 1300
Lines 58133 58144 +11
Branches 7615 7619 +4
============================================
+ Hits 53236 53245 +9
- Misses 2959 2960 +1
- Partials 1938 1939 +1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 532 | 0.325 | 18,062/25,848/25,848 us | 🔴 +7.9% / 🔴 +88.8% |
| 🟢 | bs=100 sw=10 sl=64 | 1,248 | 0.762 | 79,769/89,161/89,161 us | 🟢 -20.1% / 🟢 -9.9% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,448 | 0.884 | 681,379/771,941/771,941 us | ⚪ within ±5% / 🟢 -12.3% |
Baseline details
Latest main f030df1 from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 532 tuples/sec | 555 tuples/sec | 1,018 tuples/sec | -4.1% | -47.8% |
| bs=10 sw=10 sl=64 | MB/s | 0.325 MB/s | 0.338 MB/s | 0.622 MB/s | -3.8% | -47.7% |
| bs=10 sw=10 sl=64 | p50 | 18,062 us | 18,108 us | 10,127 us | -0.3% | +78.4% |
| bs=10 sw=10 sl=64 | p95 | 25,848 us | 23,951 us | 13,693 us | +7.9% | +88.8% |
| bs=10 sw=10 sl=64 | p99 | 25,848 us | 23,951 us | 16,105 us | +7.9% | +60.5% |
| bs=100 sw=10 sl=64 | throughput | 1,248 tuples/sec | 1,197 tuples/sec | 1,364 tuples/sec | +4.3% | -8.5% |
| bs=100 sw=10 sl=64 | MB/s | 0.762 MB/s | 0.73 MB/s | 0.832 MB/s | +4.4% | -8.5% |
| bs=100 sw=10 sl=64 | p50 | 79,769 us | 78,792 us | 79,321 us | +1.2% | +0.6% |
| bs=100 sw=10 sl=64 | p95 | 89,161 us | 111,637 us | 86,661 us | -20.1% | +2.9% |
| bs=100 sw=10 sl=64 | p99 | 89,161 us | 111,637 us | 98,907 us | -20.1% | -9.9% |
| bs=1000 sw=10 sl=64 | throughput | 1,448 tuples/sec | 1,458 tuples/sec | 1,406 tuples/sec | -0.7% | +3.0% |
| bs=1000 sw=10 sl=64 | MB/s | 0.884 MB/s | 0.89 MB/s | 0.858 MB/s | -0.7% | +3.0% |
| bs=1000 sw=10 sl=64 | p50 | 681,379 us | 678,481 us | 776,724 us | +0.4% | -12.3% |
| bs=1000 sw=10 sl=64 | p95 | 771,941 us | 776,814 us | 814,345 us | -0.6% | -5.2% |
| bs=1000 sw=10 sl=64 | p99 | 771,941 us | 776,814 us | 862,305 us | -0.6% | -10.5% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,375.99,200,128000,532,0.325,18061.90,25847.91,25847.91
1,100,10,64,20,1602.56,2000,1280000,1248,0.762,79769.09,89161.38,89161.38
2,1000,10,64,20,13808.54,20000,12800000,1448,0.884,681378.70,771941.10,771941.10|
Removing |
What changes were proposed in this PR?
Any related issues, documentation, discussions?
Closes: #9605
How was this PR tested?
Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF