Skip to content

[core] Retarget stale FreeLocalObjects fault-tolerance test - #64979

Merged
rueian merged 5 commits into
ray-project:masterfrom
ShockYoungCHN:fix-stale-free-local-objects-test
Jul 24, 2026
Merged

rueian merged 5 commits into
ray-project:masterfrom
ShockYoungCHN:fix-stale-free-local-objects-test

Conversation

@ShockYoungCHN

@ShockYoungCHN ShockYoungCHN commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

test_free_objects_idempotent injected RPC failures on ObjectManagerService.FreeObjects, which was removed in #63181 (FreeObjects 2/n) and replaced by owner-driven NodeManagerService.FreeLocalObjects. The injection has matched no live call since, so the test freed objects with no failure injected.

Retarget the injection to NodeManagerService.FreeLocalObjects and rename the test, restoring retry/idempotency coverage.

@ShockYoungCHN
ShockYoungCHN requested a review from a team as a code owner July 24, 2026 01:06
test_free_objects_idempotent injected RPC failures on
ObjectManagerService.FreeObjects, which was removed in ray-project#63181 (FreeObjects
2/n) and replaced by owner-driven NodeManagerService.FreeLocalObjects. The
injection has matched no live call since, so the test freed objects with no
failure injected -- green but not exercising fault tolerance.

Retarget the injection to NodeManagerService.FreeLocalObjects and rename the
test, restoring retry/idempotency coverage. Mirrors the passing
test_request_worker_lease_idempotent pattern.

AI assistance (Claude) was used. Not run locally (installed wheel predates
source); relies on CI.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: yuanzhuoyang <[email protected]>
@ShockYoungCHN
ShockYoungCHN force-pushed the fix-stale-free-local-objects-test branch from d2211f0 to 01d8553 Compare July 24, 2026 01:06

@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 the fault tolerance tests in test_object_manager_fault_tolerance.py by renaming test_free_objects_idempotent to test_free_local_objects_idempotent. It also updates the mocked RPC failure service from ObjectManagerService.grpc_client.FreeObjects to NodeManagerService.grpc_client.FreeLocalObjects and adds an explanatory comment. There are no review comments, so no additional feedback is provided.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Jul 24, 2026

@Sparks0219 Sparks0219 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.

LGTM, please rebase and fix lint

@Sparks0219
Sparks0219 enabled auto-merge (squash) July 24, 2026 05:56
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Jul 24, 2026
@github-actions
github-actions Bot disabled auto-merge July 24, 2026 06:03
@rueian
rueian enabled auto-merge (squash) July 24, 2026 20:10
@rueian
rueian merged commit 5d06c38 into ray-project:master Jul 24, 2026
4 checks passed
@ShockYoungCHN

Copy link
Copy Markdown
Contributor Author

thx!

400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ect#64979)

## Description

test_free_objects_idempotent injected RPC failures on
ObjectManagerService.FreeObjects, which was removed in ray-project#63181
(FreeObjects 2/n) and replaced by owner-driven
NodeManagerService.FreeLocalObjects. The injection has matched no live
call since, so the test freed objects with no failure injected.

Retarget the injection to NodeManagerService.FreeLocalObjects and rename
the test, restoring retry/idempotency coverage.

Signed-off-by: yuanzhuoyang <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community 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.

3 participants