Skip to content

Redo agent-pid -> agent-id changes - #25806

Merged
pcmoritz merged 2 commits into
ray-project:masterfrom
mattip:redo-agent-id
Jul 20, 2022
Merged

pcmoritz merged 2 commits into
ray-project:masterfrom
mattip:redo-agent-id

Conversation

@mattip

@mattip mattip commented Jun 15, 2022 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Redo the agent-id changes from #24968. The original PR is in the first commit, the second commit fixes a fatal flaw when using RAY_BACKEND_LOG_LEVEL=debug, which caused the "Ray C++, Java" tests to fail on macOS.

Related issue number

I checked that this works with RAY_BACKEND_LOG_LEVEL=debug on linux and macOS.

Checks

@mattip mattip changed the title Redo agent Redo agent-pid -> agent-id changes Jun 15, 2022
@rkooo567 rkooo567 self-assigned this Jun 16, 2022
@mattip

mattip commented Jun 16, 2022

Copy link
Copy Markdown
Contributor Author

The book-lint and potable-water-dataset-tests-python3-dot-7 CI runs seems to be consistently failing in the last few buildkite runs.

@mattip

mattip commented Jun 16, 2022

Copy link
Copy Markdown
Contributor Author

The mac-apple-medium-a-j failure is similar to others like this one for PR 25742

The mac-apple-medium-k-z failure is similar to others like this one for PR 25785

The mac-apple-ray-c-plus-plus-java-and-libraries failure is similar to others like this one for PR 25742

The potable-water-dataset-tests-python-3-dot-7 failure is very common.

@mattip

mattip commented Jun 16, 2022

Copy link
Copy Markdown
Contributor Author

@rkooo567 I think this is ready for a review.

@rkooo567

Copy link
Copy Markdown
Contributor

it is this #25669 + fix for test failures right?

@mattip

mattip commented Jul 4, 2022

Copy link
Copy Markdown
Contributor Author

it is this #25669 + fix for test failures right?

@rkooo567 yes. The problem with #25669 was that I redid the debug printing to include the additional arguments. Then the arguments are again fed to the actual process startup call. The line argv.push_back(NULL); was mistakenly moved to before the debug print, which caused the printing to crash. The line is required for the process startup call.

@mattip

mattip commented Jul 5, 2022

Copy link
Copy Markdown
Contributor Author

@rkooo567 could you take a look at the test failures and confirm they are not related to crashing the raylet executable or the dashboard agent (they share fate, but the timeout to kill the raylet executable only kicks in after 30 seconds)

@scv119

scv119 commented Jul 11, 2022 •

Copy link
Copy Markdown
Contributor

@mattip unfortunately we need to merge the master as dashboard/agent.py has conflict.

@scv119 scv119 added the @external-author-action-required Alternate tag for PRs where the author doesn't have labeling permission. label Jul 11, 2022
@mattip

mattip commented Jul 12, 2022

Copy link
Copy Markdown
Contributor Author

There is an error in mac-apple-ray-c-plus-plus-java-and-libraries. On the one hand I don't see how that is connected, but on the other I don't see that test on https://flaky-tests.ray.io. Is there some serialize/deserialize of the agent data in Java that needs adjusting?

java -cp bazel-bin/java/all_tests_shaded.jar -Dray.raylet.startup-token=0 io.ray.docdemo.UsingActorsDemo
2022-07-12 04:19:44,040 INFO RunManager [main]: Ray runtime started @ 127.0.0.1.
Exception in thread "main" java.lang.IllegalArgumentException: Unrecognized metadata [55]
    at io.ray.runtime.object.ObjectSerializer.deserialize(ObjectSerializer.java:119)
    at io.ray.runtime.object.ObjectStore.get(ObjectStore.java:140)
    at io.ray.runtime.AbstractRayRuntime.get(AbstractRayRuntime.java:138)
    at io.ray.runtime.AbstractRayRuntime.get(AbstractRayRuntime.java:119)
    at io.ray.runtime.AbstractRayRuntime.get(AbstractRayRuntime.java:114)
    at io.ray.api.Ray.get(Ray.java:98)
    at io.ray.runtime.object.ObjectRefImpl.get(ObjectRefImpl.java:77)
    at io.ray.docdemo.UsingActorsDemo.main(UsingActorsDemo.java:83)

@mattip

mattip commented Jul 18, 2022

Copy link
Copy Markdown
Contributor Author

@scv119 I think this is ready for another round of review

@pcmoritz

Copy link
Copy Markdown
Contributor

It seems we should try to get this into Ray 2.0 or else the dashboard won't work on windows if conda environments / virtual environments are being used.

@scv119 can you have a look?

@pcmoritz

Copy link
Copy Markdown
Contributor

I merged master to check about the test failures

@pcmoritz
pcmoritz merged commit b835cb9 into ray-project:master Jul 20, 2022
Rohan138 pushed a commit to Rohan138/ray that referenced this pull request Jul 28, 2022
Redo the agent-id changes from ray-project#24968. The original PR is in the first commit, the second commit fixes a fatal flaw when using RAY_BACKEND_LOG_LEVEL=debug, which caused the "Ray C++, Java" tests to fail on macOS.

Signed-off-by: Rohan138 <[email protected]>
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
Redo the agent-id changes from ray-project#24968. The original PR is in the first commit, the second commit fixes a fatal flaw when using RAY_BACKEND_LOG_LEVEL=debug, which caused the "Ray C++, Java" tests to fail on macOS.

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

@external-author-action-required Alternate tag for PRs where the author doesn't have labeling permission.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants