Skip to content

Make actor dispatcher bookkeeping classes private - #331

Merged
llucax merged 1 commit into
frequenz-floss:v1.x.xfrom
llucax:preserve-actor-and-channel
Nov 24, 2026
Merged

llucax merged 1 commit into
frequenz-floss:v1.x.xfrom
llucax:preserve-actor-and-channel

Conversation

@llucax

@llucax llucax commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The dispatcher uses ActorAndChannel and ActorStatus to track actors in its private _actors dictionary. No public dispatcher method accepts or returns either class. Rename them to _ActorAndChannel and _ActorStatus without changing how dispatch updates or handovers work. The upgrade notes explain that ActorDispatcher.ActorAndChannel, which was accessible in v1.0.4, is now private.

@github-actions github-actions Bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:dispatcher Affects the high-level dispatcher interface labels Nov 24, 2026
@llucax
llucax force-pushed the preserve-actor-and-channel branch from 59a632a to f36aa21 Compare November 24, 2026 11:52
@llucax llucax changed the title Keep actor continuation state private Make actor dispatcher bookkeeping classes private Nov 24, 2026
@llucax
llucax force-pushed the preserve-actor-and-channel branch 2 times, most recently from 8b9c442 to de8e6ca Compare November 24, 2026 11:55
@llucax
llucax marked this pull request as ready for review November 24, 2026 11:55
@llucax
llucax requested a review from a team as a code owner November 24, 2026 11:55
@llucax
llucax requested review from stefan-brus-frequenz and removed request for a team November 24, 2026 11:55
@llucax
llucax force-pushed the preserve-actor-and-channel branch from de8e6ca to 8b9c442 Compare November 24, 2026 11:56
ActorAndChannel, ActorStatus, DispatchStatus and MergeContext track
internal dispatcher state. No public method accepts or returns them.
Mark them private and document the removal of the ActorAndChannel name,
which was accessible in v1.0.4.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax
llucax force-pushed the preserve-actor-and-channel branch from 8b9c442 to 948c705 Compare November 24, 2026 12:02
@llucax
llucax requested a review from Marenz November 24, 2026 12:02
@llucax llucax added this to the v1.1.0 milestone Nov 24, 2026

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

🤖 A mechanical rename; no public method signature or export references these classes. The Upgrading note correctly flags the one breaking name. Tests pass at this head.

@llucax
llucax added this pull request to the merge queue Nov 24, 2026
@llucax
llucax removed this pull request from the merge queue due to a manual request Nov 24, 2026
@llucax
llucax added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 24, 2026
@llucax
llucax added this pull request to the merge queue Nov 24, 2026
Merged via the queue into frequenz-floss:v1.x.x with commit 1f1868d Nov 24, 2026
9 checks passed
@llucax
llucax deleted the preserve-actor-and-channel branch November 24, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:dispatcher Affects the high-level dispatcher interface part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants