Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[serve][cli] Handle nested = in serve run arguments #49719

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

edoakes
Copy link
Contributor

@edoakes edoakes commented Jan 8, 2025

Why are these changes needed?

Probably not perfect, but a small patch fix...

Without this:

> serve run main:app FOO='abc=def'
Error: Invalid key-value string 'FOO=abc=def'. Must be of the form 'key=value'

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jan 8, 2025
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes enabled auto-merge (squash) January 8, 2025 15:18
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

@akyang-anyscale akyang-anyscale left a comment

Choose a reason for hiding this comment

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

The new edge case is failing. I think that arg still gets split into two parts.

@github-actions github-actions bot disabled auto-merge January 8, 2025 18:57
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes
Copy link
Contributor Author

edoakes commented Jan 8, 2025

The new edge case is failing. I think that arg still gets split into two parts.

Fixed it now thanks for pointing it out

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes enabled auto-merge (squash) January 9, 2025 14:02
@edoakes edoakes merged commit 4fb623b into ray-project:master Jan 9, 2025
6 checks passed
dayshah pushed a commit to dayshah/ray that referenced this pull request Jan 10, 2025
…49719)


Probably not perfect, but a small patch fix...

Without this:
```
> serve run main:app FOO='abc=def'
Error: Invalid key-value string 'FOO=abc=def'. Must be of the form 'key=value'
```

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
HYLcool pushed a commit to HYLcool/ray that referenced this pull request Jan 13, 2025
…49719)

Probably not perfect, but a small patch fix...

Without this:
```
> serve run main:app FOO='abc=def'
Error: Invalid key-value string 'FOO=abc=def'. Must be of the form 'key=value'
```

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: lielin.hyl <lielin.hyl@alibaba-inc.com>
srinathk10 pushed a commit that referenced this pull request Feb 2, 2025
Probably not perfect, but a small patch fix...

Without this:
```
> serve run main:app FOO='abc=def'
Error: Invalid key-value string 'FOO=abc=def'. Must be of the form 'key=value'
```

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
anyadontfly pushed a commit to anyadontfly/ray that referenced this pull request Feb 13, 2025
…49719)

Probably not perfect, but a small patch fix...

Without this:
```
> serve run main:app FOO='abc=def'
Error: Invalid key-value string 'FOO=abc=def'. Must be of the form 'key=value'
```

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Puyuan Yao <williamyao034@gmail.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants