Skip to content

refactor(actor)!: Remove the unused global socket timeout - #948

Merged
gfieni merged 2 commits into
masterfrom
refactor/socket-interface-global-timeout
Oct 13, 2026
Merged

gfieni merged 2 commits into
masterfrom
refactor/socket-interface-global-timeout

Conversation

@gfieni

@gfieni gfieni commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

PR overview:

  • Remove the unused constructor timeout from SocketInterface and actor classes.
  • Remove timeout forwarding and hard-coded values from derived actor constructors.
  • Use infinite linger on proxy control sockets to preserve pending messages when proxies close.
  • Remove redundant connection-time polls from control and data sockets.

Breaking changes:

  • SocketInterface, Actor, DispatcherActor, and ProcessorActor no longer accept a constructor timeout argument.

Remove the unused timeout parameter from `SocketInterface`.
Update actors to not use the global `timeout` parameter.
Per-call receive timeouts and lifecycle waits remain unchanged.

BREAKING CHANGE: `SocketInterface`, `Actor`, `DispatcherActor`, and
`ProcessorActor` classes no longer accept a timeout constructor argument.
Use infinite linger on proxy control sockets so closing a proxy
immetiadly after sending a poison pill does not discard the pending
messages.
@gfieni gfieni self-assigned this Oct 13, 2026
@gfieni
gfieni requested a review from a team as a code owner October 13, 2026 15:22
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.72%. Comparing base (b0c594a) to head (f5aaf58).

Files with missing lines Patch % Lines
src/powerapi/dispatcher/dispatcher_actor.py 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #948      +/-   ##
==========================================
- Coverage   86.73%   86.72%   -0.02%     
==========================================
  Files          81       81              
  Lines        2820     2817       -3     
==========================================
- Hits         2446     2443       -3     
  Misses        374      374              
Files with missing lines Coverage Δ
src/powerapi/actor/actor.py 75.82% <100.00%> (ø)
src/powerapi/actor/socket_interface.py 100.00% <100.00%> (ø)
src/powerapi/formula/formula_actor.py 100.00% <100.00%> (ø)
src/powerapi/processor/pre/k8s/actor.py 100.00% <100.00%> (ø)
src/powerapi/processor/pre/openstack/actor.py 100.00% <100.00%> (ø)
src/powerapi/processor/processor_actor.py 100.00% <100.00%> (ø)
src/powerapi/puller/puller_actor.py 92.10% <100.00%> (ø)
src/powerapi/pusher/pusher_actor.py 91.66% <100.00%> (ø)
src/powerapi/dispatcher/dispatcher_actor.py 81.39% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gfieni
gfieni merged commit f01e707 into master Oct 13, 2026
10 checks passed
@gfieni
gfieni deleted the refactor/socket-interface-global-timeout branch October 13, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant