Skip to content

Dev: add go starter - #16138

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
wangq8:dev/add-go-starter
Jun 17, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
wangq8:dev/add-go-starter

Conversation

@wangq8

@wangq8 wangq8 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Dev: add go starter

@wangq8
wangq8 requested a review from yuzhichang June 17, 2026 08:03
@wangq8
wangq8 marked this pull request as ready for review June 17, 2026 08:03
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 17, 2026
@coderabbitai

coderabbitai Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

docker/launch_backend_service.sh is updated so run_server() and run_admin_server() dynamically select between bin/* Go executables and Python module invocations based on the API_PROXY_SCHEME environment variable. The usage() help text is updated accordingly, and the trailing block that separately started admin and Go servers is removed.

Changes

Dynamic API_PROXY_SCHEME dispatch in launch_backend_service.sh

Layer / File(s) Summary
run_server / run_admin_server dynamic dispatch + help text
docker/launch_backend_service.sh
run_server() and run_admin_server() now branch on API_PROXY_SCHEME: go invokes bin/* executables, any other value runs the corresponding Python modules. Retry-with-backoff and cleanup on MAX_RETRIES exhaustion are retained. usage() help text drops hardcoded Python entrypoint references in favour of scheme-based descriptions.
End-of-script startup wiring cleanup
docker/launch_backend_service.sh
Removes the previously separate admin-server and run_go_servers startup calls at the end of the script, leaving only the final wait on background processes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 Hippity-hop, the launcher got clever,
Go bins or Python — it picks whichever!
API_PROXY_SCHEME tells the tale,
No more hardcoded paths without fail.
The trailing block? Swept clean away,
One tidy wait closes out the day! 🌟

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is essentially empty, containing only the title repeated. It lacks all required sections from the template including problem statement, type of change, and implementation details. Complete the PR description using the provided template: explain what problem this solves, select the appropriate type of change, and provide context about how API_PROXY_SCHEME enables Go executable support.
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Dev: add go starter' is vague and does not clearly summarize the main changes, which involve refactoring how services are launched based on API_PROXY_SCHEME. Use a more descriptive title that captures the primary change, such as 'Refactor service launch to support Go executables via API_PROXY_SCHEME' or 'Add Go executable support to backend service launcher'.
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@yuzhichang yuzhichang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 17, 2026
@wangq8
wangq8 merged commit fcb4f78 into infiniflow:main Jun 17, 2026
4 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants