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

Set app_msg to empty string by default #35646

Merged
merged 5 commits into from
May 23, 2023

Conversation

shrekris-anyscale
Copy link
Contributor

@shrekris-anyscale shrekris-anyscale commented May 23, 2023

Why are these changes needed?

The ApplicationState currently updates its _status directly without necessarily updating the corresponding message. This causes stale messages to sometimes appear with updated statuses. This change sets the app_msg to an empty string by default, so the message is cleared or updated whenever the status is changed.

Related issue number

Closes #35508

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
      • This change adds a check to test_update_app_deploy_failed to make sure the error message is cleared.
      • I also manually tested that the message is cleared when the runtime_env is originally invalid.

Signed-off-by: Shreyas Krishnaswamy <[email protected]>
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.

nit: app_msg should be status_msg ?

python/ray/serve/_private/application_state.py Outdated Show resolved Hide resolved
@edoakes
Copy link
Contributor

edoakes commented May 23, 2023

LGTM. Leave approval to @zcin.

Please manually test the workflow I described in the github issue before merging.

@shrekris-anyscale shrekris-anyscale marked this pull request as ready for review May 23, 2023 18:27
shrekris-anyscale and others added 2 commits May 23, 2023 11:28
Co-authored-by: Edward Oakes <[email protected]>
Signed-off-by: shrekris-anyscale <[email protected]>
Signed-off-by: Shreyas Krishnaswamy <[email protected]>
@shrekris-anyscale
Copy link
Contributor Author

nit: app_msg should be status_msg ?

Good catch, I changed it.

Please manually test the workflow I described in the github issue before merging.

Sure, I manually tested the runtime_env workflow, and the message gets cleared correctly with this change.

@shrekris-anyscale shrekris-anyscale changed the title [WIP] Set app_msg to empty string by default Set app_msg to empty string by default May 23, 2023
Copy link
Contributor

@zcin zcin left a comment

Choose a reason for hiding this comment

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

LGTM!

@shrekris-anyscale
Copy link
Contributor Author

The test failures are unrelated:

Screen Shot 2023-05-23 at 4 42 03 PM Screen Shot 2023-05-23 at 4 42 57 PM

@shrekris-anyscale
Copy link
Contributor Author

@edoakes @architkulkarni– This change is ready to merge.

@architkulkarni architkulkarni merged commit 0b706fe into ray-project:master May 23, 2023
shrekris-anyscale added a commit to shrekris-anyscale/ray that referenced this pull request May 24, 2023
The ApplicationState currently updates its _status directly without necessarily updating the corresponding message. This causes stale messages to sometimes appear with updated statuses. This change sets the app_msg to an empty string by default, so the message is cleared or updated whenever the status is changed.

Related issue number
Closes ray-project#35508
ArturNiederfahrenhorst pushed a commit that referenced this pull request May 24, 2023
The ApplicationState currently updates its _status directly without necessarily updating the corresponding message. This causes stale messages to sometimes appear with updated statuses. This change sets the app_msg to an empty string by default, so the message is cleared or updated whenever the status is changed.

Related issue number
Closes #35508
scv119 pushed a commit to scv119/ray that referenced this pull request Jun 16, 2023
The ApplicationState currently updates its _status directly without necessarily updating the corresponding message. This causes stale messages to sometimes appear with updated statuses. This change sets the app_msg to an empty string by default, so the message is cleared or updated whenever the status is changed.

Related issue number
Closes ray-project#35508
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
The ApplicationState currently updates its _status directly without necessarily updating the corresponding message. This causes stale messages to sometimes appear with updated statuses. This change sets the app_msg to an empty string by default, so the message is cleared or updated whenever the status is changed.

Related issue number
Closes ray-project#35508

Signed-off-by: e428265 <[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.

[Serve] Error status message isn't cleared after service redeployed correctly
4 participants