Skip to content

[core] skip _ready/_on_ready tests in Ray Client mode - #66576

Merged
rueian merged 1 commit into
ray-project:masterfrom
rueian:skip-on-ready-tests-client-mode
Sep 29, 2026
Merged

rueian merged 1 commit into
ray-project:masterfrom
rueian:skip-on-ready-tests-client-mode

Conversation

@rueian

@rueian rueian commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

_ready/_on_ready are not supported in Ray Client so skip them

@rueian rueian self-assigned this Sep 29, 2026
@rueian rueian added core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests labels Sep 29, 2026
@rueian
rueian marked this pull request as ready for review September 29, 2026 15:19
@rueian
rueian requested a review from a team as a code owner September 29, 2026 15:19

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@rueian
rueian enabled auto-merge (squash) September 29, 2026 15:59
@rueian
rueian merged commit 5609bd6 into ray-project:master Sep 29, 2026
7 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants