Skip to content

refactor: [#1358] clean Swarm type

d154b2a
Select commit
Loading
Failed to load commit list.
Merged

Overhaul stats: Emit events from the torrent-repository package and collect metrics #1513

refactor: [#1358] clean Swarm type
d154b2a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded May 16, 2025 in 0s

84.35% (+0.59%) compared to 93fdf31

View this Pull Request on Codecov

84.35% (+0.59%) compared to 93fdf31

Details

Codecov Report

Attention: Patch coverage is 93.00380% with 92 lines in your changes missing coverage. Please review.

Project coverage is 84.35%. Comparing base (93fdf31) to head (d154b2a).

Files with missing lines Patch % Lines
packages/primitives/src/peer.rs 32.72% 37 Missing ⚠️
...orrent-repository/src/statistics/event/listener.rs 52.00% 11 Missing and 1 partial ⚠️
...kages/torrent-repository/src/statistics/metrics.rs 72.72% 9 Missing ⚠️
...torrent-repository/src/statistics/event/handler.rs 94.80% 0 Missing and 8 partials ⚠️
packages/events/src/bus.rs 68.42% 6 Missing ⚠️
...es/torrent-repository/src/statistics/repository.rs 88.46% 6 Missing ⚠️
...s/rest-tracker-api-core/src/statistics/services.rs 28.57% 5 Missing ⚠️
packages/udp-tracker-server/src/environment.rs 62.50% 3 Missing ⚠️
...racker-api-server/src/v1/context/stats/handlers.rs 0.00% 2 Missing ⚠️
src/bootstrap/jobs/torrent_repository.rs 77.77% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1513      +/-   ##
===========================================
+ Coverage    83.75%   84.35%   +0.59%     
===========================================
  Files          257      265       +8     
  Lines        18049    18933     +884     
  Branches     18049    18933     +884     
===========================================
+ Hits         15117    15970     +853     
- Misses        2654     2682      +28     
- Partials       278      281       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.