Repository navigation
Conversation
WebResultUpdateEvent now names the execution its updates belong to, so the browser can read that execution's pages from result-service.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
1 open issue
What changed in this PR
This PR propagates an executionId alongside result update events so consumers can associate pushed updates with the specific execution whose result pages should be fetched.
Changes:
- Added
executionIdtoWebResultUpdateEventand populated it inExecutionResultService. - Updated Amber unit tests to construct/validate the new event shape and JSON serialization.
- Updated the frontend
WorkflowResultUpdateEventtype to includeexecutionId.
| File | Description |
|---|---|
| frontend/src/app/workspace/types/execute-workflow.interface.ts | Adds executionId to the frontend result update event contract. |
| amber/src/main/scala/org/apache/texera/web/model/websocket/event/WebResultUpdateEvent.scala | Extends the websocket event payload with executionId. |
| amber/src/main/scala/org/apache/texera/web/service/ExecutionResultService.scala | Populates executionId when emitting result update events. |
| amber/src/test/scala/org/apache/texera/web/service/WorkflowServiceSpec.scala | Updates test fixtures to include the new constructor parameter. |
| amber/src/test/scala/org/apache/texera/web/service/ExecutionResultServiceSpec.scala | Adds coverage ensuring re-attaching updates the carried executionId. |
| amber/src/test/scala/org/apache/texera/web/model/websocket/event/TexeraWebSocketEventSpec.scala | Pins executionId serialization on the wire and updates existing cases. |
Review effort: Lite
✅ No material benchmark regressions detected🟢 7 better · 🔴 0 worse · ⚪ 8 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,384.02,200,128000,521,0.318,17888.71,27965.07,27965.07
1,100,10,64,20,1625.82,2000,1280000,1230,0.751,80179.83,91696.13,91696.13
2,1000,10,64,20,13836.20,20000,12800000,1445,0.882,687305.95,768890.17,768890.17 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9858 +/- ##
============================================
- Coverage 91.85% 91.79% -0.06%
+ Complexity 5161 5157 -4
============================================
Files 1310 1308 -2
Lines 58440 57996 -444
Branches 7629 7618 -11
============================================
- Hits 53681 53239 -442
+ Misses 2863 2861 -2
Partials 1896 1896
*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:
|
Automated Reviewer SuggestionsBased on the
|

What changes were proposed in this PR?
WebResultUpdateEvent, which the computing unit pushes while an execution runs, now carriesexecutionId, the id of the execution its updates belong to.ExecutionResultServicesets it from the execution it is attached to, so after a new run on the same computing unit, every update names the new execution. The frontend'sWorkflowResultUpdateEventdeclares the field.Nothing reads the id yet: #9855 pages results from result-service by it.
Any related issues, documentation, discussions?
Closes #9854. Part of #8996.
How was this PR tested?
ExecutionResultServiceSpec: a new case checks that every update names the attached execution, including after another execution is attached.TexeraWebSocketEventSpec: a new case pinsexecutionIdon the wire as a number; the existing cases build the event with it.ExecutionResultServiceSpec,TexeraWebSocketEventSpecandWorkflowServiceSpeclocally, with scalafmt and scalafix checks on amber. The frontend change is a type only.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)