Skip to content

feat(result-service, local-dev): manage the result service - #9650

Open
mengw15 wants to merge 2 commits into
apache:mainfrom
mengw15:feat/8995-result-service-local-dev
Open

mengw15 wants to merge 2 commits into
apache:mainfrom
mengw15:feat/8995-result-service-local-dev

Conversation

@mengw15

@mengw15 mengw15 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Adds result-service (#9356) to local development, the way the other backend services are set up:

  • bin/local-dev/main.sh and tui.py register it as a JVM service on port 9102, so bin/local-dev.sh up builds, starts and health-checks it after notebook-migration-service.
  • frontend/proxy.config.json sends /api/results to it from the dev server, ahead of the /api catch-all, as nginx does in the single-node stack (feat(result-service, single-node): deploy the result service #9556).
  • .run/ResultService.run.xml and the texera micro services compound add it to IntelliJ, like file-service and config-service.
  • The developer guide lists it among the services to run in IntelliJ.

Any related issues, documentation, discussions?

Closes #9649. Part of #8995. #7934 added notebook-migration-service to local-dev the same way; the Kubernetes deployment follows separately.

How was this PR tested?

  • Built it with sbt ResultService/dist and started it with bin/local-dev.sh up result-service --skip-build against a local Postgres: /api/healthcheck answers 200, the result endpoints answer 401 without a token, status --json reports it running, and down result-service stops it.
  • Served proxy.config.json with webpack-dev-server and stub backends: /api/results/... reaches 9102 and /api/workflow/... reaches 8080. On main both reach 8080.
  • pytest bin/local-dev/tests passes (44). Giving result-service a port already in use turns the port-uniqueness case red.
  • test_local_dev_sh.sh gives the same result as on main: 116 of 117 pass, and the other fails on both on my machine.
  • The run configuration differs from FileService's only in the names. I did not open it in IntelliJ.

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

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

Register result-service with bin/local-dev.sh and its TUI, route
/api/results to it from the frontend dev server, and add an IntelliJ run
configuration alongside the other backend services'.
@github-actions github-actions Bot added feature frontend Changes related to the frontend GUI infra labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

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: @LJX2017, @aglinxinyuan, @kz930
    You can notify them by mentioning @LJX2017, @aglinxinyuan, @kz930 in a comment.

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

The review identifies no active issues with the result-service local-development integration.

No open issues 🎉

What changed in this PR

Integrates the existing result service into local development tooling, allowing contributors to manage it alongside the other backend services. This covers the local-dev portion of the broader result-service rollout.

Changes:

  • Registers result-service on port 9102 for CLI lifecycle management and dashboard display.
  • Routes frontend dev-server requests under /api/results to result-service before the /api catch-all.
  • Adds an IntelliJ run configuration and includes it in the microservices compound configuration.
File Description
frontend/​proxy.config.json Routes result API requests to port 9102.
bin/​local-dev/​tui.py Adds result-service to the dashboard catalog.
bin/​local-dev/​main.sh Registers build, launch, health-check, and lifecycle settings.
.run/​texera micro services.run.xml Includes ResultService in the compound launch configuration.
.run/​ResultService.run.xml Adds a standalone IntelliJ launch configuration.

Review effort: Balanced

@codecov-commenter

codecov-commenter commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.68%. Comparing base (a038371) to head (175d6fc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9650      +/-   ##
============================================
- Coverage     91.68%   91.68%   -0.01%     
  Complexity     5136     5136              
============================================
  Files          1304     1304              
  Lines         58097    58097              
  Branches       7583     7583              
============================================
- Hits          53265    53264       -1     
  Misses         2922     2922              
- Partials       1910     1911       +1     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø) Carriedforward from 116a675
agent-service 99.56% <ø> (ø) Carriedforward from 116a675
amber 85.77% <ø> (ø) Carriedforward from 116a675
computing-unit-managing-service 63.83% <ø> (ø) Carriedforward from 116a675
config-service 87.50% <ø> (ø) Carriedforward from 116a675
file-service 82.16% <ø> (ø) Carriedforward from 116a675
frontend 96.45% <ø> (-0.01%) ⬇️
notebook-migration-service 83.77% <ø> (ø) Carriedforward from 116a675
pyamber 98.38% <ø> (ø) Carriedforward from 116a675
result-service 85.71% <ø> (ø) Carriedforward from 116a675
workflow-compiling-service 78.30% <ø> (ø) Carriedforward from 116a675

*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.

@mengw15
mengw15 requested review from bobbai00 and kunwp1 November 23, 2026 21:16
@github-actions github-actions Bot added the docs Changes related to documentations label Nov 23, 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

docs Changes related to documentations feature frontend Changes related to the frontend GUI infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Result Service] Manage result-service in the local dev tooling

3 participants