Skip to content

[Serve] Include ingress_request_router.lua.tmpl in package_data#63145

Merged
aslonnie merged 2 commits into
ray-project:masterfrom
eicherseiji:serve-package-lua-tmpl
May 6, 2026
Merged

[Serve] Include ingress_request_router.lua.tmpl in package_data#63145
aslonnie merged 2 commits into
ray-project:masterfrom
eicherseiji:serve-package-lua-tmpl

Conversation

@eicherseiji

Copy link
Copy Markdown
Contributor

Summary

Prep for the HAProxy ingress-request-router Lua template introduced in #62669. The template is loaded at runtime by ray.serve._private.haproxy (via Path(__file__).parent / "ingress_request_router.lua.tmpl"), so it must be packaged into the wheel.

Splitting this out per @aslonnie's review feedback on #62669 so the package_data change can be reviewed independently of the HAProxy/Lua logic.

The pattern matches zero files until #62669 lands; setuptools accepts that without error.

Test plan

  • CI green (build + import smoke tests)
Prep for the HAProxy ingress-request-router Lua template introduced in
ray-project#62669. The template is loaded at runtime by `ray.serve._private.haproxy`
(via `Path(__file__).parent / "ingress_request_router.lua.tmpl"`), so it
must be packaged into the wheel.

The pattern matches zero files until ray-project#62669 lands; setuptools accepts that
without error. Splitting this out so the package_data change can be
reviewed independently of the HAProxy/Lua logic.

Signed-off-by: Seiji Eicher <seiji@anyscale.com>

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates python/setup.py to include a specific Lua template file in the package data. The reviewer suggests using a glob pattern instead to ensure consistency with other entries and to automatically include any future templates in that directory.

Comment thread python/setup.py
"includes/*.pxd",
"*.pxd",
"llm/_internal/serve/config_generator/base_configs/templates/*.yaml",
"serve/_private/ingress_request_router.lua.tmpl",

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.

medium

For consistency with the other entries in package_data (lines 843-845) and to align with the description of this as a "pattern", consider using a glob. This also ensures that any future Lua templates added to this directory are automatically included without requiring further changes to setup.py.

Suggested change
"serve/_private/ingress_request_router.lua.tmpl",
"serve/_private/*.lua.tmpl",
@eicherseiji eicherseiji marked this pull request as ready for review May 5, 2026 20:54
@eicherseiji eicherseiji requested review from a team, edoakes and richardliaw as code owners May 5, 2026 20:54
@eicherseiji eicherseiji added the go add ONLY when ready to merge, run all tests label May 5, 2026
@eicherseiji

Copy link
Copy Markdown
Contributor Author

@aslonnie okay to force merge? failing due to ml: train v1 tests

@ray-gardener ray-gardener Bot added the serve Ray Serve Related Issue label May 6, 2026
@aslonnie aslonnie merged commit 86d83e9 into ray-project:master May 6, 2026
4 of 6 checks passed
Lucas61000 pushed a commit to Lucas61000/ray that referenced this pull request May 15, 2026
…project#63145)

Prep for the HAProxy ingress-request-router Lua template introduced in
ray-project#62669. The template is loaded at runtime by
`ray.serve._private.haproxy` (via `Path(__file__).parent /
"ingress_request_router.lua.tmpl"`), so it must be packaged into the
wheel.

Splitting this out per @aslonnie's review feedback on ray-project#62669 so the
`package_data` change can be reviewed independently of the HAProxy/Lua
logic.

The pattern matches zero files until ray-project#62669 lands; setuptools accepts
that without error.

Signed-off-by: Seiji Eicher <seiji@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests serve Ray Serve Related Issue

2 participants