Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor LogStats extension to log IPM and RPM to stats on spider_close #4111

Merged
merged 8 commits into from
Feb 16, 2024

Conversation

BurnzZ
Copy link
Member

@BurnzZ BurnzZ commented Oct 30, 2019

Fixes #4110

NOTE: I noticed that the LogStats extension doesn't have any tests at all. I will write the tests later when this refactoring approach is approved.

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

scrapy/extensions/logstats.py Outdated Show resolved Hide resolved
@BurnzZ BurnzZ changed the title refactor LogStats extension to log IPM and RPM to stats on spider_close WIP: refactor LogStats extension to log IPM and RPM to stats on spider_close Oct 30, 2019
@codecov
Copy link

codecov bot commented Nov 1, 2019

Codecov Report

Merging #4111 (321864f) into master (1c9d308) will increase coverage by 0.05%.
Report is 67 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4111      +/-   ##
==========================================
+ Coverage   88.55%   88.61%   +0.05%     
==========================================
  Files         160      161       +1     
  Lines       11607    11775     +168     
  Branches     1883     1908      +25     
==========================================
+ Hits        10279    10434     +155     
- Misses       1003     1011       +8     
- Partials      325      330       +5     
Files Coverage Δ
scrapy/extensions/logstats.py 100.00% <100.00%> (ø)

... and 7 files with indirect coverage changes

@BurnzZ BurnzZ changed the title WIP: refactor LogStats extension to log IPM and RPM to stats on spider_close refactor LogStats extension to log IPM and RPM to stats on spider_close May 24, 2020
@kmike
Copy link
Member

kmike commented Jun 11, 2022

The feature looks good to me, but it needs an update to the current master branch.

@BurnzZ
Copy link
Member Author

BurnzZ commented Jun 13, 2022

Thanks for unearthing this @kmike as I totally forgot about it 😅 . I've added tests and rebased the PR to master.

@Gallaecio Gallaecio requested review from kmike and wRAR February 15, 2024 08:24
@Gallaecio Gallaecio merged commit 9bb973d into scrapy:master Feb 16, 2024
26 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.

LogStats Extension should log the IPM and RPM to the stats on spider_closed signal
3 participants