Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

[core]test_job_isolation passes even when exceptions are thrown#51694

Merged
edoakes merged 2 commits intoray-project:masterfromkevin85421:laptop-20250325
Mar 26, 2025

Conversation

kevin85421
Copy link
Member

@kevin85421kevin85421 commentedMar 25, 2025
edited
Loading

Why are these changes needed?

call_ray_start uses an unusual method to obtain the GCS address. It executes aray start command and then parses the command's STDOUT. However, this method will return "None" as address. See the following screenshot for more details.

try:
out=ray._private.utils.decode(
subprocess.check_output(command_args,stderr=subprocess.STDOUT,env=env)
)
exceptExceptionase:
print(type(e),e)
raise
# Get the redis address from the output.
redis_substring_prefix="--address='"
idx=out.find(redis_substring_prefix)
ifidx>=0:
address_location=idx+len(redis_substring_prefix)
address=out[address_location:]
address=address.split("'")[0]
else:
address=None
yieldaddress

image

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 runscripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed forhttps://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 indoc/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 athttps://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>
Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>
@kevin85421kevin85421 changed the title[core]test_job_isolation always passes although it always fails[core]test_job_isolation always passes even if it always failsMar 25, 2025
@kevin85421kevin85421 changed the title[core]test_job_isolation always passes even if it always fails[core]test_job_isolation always passes even if it exceptions are thrownMar 25, 2025
@kevin85421kevin85421 changed the title[core]test_job_isolation always passes even if it exceptions are thrown[core]test_job_isolation always passes even when exceptions are thrownMar 25, 2025
@@ -56,14 +56,12 @@ def test_invalid_gcs_address():
JobSubmissionClient("abc:abc")


@pytest.mark.skipif(
sys.version_info >= (3, 12), reason="lib is not supported on Python 3.12"
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

lib is the Python file we created for this test. I don't know why it says thatlib is not supported on Python 3.12.

Copy link
Collaborator

Choose a reason for hiding this comment

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

lol

@kevin85421kevin85421 changed the title[core]test_job_isolation always passes even when exceptions are thrown[core]test_job_isolation passes even when exceptions are thrownMar 25, 2025
@kevin85421kevin85421 added the goadd ONLY when ready to merge, run all tests labelMar 25, 2025
@kevin85421kevin85421 marked this pull request as ready for reviewMarch 26, 2025 01:58
@edoakesedoakes merged commit38b67cf intoray-project:masterMar 26, 2025
5 checks passed
dhakshin32 pushed a commit to dhakshin32/ray that referenced this pull requestMar 27, 2025
…ay-project#51694)`call_ray_start` uses an unusual method to obtain the GCS address. Itexecutes a `ray start` command and then parses the command's STDOUT.However, this method will return "None" as address. See the followingscreenshot for more details.https://github.com/ray-project/ray/blob/a5bab234e651d19b91d5860be0606d4c6c01d118/python/ray/tests/conftest.py#L771-L789---------Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>Signed-off-by: Dhakshin Suriakannu <d_suriakannu@apple.com>
srinathk10 pushed a commit that referenced this pull requestMar 28, 2025
…51694)`call_ray_start` uses an unusual method to obtain the GCS address. Itexecutes a `ray start` command and then parses the command's STDOUT.However, this method will return "None" as address. See the followingscreenshot for more details.https://github.com/ray-project/ray/blob/a5bab234e651d19b91d5860be0606d4c6c01d118/python/ray/tests/conftest.py#L771-L789---------Signed-off-by: Kai-Hsun Chen <kaihsun@anyscale.com>Signed-off-by: Srinath Krishnamachari <srinath.krishnamachari@anyscale.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@edoakesedoakesedoakes approved these changes

Assignees

@edoakesedoakes

Labels
goadd ONLY when ready to merge, run all tests
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kevin85421@edoakes

[8]ページ先頭

©2009-2025 Movatter.jp