Repository navigation
Conversation
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'.
Automated Reviewer SuggestionsBased on the
|
There was a problem hiding this comment.
🟢 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/resultsto result-service before the/apicatch-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 Report✅ All modified and coverable lines are covered by tests. 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
*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:
|
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.shandtui.pyregister it as a JVM service on port 9102, sobin/local-dev.sh upbuilds, starts and health-checks it after notebook-migration-service.frontend/proxy.config.jsonsends/api/resultsto it from the dev server, ahead of the/apicatch-all, as nginx does in the single-node stack (feat(result-service, single-node): deploy the result service #9556)..run/ResultService.run.xmland thetexera micro servicescompound add it to IntelliJ, like file-service and config-service.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?
sbt ResultService/distand started it withbin/local-dev.sh up result-service --skip-buildagainst a local Postgres:/api/healthcheckanswers 200, the result endpoints answer 401 without a token,status --jsonreports it running, anddown result-servicestops it.proxy.config.jsonwith webpack-dev-server and stub backends:/api/results/...reaches 9102 and/api/workflow/...reaches 8080. On main both reach 8080.pytest bin/local-dev/testspasses (44). Giving result-service a port already in use turns the port-uniqueness case red.test_local_dev_sh.shgives the same result as on main: 116 of 117 pass, and the other fails on both on my machine.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)