Skip to content

[Serve] Keep object_store_memory an int#45781

Merged
shrekris-anyscale merged 4 commits intoray-project:masterfrom
shrekris-anyscale:allow_obj_store_memory_serve
Jun 7, 2024
Merged

[Serve] Keep object_store_memory an int#45781
shrekris-anyscale merged 4 commits intoray-project:masterfrom
shrekris-anyscale:allow_obj_store_memory_serve

Conversation

@shrekris-anyscale
Copy link
Contributor

Why are these changes needed?

Ray Serve converts object_store_memory into a float, but Ray Core requires it to be an int. This change makes Serve keep it an int.

Note: I added the unit test to test_regression.py, but it makes more sense to keep it in test_api.py. I'm going to hold off on adding it there until #45780 is resolved. If I add it to test_api.py now, the test passes and then hangs while cleaning up.

Related issue number

Closes #45321

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: Shreyas Krishnaswamy <shrekris@anyscale.com>
@shrekris-anyscale shrekris-anyscale requested a review from a team June 6, 2024 22:29
@shrekris-anyscale shrekris-anyscale changed the title [Serve] Allow object_store_memory to be set [Serve] Keep object_store_memory an int Jun 6, 2024
Signed-off-by: Shreyas Krishnaswamy <shrekris@anyscale.com>
Signed-off-by: Shreyas Krishnaswamy <shrekris@anyscale.com>
@shrekris-anyscale shrekris-anyscale enabled auto-merge (squash) June 7, 2024 17:58
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Jun 7, 2024
Co-authored-by: Gene Der Su <gdsu@ucdavis.edu>
Signed-off-by: shrekris-anyscale <92341594+shrekris-anyscale@users.noreply.github.com>
@github-actions github-actions bot disabled auto-merge June 7, 2024 18:39
@shrekris-anyscale shrekris-anyscale merged commit 9b56f4d into ray-project:master Jun 7, 2024
richardsliu pushed a commit to richardsliu/ray that referenced this pull request Jun 12, 2024
<!-- Thank you for your contribution! Please review
https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before
opening a pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->

Ray Serve converts `object_store_memory` into a float, but Ray Core
requires it to be an int. This change makes Serve keep it an int.

**Note:** I added the unit test to `test_regression.py`, but it makes
more sense to keep it in `test_api.py`. I'm going to hold off on adding
it there until ray-project#45780 is
resolved. If I add it to `test_api.py` now, the test passes and then
hangs while cleaning up.

## Related issue number

<!-- For example: "Closes ray-project#1234" -->

Closes ray-project#45321

## Checks

- [X] I've signed off every commit(by using the -s flag, i.e., `git
commit -s`) in this PR.
- [X] 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
   - [X] Unit tests
   - [ ] Release tests
   - [ ] This PR is not tested :(

---------

Signed-off-by: Shreyas Krishnaswamy <shrekris@anyscale.com>
Signed-off-by: shrekris-anyscale <92341594+shrekris-anyscale@users.noreply.github.com>
Co-authored-by: Gene Der Su <gdsu@ucdavis.edu>
Signed-off-by: Richard Liu <ricliu@google.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.

[Serve] Validate object_store_memory in ray_actor_options error

4 participants