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

[State Observability] pre-alpha documentation #26560

Merged
merged 11 commits into from
Jul 26, 2022

Conversation

rkooo567
Copy link
Contributor

@rkooo567 rkooo567 commented Jul 14, 2022

Adds

  1. Documentation for state APIs
  2. API reference

Related issue number

Checks

  • 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 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 :(

python/ray/scripts/scripts.py Outdated Show resolved Hide resolved
python/ray/experimental/state/state_cli.py Show resolved Hide resolved
python/ray/experimental/state/common.py Show resolved Hide resolved
Copy link
Contributor

@rickyyx rickyyx left a comment

Choose a reason for hiding this comment

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

Could I see the generated docs hosted somewhere? Or I need to manually build the doc on this PR to see it?

dashboard/memory_utils.py Show resolved Hide resolved
python/ray/experimental/state/custom_types.py Show resolved Hide resolved
python/ray/experimental/state/common.py Show resolved Hide resolved

- When the API queries more than 1 component, if some of them fail,
the API will return the partial result (with a suppressable warning).
- When the API returns too many entries (10K), the API
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably want to embed constant values here or reference the exact consts or remember to change it once we figure out the fixed system upperbound for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I originally tried embeding the constant, but f string docsting didn't work for some reasons. Let me retry..

python/ray/experimental/state/state_cli.py Show resolved Hide resolved
python/ray/scripts/scripts.py Show resolved Hide resolved
@rkooo567
Copy link
Contributor Author

Screen Shot 2022-07-14 at 3 31 20 PM

@rickyyx you can see it from here! Looks like there's a bug..

@rkooo567
Copy link
Contributor Author

maybe because Literal is not available in the lower pytohn version. I will fix this

@rkooo567 rkooo567 added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jul 21, 2022
@rkooo567
Copy link
Contributor Author

The doc will be also added to this PR. will be ready by tomorrow

@rkooo567 rkooo567 removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jul 22, 2022
@rkooo567
Copy link
Contributor Author

rkooo567 commented Jul 22, 2022

@rickyyx @scv119 I also added a documentation here. Please take a look at https://ray--26560.org.readthedocs.build/en/26560/ray-observability/state/ray-state-api-reference.html and state-api.rst

@rkooo567 rkooo567 changed the title [State Observability] pre-alpha API documentation [State Observability] pre-alpha documentation Jul 22, 2022
Copy link
Contributor

@rickyyx rickyyx left a comment

Choose a reason for hiding this comment

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

This looks really great!

For the filterable and detail options, I wonder if we could embed the filterable/detail info into each column's doc, rather than have a separate section? The generated doc looks a bit verbose imo.
image

doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
python/ray/experimental/state/custom_types.py Show resolved Hide resolved
@rkooo567 rkooo567 added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jul 24, 2022
Copy link
Contributor Author

@rkooo567 rkooo567 left a comment

Choose a reason for hiding this comment

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

Addressed all comments. For Python APIs, I will leave it to @rickyyx to update!

Issue tracked: #26949

doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
doc/source/ray-observability/state/state-api.rst Outdated Show resolved Hide resolved
@rkooo567
Copy link
Contributor Author

cc @richardliaw can you take a look at this PR? I need approval from a code owner

@rickyyx rickyyx removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jul 25, 2022
Copy link
Contributor

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

codeowner stamp

@rkooo567 rkooo567 merged commit 39b9c44 into ray-project:master Jul 26, 2022
klwuibm pushed a commit to yuanchi2807/ray that referenced this pull request Jul 27, 2022
Adds

Documentation for state APIs
API reference

Signed-off-by: klwuibm <[email protected]>
Catch-Bull pushed a commit to alipay/ant-ray that referenced this pull request Jul 27, 2022
Adds

Documentation for state APIs
API reference

Signed-off-by: Catch-Bull <[email protected]>
Rohan138 pushed a commit to Rohan138/ray that referenced this pull request Jul 28, 2022
Adds

Documentation for state APIs
API reference

Signed-off-by: Rohan138 <[email protected]>
franklsf95 pushed a commit to franklsf95/ray that referenced this pull request Aug 2, 2022
Adds

Documentation for state APIs
API reference

Signed-off-by: Frank Luan <[email protected]>
gramhagen pushed a commit to gramhagen/ray that referenced this pull request Aug 15, 2022
Adds

Documentation for state APIs
API reference

Signed-off-by: Scott Graham <[email protected]>
gramhagen pushed a commit to gramhagen/ray that referenced this pull request Aug 15, 2022
Adds

Documentation for state APIs
API reference
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
Adds

Documentation for state APIs
API reference

Signed-off-by: Stefan van der Kleij <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants