Skip to content

fix: fix multiple deployment same name resolve#59577

Merged
abrarsheikh merged 4 commits intoray-project:masterfrom
manhld0206:fix/fix_incorrect_binding_deployments_with_same_name
Dec 21, 2025
Merged

fix: fix multiple deployment same name resolve#59577
abrarsheikh merged 4 commits intoray-project:masterfrom
manhld0206:fix/fix_incorrect_binding_deployments_with_same_name

Conversation

@manhld0206
Copy link
Contributor

@manhld0206 manhld0206 commented Dec 19, 2025

Description

Fix ingress deployment name could be modified if child deployment has the same name

Related issues

Fixes #53295

Additional information

Because there is a child app with the same name as the ingress deployment app, the ingress deployment app name was modified during _build_app_recursive function. Therefore we should use the modified name instead.

Another solution is changing the child_app name instead of the ingress deployment app name

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
@manhld0206 manhld0206 requested a review from a team as a code owner December 19, 2025 12:15
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

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 addresses a bug where the ingress deployment's name could be incorrect if another deployment in the application shared the same name. The fix correctly uses the resolved unique name from the deployment_names map, which is populated during the build process to handle name collisions. This change is correct and effectively resolves the issue. I have no further suggestions.

@ray-gardener ray-gardener bot added serve Ray Serve Related Issue community-contribution Contributed by the community labels Dec 19, 2025
@harshit-anyscale harshit-anyscale added the go add ONLY when ready to merge, run all tests label Dec 19, 2025
@abrarsheikh
Copy link
Contributor

can you write a test for the original github issue.

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
@manhld0206
Copy link
Contributor Author

can you write a test for the original github issue.

I have added a test

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
@abrarsheikh abrarsheikh merged commit efb34a6 into ray-project:master Dec 21, 2025
6 checks passed
Yicheng-Lu-llll pushed a commit to Yicheng-Lu-llll/ray that referenced this pull request Dec 22, 2025
## Description
Fix ingress deployment name could be modified if child deployment has
the same name

## Related issues
Fixes ray-project#53295

## Additional information
Because there is a child app with the same name as the ingress
deployment app, the ingress deployment app name was modified during
_build_app_recursive function. Therefore we should use the modified name
instead.

Another solution is changing the child_app name instead of the ingress
deployment app name

---------

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
AYou0207 pushed a commit to AYou0207/ray that referenced this pull request Jan 13, 2026
## Description
Fix ingress deployment name could be modified if child deployment has
the same name

## Related issues
Fixes ray-project#53295

## Additional information
Because there is a child app with the same name as the ingress
deployment app, the ingress deployment app name was modified during
_build_app_recursive function. Therefore we should use the modified name
instead.

Another solution is changing the child_app name instead of the ingress
deployment app name

---------

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
Signed-off-by: jasonwrwang <jasonwrwang@tencent.com>
lee1258561 pushed a commit to pinterest/ray that referenced this pull request Feb 3, 2026
## Description
Fix ingress deployment name could be modified if child deployment has
the same name

## Related issues
Fixes ray-project#53295

## Additional information
Because there is a child app with the same name as the ingress
deployment app, the ingress deployment app name was modified during
_build_app_recursive function. Therefore we should use the modified name
instead.

Another solution is changing the child_app name instead of the ingress
deployment app name

---------

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
## Description
Fix ingress deployment name could be modified if child deployment has
the same name

## Related issues
Fixes ray-project#53295

## Additional information
Because there is a child app with the same name as the ingress
deployment app, the ingress deployment app name was modified during
_build_app_recursive function. Therefore we should use the modified name
instead.

Another solution is changing the child_app name instead of the ingress
deployment app name

---------

Signed-off-by: Le Duc Manh <naruto12308@gmail.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community go add ONLY when ready to merge, run all tests serve Ray Serve Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Serve] serve.run can bind the incorrect Application if Deployments have the same name

3 participants