test(amber): cover RetrieveWorkflowStateHandler state-propagation dispatch#6310
Conversation
Automated Reviewer SuggestionsBased on the
|
There was a problem hiding this comment.
Pull request overview
Adds a new Amber unit test to exercise RetrieveWorkflowStateHandler.retrieveWorkflowState by building a real CoordinatorProcessor + CoordinatorAsyncRPCHandlerInitializer, invoking the handler, and asserting the dispatched PropagateEmbeddedControlMessageRequest for both an empty and a populated physical plan.
Changes:
- Introduce
RetrieveWorkflowStateHandlerSpecwith a lightweight coordinator fixture that captures outboundWorkflowFIFOMessages. - Add assertions covering dispatched control-invocation shape (method name, request fields) for an empty plan.
- Add assertions that a populated plan targets all operators.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✅ No material benchmark regressions detected🟢 2 better · 🔴 0 worse · ⚪ 13 noise (<±5%) · 0 without baseline
Baseline detailsLatest main
Raw CSVconfig_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,535.44,200,128000,374,0.228,25933.91,32070.39,32070.39
1,100,10,64,20,2536.96,2000,1280000,788,0.481,125157.12,150325.46,150325.46
2,1000,10,64,20,22478.88,20000,12800000,890,0.543,1118214.39,1262755.77,1262755.77 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6310 +/- ##
============================================
+ Coverage 60.88% 60.91% +0.03%
- Complexity 3372 3373 +1
============================================
Files 1136 1136
Lines 44275 44275
Branches 4853 4853
============================================
+ Hits 26958 26972 +14
+ Misses 15839 15825 -14
Partials 1478 1478
*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:
|
…and drop stale line ref
What changes were proposed in this PR?
Adds a unit test for
RetrieveWorkflowStateHandler.retrieveWorkflowState. Using a realCoordinatorProcessorwith a capturing output handler and aCoordinatorAsyncRPCHandlerInitializer, it invokes the handler and asserts the dispatchedPropagateEmbeddedControlMessagerequest — covering target-operator collection, request construction, dispatch, and response-transform registration, for both an empty and a populated physical plan.Any related issues, documentation, discussions?
Closes #6307.
How was this PR tested?
Added a new
RetrieveWorkflowStateHandlerSpec(2 cases), a plain-JVMAnyFlatSpec— no ActorSystem, DB, Python, or storage. Verified locally on Java 17 (WorkflowExecutionService/testOnly, plusscalafixAll --checkclean). Test-only change — no production code is modified.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8 [1M context])