Skip to content

refactor(python): rename RemoteRolloutStore to AsyncRolloutStore - #129

Merged
beinan merged 1 commit into
lance-format:mainfrom
beinan:rename-async-rollout-store
Jul 13, 2026
Merged

beinan merged 1 commit into
lance-format:mainfrom
beinan:rename-async-rollout-store

Conversation

@beinan

@beinan beinan commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Renames the Python RemoteRolloutStore class to AsyncRolloutStore. The old
name described the wrong axis:

  • RemoteRolloutStore wraps the same _RolloutStore as the sync
    RolloutStore — its only distinguishing feature is running blocking calls in
    an executor so they can be awaited.
  • "Remote" is misleading: the sync RolloutStore.connect() already talks to a
    remote server. The async wrapper adds no remote-only behavior.

AsyncRolloutStore names the real distinction (async vs sync) and matches the
existing AsyncContext convention (Async* = the async wrapper of a sync class).

Clean rename, no deprecated alias: the class first shipped in 0.6.1 and has
no callers beyond the remote test.

Changes

  • api.py: class rename + docstring + __repr__ + return-type strings + __all__
  • __init__.py: re-export + __all__
  • test_rollout_remote.py: import + usages + docstring

Test plan

  • pytest tests/test_rollout.py tests/test_rollout_remote.py → 8 passed (remote test drives a real lance-context-server subprocess through the renamed class)
  • ruff check clean on all changed files
  • grep RemoteRolloutStore → no remaining references

The class name described the wrong axis. `RemoteRolloutStore` wraps the exact
same `_RolloutStore` as the sync `RolloutStore` — its only distinguishing
feature is that it runs blocking calls in an executor so they can be awaited.
"Remote" is also misleading because the sync `RolloutStore.connect()` already
talks to a remote server; the async wrapper adds no remote-only behavior.

`AsyncRolloutStore` names the real distinction (async vs sync) and aligns with
the existing `AsyncContext` convention ("Async* = the async wrapper of a sync
class"). Clean rename with no deprecated alias: the class shipped in 0.6.1 and
has no callers beyond the remote test.
@beinan
beinan merged commit 352cda4 into lance-format:main Jul 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant