Skip to content

feat(result-service, single-node): deploy the result service - #9556

Merged
mengw15 merged 2 commits into
apache:mainfrom
mengw15:feat/8995-result-service-single-node
Nov 23, 2026
Merged

mengw15 merged 2 commits into
apache:mainfrom
mengw15:feat/8995-result-service-single-node

Conversation

@mengw15

@mengw15 mengw15 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

result-service (#9356) is built and tested in CI, but nothing runs it. This PR deploys it in the single-node Docker Compose stack: it publishes an image for it, runs it, and routes /api/results/ to it through nginx. Nothing calls it yet; #8996 moves the result panel over.

  • bin/dockerfiles/result-service.dockerfile (new) is file-service.dockerfile with the service's name and port (9102).
  • build-and-push-images.yml maps it to texera-result-service, the prefix every other image uses.
  • docker-compose.yml starts it once Postgres and Lakekeeper are up and the warehouse is created, as the computing unit does, and nginx waits for it like the other services. It needs no new .env values: it reads the database, Lakekeeper and object storage settings the stack already has.
  • nginx.conf routes /api/results/ to it; the longer prefix wins over the /api/ catch-all. docker-compose.observability.yml turns its tracing on like the other services.

Any related issues, documentation, discussions?

Closes #9637. Part of #8995. Mirrors #7932, which deployed notebook-migration-service the same way. Local-dev and Kubernetes follow in separate PRs.

How was this PR tested?

  • Built the image from the new Dockerfile and ran the stack with it; every container came up healthy.
  • Through nginx, a read without a token is refused (401). With one, a missing execution gets 403 and a workflow with no run gets 404, both from result-service.
  • Ran the Iris example workflow into a per-user warehouse, then read it through nginx: its latest execution, its results, a first and a last page of the CSV scan, the column statistics, and a scatter plot's HTML whole.
  • docker compose config passes with and without the observability overlay, and test_single_node_sh.sh, test_load_examples_sh.sh and test_create_release_tarballs.sh pass.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

Publish an image for result-service, run it in the single-node stack and
route /api/results/ to it through nginx. Nothing calls it yet; the result
panel moves over in a later change.
@github-actions github-actions Bot added feature ci changes related to CI infra labels Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

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

  • Committers with relevant context: @parshimers
    You can request their reviews formally with /request-review @parshimers.

  • Contributors with relevant context: @eugenegujing, @Ma77Ball
    You can notify them by mentioning @eugenegujing, @Ma77Ball in a comment.

@codecov-commenter

codecov-commenter commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.56%. Comparing base (4db10cf) to head (2d7c07d).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9556      +/-   ##
============================================
- Coverage     91.57%   91.56%   -0.01%     
+ Complexity     5159     5156       -3     
============================================
  Files          1300     1300              
  Lines         58092    58096       +4     
  Branches       7615     7619       +4     
============================================
- Hits          53198    53196       -2     
- Misses         2958     2960       +2     
- Partials       1936     1940       +4     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø)
agent-service 99.56% <ø> (ø)
amber 85.42% <ø> (-0.02%) ⬇️ Carriedforward from df24d20
computing-unit-managing-service 63.83% <ø> (-0.05%) ⬇️
config-service 87.50% <ø> (ø)
file-service 82.16% <ø> (ø)
frontend 96.45% <ø> (-0.01%) ⬇️ Carriedforward from df24d20
notebook-migration-service 83.77% <ø> (ø)
pyamber 98.38% <ø> (ø)
result-service 85.71% <ø> (ø)
workflow-compiling-service 78.30% <ø> (ø)

*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 Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

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

Compared against main 4db10cf 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 569 0.348 16,152/26,227/26,227 us 🟢 -21.0% / 🔴 +91.5%
🔴 bs=100 sw=10 sl=64 1,166 0.712 81,670/146,920/146,920 us 🔴 +41.4% / 🔴 +69.5%
⚪ bs=1000 sw=10 sl=64 1,465 0.894 683,437/720,664/720,664 us ⚪ within ±5% / 🟢 -16.4%
Baseline details

