Repository navigation
[core] skip _ready/_on_ready tests in Ray Client mode - #66576
Merged
rueian merged 1 commit intoSep 29, 2026
Merged
Conversation
Signed-off-by: Rueian Huang <[email protected]>
rueian
marked this pull request as ready for review
September 29, 2026 15:19
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates python/ray/tests/test_asyncio.py to skip three tests (test_async_wait_for_object_ref_ready, test_async_wait_for_object_ref_ready_cancel, and test_on_ready_ref_drop_does_not_invoke_callback) when running in Ray Client mode, as _on_ready and _ready are not supported on Ray Client ObjectRefs. There are no review comments, and I have no feedback to provide.
karticam
approved these changes
Sep 29, 2026
rueian
enabled auto-merge (squash)
September 29, 2026 15:59
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
) _ready/_on_ready are not supported in Ray Client so skip them Signed-off-by: Rueian Huang <[email protected]>
sai-miduthuri
added a commit
that referenced
this pull request
Nov 10, 2026
…rent stack before py calls (#67132) (#68023) ## Description Cherry-pick of #67132 (master commit 6077a8a) onto `releases/2.59.2`. #64772, which is in 2.59, re-anchors CPython 3.14's stack-protection bounds to the async actor's fiber stack on each task switch, to fix a memory leak. But the re-anchor runs after `task_execution_handler` has already made a Python call on the new fiber. That call can see the stale bounds and raise a spurious `RecursionError`, which crashes the actor worker with `Check failed: objects_valid 1 return objects expected, 1 returned. Object at idx 0 was not stored.` This is #66399 (P1). #67132 re-anchors the boundary to the current stack before any Python call in `task_execution_handler`. ## Related issues Related to #67132 and #66399. The same pick for 2.60.1 is #67996. ## Additional information ### Cherry-pick details Applied cleanly with `git cherry-pick -x`. It has the same 2 files, +287/-106, and the same `git patch-id --stable` as the master commit. No prerequisite commits are missing: - #64772 is on this branch; it merged to master before the 2.59 branch cut. - `_raylet.pyx` differs from master at 6077a8a by #66514, #65243 and #65487, which aren't on this branch. None of them touches `task_execution_handler`, the only function #67132 changes. - `test_asyncio.py` differs from master by tests that #66576 and #65243 add. #67132's two tests go after `test_async_actor_finalizes_objects_dropped_on_fiber`, which this branch has from #64772. Not a duplicate: this branch doesn't contain #67132, and no PR against `releases/2.59.2` references it. ### Testing | Command | Result | |---|---| | `pre-commit run --files python/ray/_raylet.pyx python/ray/tests/test_asyncio.py` | Passed, including cython-lint | I didn't run the tests locally. `_raylet.pyx` needs a full Ray build, which wasn't practical on my machine. Both new tests in `test_asyncio.py` skip below CPython 3.14. Premerge CI on this branch runs the core Python tests on 3.10, and postmerge also on 3.12, so it runs the rest of `test_asyncio.py` against the changed `task_execution_handler`, but not these two tests. AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: davik <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Kunchen (David) Dai <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
_ready/_on_ready are not supported in Ray Client so skip them