Skip to content

feat(amber, frontend): carry the execution id in pushed result updates - #9858

Queued
mengw15 wants to merge 4 commits into
apache:mainfrom
mengw15:feat/9854-result-update-execution-id
Queued

mengw15 wants to merge 4 commits into
apache:mainfrom
mengw15:feat/9854-result-update-execution-id

Conversation

@mengw15

@mengw15 mengw15 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

WebResultUpdateEvent, which the computing unit pushes while an execution runs, now carries executionId, the id of the execution its updates belong to. ExecutionResultService sets 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's WorkflowResultUpdateEvent declares 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 pins executionId on the wire as a number; the existing cases build the event with it.
  • Ran ExecutionResultServiceSpec, TexeraWebSocketEventSpec and WorkflowServiceSpec locally, 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)

WebResultUpdateEvent now names the execution its updates belong to, so the
browser can read that execution's pages from result-service.
@mengw15
mengw15 requested review from bobbai00 and kunwp1 and a balanced review from Copilot December 3, 2026 10:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 executionId to WebResultUpdateEvent and populated it in ExecutionResultService.
  • Updated Amber unit tests to construct/validate the new event shape and JSON serialization.
  • Updated the frontend WorkflowResultUpdateEvent type to include executionId.
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

@kunwp1 kunwp1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@mengw15
mengw15 enabled auto-merge December 3, 2026 16:06
@mengw15 mengw15 added engine frontend Changes related to the frontend GUI labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

✅ No material benchmark regressions detected

🟢 7 better · 🔴 0 worse · ⚪ 8 noise (<±5%) · 0 without baseline

Compared against main 2d0a0a3 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🟢 bs=10 sw=10 sl=64 521 0.318 17,889/27,965/27,965 us 🟢 -46.6% / 🔴 +103.7%
🟢 bs=100 sw=10 sl=64 1,230 0.751 80,180/91,696/91,696 us 🟢 -12.5% / 🔴 -6.3%
⚪ bs=1000 sw=10 sl=64 1,445 0.882 687,306/768,890/768,890 us ⚪ within ±5% / 🟢 -11.9%
Baseline details

Latest main 2d0a0a3 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 521 tuples/sec 378 tuples/sec 943.62 tuples/sec +37.8% -44.8%
bs=10 sw=10 sl=64 MB/s 0.318 MB/s 0.231 MB/s 0.576 MB/s +37.7% -44.8%
bs=10 sw=10 sl=64 p50 17,889 us 25,244 us 10,541 us -29.1% +69.7%
bs=10 sw=10 sl=64 p95 27,965 us 52,391 us 13,727 us -46.6% +103.7%
bs=10 sw=10 sl=64 p99 27,965 us 52,391 us 16,861 us -46.6% +65.9%
bs=100 sw=10 sl=64 throughput 1,230 tuples/sec 1,218 tuples/sec 1,313 tuples/sec +1.0% -6.3%
bs=100 sw=10 sl=64 MB/s 0.751 MB/s 0.744 MB/s 0.801 MB/s +0.9% -6.3%
bs=100 sw=10 sl=64 p50 80,180 us 78,929 us 79,983 us +1.6% +0.2%
bs=100 sw=10 sl=64 p95 91,696 us 104,749 us 86,516 us -12.5% +6.0%
bs=100 sw=10 sl=64 p99 91,696 us 104,749 us 93,488 us -12.5% -1.9%
bs=1000 sw=10 sl=64 throughput 1,445 tuples/sec 1,444 tuples/sec 1,347 tuples/sec +0.1% +7.3%
bs=1000 sw=10 sl=64 MB/s 0.882 MB/s 0.881 MB/s 0.822 MB/s +0.1% +7.3%
bs=1000 sw=10 sl=64 p50 687,306 us 688,011 us 780,074 us -0.1% -11.9%
bs=1000 sw=10 sl=64 p95 768,890 us 797,049 us 826,232 us -3.5% -6.9%
bs=1000 sw=10 sl=64 p99 768,890 us 797,049 us 869,114 us -3.5% -11.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,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-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.79%. Comparing base (2d0a0a3) to head (012ec08).

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              
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø) Carriedforward from 40740fa
agent-service 99.50% <ø> (-0.07%) ⬇️ Carriedforward from 40740fa
amber 86.08% <100.00%> (-0.01%) ⬇️
computing-unit-managing-service 63.75% <ø> (-0.21%) ⬇️ Carriedforward from 40740fa
config-service 87.50% <ø> (ø) Carriedforward from 40740fa
file-service 82.16% <ø> (-0.02%) ⬇️ Carriedforward from 40740fa
frontend 96.50% <ø> (ø)
notebook-migration-service 83.84% <ø> (ø) Carriedforward from 40740fa
pyamber 98.64% <ø> (+0.07%) ⬆️ Carriedforward from 40740fa
result-service 86.48% <ø> (ø) Carriedforward from 40740fa
workflow-compiling-service 80.90% <ø> (ø) Carriedforward from 40740fa

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @aglinxinyuan, @kz930, @bobbai00
    You can notify them by mentioning @aglinxinyuan, @kz930, @bobbai00 in a comment.

@mengw15
mengw15 added this pull request to the merge queue Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Carry the execution id in pushed result updates

5 participants