Latest main 4db10cf from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 569 tuples/sec 587 tuples/sec 1,018 tuples/sec -3.1% -44.1%
bs=10 sw=10 sl=64 MB/s 0.348 MB/s 0.358 MB/s 0.622 MB/s -2.8% -44.0%
bs=10 sw=10 sl=64 p50 16,152 us 14,073 us 10,127 us +14.8% +59.5%
bs=10 sw=10 sl=64 p95 26,227 us 33,199 us 13,693 us -21.0% +91.5%
bs=10 sw=10 sl=64 p99 26,227 us 33,199 us 16,105 us -21.0% +62.9%
bs=100 sw=10 sl=64 throughput 1,166 tuples/sec 1,249 tuples/sec 1,364 tuples/sec -6.6% -14.5%
bs=100 sw=10 sl=64 MB/s 0.712 MB/s 0.762 MB/s 0.832 MB/s -6.6% -14.5%
bs=100 sw=10 sl=64 p50 81,670 us 77,823 us 79,321 us +4.9% +3.0%
bs=100 sw=10 sl=64 p95 146,920 us 103,890 us 86,661 us +41.4% +69.5%
bs=100 sw=10 sl=64 p99 146,920 us 103,890 us 98,907 us +41.4% +48.5%
bs=1000 sw=10 sl=64 throughput 1,465 tuples/sec 1,431 tuples/sec 1,406 tuples/sec +2.4% +4.2%
bs=1000 sw=10 sl=64 MB/s 0.894 MB/s 0.873 MB/s 0.858 MB/s +2.4% +4.2%
bs=1000 sw=10 sl=64 p50 683,437 us 697,895 us 776,724 us -2.1% -12.0%
bs=1000 sw=10 sl=64 p95 720,664 us 749,548 us 814,345 us -3.9% -11.5%
bs=1000 sw=10 sl=64 p99 720,664 us 749,548 us 862,305 us -3.9% -16.4%
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,351.25,200,128000,569,0.348,16152.30,26227.11,26227.11
1,100,10,64,20,1715.55,2000,1280000,1166,0.712,81670.00,146920.20,146920.20
2,1000,10,64,20,13654.11,20000,12800000,1465,0.894,683436.72,720664.25,720664.25

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.

🟢 Approval recommended

No active review issues are reported for the result-service deployment changes.

No open issues 🎉

What changed in this PR

Deploys the existing result service in the single-node Docker Compose stack, preparing for result-panel reads without a running computing unit. Frontend integration remains a separate follow-up.

Changes:

  • Adds a result-service Docker image and its publishing name mapping.
  • Starts the service with database and catalog dependencies, a health check, and optional tracing.
  • Routes /api/results/ through nginx to the service.
File Description
bin/​single-node/​nginx.conf Routes result API requests to port 9102.
bin/​single-node/​docker-compose.yml Adds result-service and makes nginx depend on it.
bin/​single-node/​docker-compose.observability.yml Enables tracing for result-service.
bin/​dockerfiles/​result-service.dockerfile Builds and packages the service in a non-root runtime image.
.github/​workflows/​build-and-push-images.yml Maps the image to texera-result-service.

Review effort: Balanced

@mengw15
mengw15 marked this pull request as ready for review November 22, 2026 11:44
@mengw15
mengw15 requested review from bobbai00 and kunwp1 November 22, 2026 11:44

@bobbai00 bobbai00 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.

🟡 0 must-fix · 3 advisory · 0 polish: a faithful copy of the single-node deployment pattern; one catalog question and two process items.

Correctness (1)

  • bin/single-node/docker-compose.yml:532: postgres-catalog reads answer 404 "no longer stored" for existing results (advisory, see inline)

Conventions (2)

  • .github/workflows/build-and-push-images.yml:292: no CI run has built the image yet (advisory, see inline)
  • bin/single-node/docker-compose.yml:533: the PR closes no issue (advisory, see inline)
Verification trace

Traced what the new /api/results/ route exposes. All four GETs sit under class-level @RolesAllowed(REGULAR, ADMIN); the three execution reads call requireReadable first (the caller started the execution or can use its computing unit), latest-execution filters by the caller's uid, and page bounds are checked. The @PermitAll health check stays internal, since /api/healthcheck still routes to dashboard-service. With the default REST catalog the service needs no new .env keys: JDBC, catalog URI, warehouse switch and JWT secret resolve to the values the computing unit uses.

Comment thread bin/single-node/docker-compose.yml Resolved
Comment thread bin/single-node/docker-compose.yml Resolved

@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! One minor thing for later: .github/release/vote-email-template.md lists 7 images. Now that compose runs result-service, texera-result-service should be added there, along with texera-notebook-migration-service and texera-agent-service, which compose already pulls but the template leaves out.

@mengw15

mengw15 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I'll add those to the vote email template in a separate issue and fix, along with texera-jupyter, which compose also pulls.

@bobbai00 bobbai00 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.

🟢 3 resolved · 0 open · 0 new (0 new = 0 newly introduced · 0 late catches)

All three round-1 points are settled: the compose comment now states the REST-catalog requirement (the 404 wording is the fix in #9636), the description closes #9637, and the image-publishing gap is answered in its thread.

@mengw15
mengw15 added this pull request to the merge queue Nov 23, 2026
Merged via the queue into apache:main with commit 02c8e12 Nov 23, 2026
46 checks passed
@mengw15
mengw15 deleted the feat/8995-result-service-single-node branch November 23, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI feature infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Result Service] Add result-service to the single-node deployment

5 participants