Skip to content

refactor(puller)!: Replace report filters with explicit targets - #966

Merged
gfieni merged 1 commit into
masterfrom
refactor/remove-puller-filter
Nov 3, 2026
Merged

gfieni merged 1 commit into
masterfrom
refactor/remove-puller-filter

Conversation

@gfieni

@gfieni gfieni commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

This PR removes the ReportFilter feature from the PullerActor and replaces it by a list of actors proxy.
Report filtering should now be done in Processor or DispatchRule instead.

Breaking changes:

  • Remove powerapi.filter package.
  • Replace report_filter: ReportFilter with target_actors: list[ActorProxy] in PullerActor, PullerState, DatabasePollerThread, and PullerGenerator

Broadcast reports directly to target actors and update preprocessor
binding to preserve destinations without affecting other pullers.

BREAKING CHANGE: `PullerActor`, `PullerState`, `DatabasePollerThread`, and
`PullerGenerator` now accept target_actors instead of report_filter.
@gfieni gfieni self-assigned this Nov 3, 2026
@gfieni
gfieni requested a review from a team as a code owner November 3, 2026 13:14
@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.76%. Comparing base (28ae882) to head (f75d1fa).

Files with missing lines Patch % Lines
src/powerapi/puller/puller_actor.py 90.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #966      +/-   ##
==========================================
+ Coverage   87.11%   87.76%   +0.65%     
==========================================
  Files          80       78       -2     
  Lines        2887     2853      -34     
==========================================
- Hits         2515     2504      -11     
+ Misses        372      349      -23     
Files with missing lines Coverage Δ
src/powerapi/config/binding_manager.py 97.87% <100.00%> (ø)
src/powerapi/config/generator.py 98.96% <100.00%> (-0.01%) ⬇️
src/powerapi/puller/database_poller.py 81.35% <100.00%> (+38.98%) ⬆️
src/powerapi/puller/puller_actor.py 92.10% <90.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gfieni
gfieni merged commit 37f68a8 into master Nov 3, 2026
10 checks passed
@gfieni
gfieni deleted the refactor/remove-puller-filter branch November 3, 2026 13:17
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